Link to home
Start Free TrialLog in
Avatar of henry
henry Flag for United States of America

asked on

sorting records based on sum field

Hi Experts,
I'd like sort records by sum field.
My sum filed was created based on subreport.
Formula for sum field in main report:
WhilePrintingRecords;
Shared NumberVar SubValue1;
{@sum backlog}-SubValue1;
, working good.
Now I need sort all records in report base on above sum field in descending order.
I tried create group base on this sum field but I cannot do that. I don't see this field in existing report fields if I try create group.
any ideas ?
henry
Avatar of _MAGIK_
_MAGIK_

Try this

Open the report
Click REPORT --> GROUP SORT EXPERT
Choose the GROUP
IN the dropdown FOR THIS GROUP SORT
Choose ALL
In the BASED ON choose the summary
Avatar of henry

ASKER

I tried this.
I don't see my formula field in list.  I cannot choose. I have no idea why.
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I have occasional need to subtotal Part quantities by Customer Order, then display the data in descending order by the subtotal (Answering the question, "What parts are being ordered the most by what customers, sorted by the most-ordered part to the least?".
I create a simple customer order report sorted and subtotalled (Grouped) by Part Number, with a 'Quantity' subtotal.
I then go to Report / Group Sort Expert, set the "For this group sort" box to "Top N", then set the '"Where N is:" box to a number greater than the largest number of subtotal groups the report will ever produce.
Sorry - the phrase
I have occasional need to subtotal Part quantities by Customer Order
should have been written
I have occasional need to subtotal Part quantities across Customer Orders