Skip to main content

Modifying Details of the 80/20 Suppression Option

Modifying Details of the 80/20 Suppression Option

For example, if you had used the 80/20 suppression option, the MDX query might look like this (with harmless line breaks added):

SELECT 
NON EMPTY {[Measures].[Amount Sold],[Measures].[Units Sold],[Measures].[%COUNT]} 
ON 0,
NON EMPTY 
{TOPPERCENT([Product].[P1].[Product Name].Members,80),
%LABEL(SUM(BOTTOMPERCENT([Product].[P1].[Product Name].Members,20)),"Other",,,,"font-style:italic;")} 
ON 1 
FROM [HoleFoods]

For the TOPPERCENT and BOTTOMPERCENT functions:

  1. The first argument specifies the set of members to use.

  2. The second argument specifies the percentage.

  3. The third argument (omitted in the preceding example) specifies the measure to use for ranking the members.

To change the percentages, change the second arguments for TOPPERCENT and BOTTOMPERCENT. For example:

SELECT 
NON EMPTY {[Measures].[Amount Sold],[Measures].[Units Sold],[Measures].[%COUNT]} ON 0,
NON EMPTY 
{TOPPERCENT([Product].[P1].[Product Name].Members,90),
%LABEL(SUM(BOTTOMPERCENT([Product].[P1].[Product Name].Members,10)),"Other",,,,"font-style:italic;")}
ON 1 
FROM [HoleFoods]

For details on MDX, see Using InterSystems MDX and InterSystems MDX Reference.


FeedbackOpens in a new tab