Sorting a report by count results

J

James Owens

I have a pretty simple report. I am using on table which
has a membership dump of NT groups. The report shows the
group name and counts the instances of that name and the
result is the number of members in the group. I want to
sort the resulting list by the Count expression result so
the groups with the most members are listed first. I have
drawn a blank on how to do this. Any help would be
greatly apprecieated. Thanks.
 
D

Duane Hookom

You can't sort by an aggregate (count or sum) that is derived in the report.
You would need to create a separate totals query that groups by NTGroup and
counts members. Then add this query to the record source query of your
report. This will allow you to sort by the CountOfMembers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top