Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: average and percetange Post Reply Post New Topic
Author Message
Allison2010
Newbie
Newbie


Joined: 03 Nov 2010
Location: United States
Online Status: Offline
Posts: 3
Quote Allison2010 Replybullet Topic: average and percetange
    Posted: 03 Nov 2010 at 11:36am

Hello,

 
I'm new at using crystal reports and i'm trying to find out a simple way to do the following report that will group the category and give me a average for month and YTD and also average and percentage for both:       MANY THANKS!                
 
Category

Circle

This Month

YTD

Total Performed

5

57

Average Rating

100%

97%

Square

This Month

YTD

Total Performed

5

60

Passing Rating

100%

100%

Triangle 

This Month

YTD

Total Performed

1

4

Passing Rating

50%

50%

IP IP Logged
Allison2010
Newbie
Newbie


Joined: 03 Nov 2010
Location: United States
Online Status: Offline
Posts: 3
Quote Allison2010 Replybullet Posted: 04 Nov 2010 at 5:59am
if {Inspections_and_Tests.LU_InspectionCat~Description} = "Audit" then
 ({Inspections_and_Tests.InspectionsTests~InspectionDate})In
Date(Year(CurrentDate), Month(CurrentDate),1) To
DateAdd("m",1,Date(Year(CurrentDate),
Month(CurrentDate),1)-1);
If {@sys.PossiblePoints}=0 then 0 else ({@sys.AwardedPoints}/{@sys.PossiblePoints})*100
this is the formula that i'm using but is not giving me the reult i need :(
IP IP Logged
Allison2010
Newbie
Newbie


Joined: 03 Nov 2010
Location: United States
Online Status: Offline
Posts: 3
Quote Allison2010 Replybullet Posted: 05 Nov 2010 at 5:32am
how do you get the average of a sum?
 
I if Sum ({@sys.PossiblePoints}, {Inspections_and_Tests.InspectionsTests~InspectionNumber})=0 then 0 else
(Sum ({@sys.AwardedPoints}, {Inspections_and_Tests.InspectionsTests~InspectionNumber})/
Sum ({@sys.PossiblePoints}, {Inspections_and_Tests.InspectionsTests~InspectionNumber}))*100
 
I get the error hat this can't be summarized
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.