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

Sorting Data

Status
Not open for further replies.
Mar 7, 2010
61
Hi I have a distinct count on one of my fields by a grouping and I want to sort the data from higest to lowest based on this count for my selected grouping. However it is not an option to sort by this summary? I tried creating a formula to replicate the summary and then sort by the formula instead but it still will not make the formula an available as asort option (I think because it is still really a summary e.g. a count by the condition of a group).

Can anyone help?

Thanks
 
You need to right click on the field in the detail section and insert a summary (distinctcount) on it at the group level. This activates the group sort (Creating a formula for distinctcount does not). Then go to report->group sort and choose "All"->sort by distinctcount of your field->descending. This will sort the groups in order of the distinctcount.

-LB
 
thanks, it worked great. i already had the distinct count set up, I just never realised that was where the group sort option was!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top