?
Solved

Use results from formula in CR Chart

Posted on 2008-06-20
4
Medium Priority
?
951 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 2000 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
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…
Integration Management Part 2
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

840 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