Solved

Use results from formula in CR Chart

Posted on 2008-06-20
4
911 Views
Last Modified: 2010-04-21
Hi,

I can't find how to use the result of a formula field in Crystal Report in Crystal Report Chart. I can only use summary fields, or the database fields as data for the chart.
The formula field is needed, as it first recalculates the data.

Is there any way to use the result of the formula in a chart?
Thanks
Karl
0
Comment
Question by:kGenius
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:crgary_tx
ID: 21830729
The formulas can be used but not all the formulas. If your formula is using printtime functions then you cannot do the charting based on those formulas directly though you can circumvent such problems with some kind of workarounds.
What is your formula doing? Can you post the formula?

Gary
0
 
LVL 7

Author Comment

by:kGenius
ID: 21832586
The code for RecalculatePerCourse

EvaluateAfter (GroupName ({Courses.course}))
formula = {#TotalPointPerCourse}/{#TotalMaximumPerCourse}*{CoursesInGroups.maximum}
'(this formula recalculates the results of exams per student per course)

Then another formula Counts up the results of this formula per maincourse
WhilePrintingRecords;
NumberVar totalPointPerMainCourse;
NumberVar totalAveragePerMainCourse;

totalPointPerMainCourse := totalPointPerMainCourse + {@RecalcPointPerCourse};

This value (totalPointPerMainCourse) is what I need

These two formula's are just a bit of whole project. I'm quite new to CR, but with a lot of patcience (and maybe luck) a found the way to make a -for me- complex report.
It is impossible to post the complete report and database structure. Hopefully you can give me an answer after this post...

Thanks for the help,
Karl

0
 
LVL 13

Accepted Solution

by:
crgary_tx earned 500 total points
ID: 21832733
These formulas are using print time functions like evaluate after and whileprintingrecords for which you cannot create charts/crosstabs directly. Because the formulas are evaluated in later passes aftter charts/crosstabs are evaluated.

Here is link to an article which discusses the method to create charts in such situations. I was able to successfully do it following the method discussed in the article

http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=http--supportbusinessobjectscom-communityCS-TechnicalPapersNoNav-cr9chartingprinttimeformulaspdfasp&sliceId=&dialogID=16224078&stateId=1%200%2016222148

hth..
Gary
0
 
LVL 7

Author Closing Comment

by:kGenius
ID: 31469118
Thanks for this solution. Now I can go on. I struggled longtime on this. You don't know how happy you made me now. Thanks again!

Karl
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now