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!

group by one field, but sort by another field

Status
Not open for further replies.

snoopyyu

Programmer
Jan 9, 2004
12
US
Hi,

I have three fields in the my table:
Client
Fees
Costs

In my report, I am presenting the sum(fees), sum(costs) and sum(fees) + sum(costs) for each "Client".
So, when create the report, I group by "Client".

If I want to present this data sorted by sum(fees) + sum(costs) in descending order, how can I do this?

Thanks in advance.

Snoopy
 
You probably want to use the TOP N functionality.

Create a formula that adds your cost field and fees field together (not the sums).
Create a summary of this formula for yor client grouping.
Use the Top N expert and pick the sum of the formula and pick descending.

~Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top