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

Percent of sum fields in manual crosstab report

Status
Not open for further replies.

jonesanne

Technical User
Sep 17, 2002
11
US
I have many percentage formulas in a report footer that are not calculating correctly. I tried PercentOfSum, but I don't think I used it right as the values all equaled zero. Here is an example of one of the formulas:

If Sum ({@dollartot}, {JOINALLSales Journal.customer id}= 0)
Then 0
Else 100*(Sum ({@samplestot}, {JOINALLSales Journal.customer id})/Sum ({@dollartot}, {JOINALLSales Journal.customer id

What am I missing here? Thanks!
 
Your parenthesis is in the wrong place.. surprised crystal didn't warn you:

Should be:

If Sum ({@dollartot}, {JOINALLSales Journal.customer id}) = 0
Then 0
Else 100*(Sum ({@samplestot}, {JOINALLSales Journal.customer id})/Sum ({@dollartot}, {JOINALLSales Journal.customer id))

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top