There are times when isolating the best or worst members is not enough. End users often want to see the total of all members as well as the difference, a single row representing all other members not included in the report. This recipe shows how to fulfill this requirement.
Start SQL Server Management Studio and connect to your SSAS 2008 R2 instance. Click on the New Query button and check that the target database is Adventure Works DW 2008R2.
In this example we're going to use the Reseller dimension. Here's the query we'll start from:
WITH SET [Ordered Resellers] AS Order( [Reseller].[Reseller].[Reseller].MEMBERS, [Measures].[Reseller Sales Amount], ...