Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Use results from formula in CR Chart

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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

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. …
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

618 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