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!

Sorting a group on a formula field

Status
Not open for further replies.

jonesanne

Technical User
Sep 17, 2002
11
US
I need to sort data in a group footer based on the following formula field:

If Sum ({@casetotal}, {JOINALLSales Journal.CustomerID})=0
Then 0
Else (Sum ({@netrevenue}, {JOINALLSales Journal.CustomerID}))/Sum ({@casetotal}, {JOINALLSales Journal.CustomerID})

Is this possible?

Many thanks,
Anne Jones
 
You won't be able to TopN or sort by that, but you can create the appearance of that by using one of the two totals.

Sum ({@netrevenue}, {JOINALLSales Journal.CustomerID})
will work if they all have similar case totals, but I'd probably prefer to use

Sum ({@casetotal}, {JOINALLSales Journal.CustomerID})

And set it to Descending sort
Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top