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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find average of % for a group

Status
Not open for further replies.

rmcguire80

IS-IT--Management
May 31, 2012
106
US
Hello,

I have a formula which calculates a % for the percent of shipments ontime: ({#count ontime}/(Count ({SHIPMENTS_TTX.RECNO}, {@Project})))*100

for a certain "Project"

I then want to find the average of all of those calculations, how can I do this as they are percent values, so in theory I would total all these percent values up and divide them by the total number of shipments, but it doesn't seem to work and when I just use the average function from within the formula editor it doesn't seem to work either

any help would be appreciated
 
Create another Running Total, that has the same conditions as your existing {#count ontime Overall}, but set reset to never

{#count ontime Overall}

Create another fomula and place this in report footer

@OverallAVG
{#count ontime Overall}%Count({SHIPMENTS_TTX.RECNO})

Ian
 
are you trying to put this in report footer?
I assume{#count ontime} resets on change of group
create another {#count ontime total} that doesnt reset
create formula
{#count ontime}/Count ({SHIPMENTS_TTX.RECNO})*100
or
{#count ontime} % Count ({SHIPMENTS_TTX.RECNO})

_____________________________________
Crystal Reports 2011 and XI
Intersystems Cache 2012 ODBC connection

 
one minute apart Ian .. lol ..

_____________________________________
Crystal Reports 2011 and XI
Intersystems Cache 2012 ODBC connection

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top