Solved

Use results from formula in CR Chart

Posted on 2008-06-20
4
929 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

749 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