Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Calculating Percent Field Post Reply Post New Topic
Author Message
Cervello
Newbie
Newbie


Joined: 18 Jul 2014
Online Status: Offline
Posts: 26
Quote Cervello Replybullet Topic: Calculating Percent Field
    Posted: 04 Dec 2015 at 11:16am
I have a report that has serveral groups etc. There are two cross tab reports, one at a group level and another in report footer.

Report with groups:
Group 1 - Department
Group 2 - Question status Failed or Passed,
Group 3 - Employee ID

I create two summary fields in the report – one called Failed Count and one called Passed count (which is counting the employee id on each change in the group 3 )

I inserted these two fields into a cross tab.

I need to insert one more formulas that takes the grand total of the failed count and passed count (by department, failed, employee id) divided by the failed count ( by department, failed, employee id) = failed percent.

Any help is GREATLY appreciated!!

Cervello
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 09 Dec 2015 at 11:10am
Which version of Crystal are you using? (Please go to Help>>About and get the full version number from there!)

Also, you have the equation backwards for getting the percentage. It should be

Number failed / (Number Failed + Number Passed) * 100

Or, using the Crystal percentage operator, you can do something like this which will do the division and then automatically multiply by 100:

Number failed % (Number Failed + Number Passed)

How you get to this data will depend on which version of Crystal you're using.

-Dell
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.