Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Percent of data in field

Status
Not open for further replies.

sclark415

Programmer
Mar 17, 2003
42
US
Hi, I am on V10 - I have a field called FieldAdjuster. I have to figure the percentage of different field adjusters to the total claims on the report. I am sorting on a different field. Can you help please?
 
Is the easist way to do this by If-Then-Else, If FieldAdjuster = 'A' then A
Else
Is the easist way to do this by If-Then-Else, If FieldAdjuster = 'B' then B

and so on - then I can divide total Claims by A, then B and so on?
 
I recreated this question... I have this one so conveluted that it is hard to understand what I am asking. If you came to this question to help me out, I appreciate it.. Thanks
 
I've got 8.5, but anything I can do should still be possible in Crystal 10.

It depends on how many types of FieldAdjuster. If it is only 3 or 4, do a running total for each. In the report footer, separately calculate a percentage for each. Allow for zero results.

If it is a lot, you could group by FieldAdjuster. Calculate a total for each group against a summary total for the report. If this gets in the way of other stuff you need to report, put this function into a subreport in the report header or report footer.


Madawc Williams (East Anglia)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top