Solved

Use results from formula in CR Chart

Posted on 2008-06-20
4
915 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

910 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

22 Experts available now in Live!

Get 1:1 Help Now