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

TopN with "Others" not working as expected.

Status
Not open for further replies.

tkaz

Technical User
Feb 21, 2005
75
US
I am using SQL Server 2008 and CR XI.

I have a crosstab report that includes plant, prodid, proddesc, custid, custname,matlunits, dollars, and a calculated field - ASP.

I want to sort in descending order by prodid based on the sum of the matlunits. Done...
I then want to pick the TopN 5 based on custid...I can get that to work, but I want to include "Others" as one group that would summarize the remainder of the customers units and dollars. I am not seeing the "Others" group even though the box is checked and I've included ties. Can someone tell me what I might be doing wrong?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top