How to change which measure is displayed based on the level where the user has drilled into the hierarchy.
This can be adjusted to display any measure.
Use a calculated field similar to the following:
IF MIN([Hierarchy Level 3]) = MAX([Hierarchy Level 3]) THEN [Measure 3] ELSEIF MIN([Hierarchy Level 2]) = MAX([Hierarchy Level 2]) THEN [Measure 2] ELSE [Measure 1] END
On the workbook, there is the example "Display Result With Description"
IF MIN([Item]) = MAX([Item]) THEN "Displaying Item SALES: " + STR(ROUND(SUM(Sales),2)) //This will display the text and sum of Sales for the item - It is also rounding the result to show 2 decimal digits.
ELSEIF MIN([Category]) = MAX([Category]) THEN "Displaying Category PROFIT: " + STR(ROUND(SUM(Profit),2)) //This will display the text and sum of Profit for the Category
ELSEIF MIN([Department]) = MAX([Department]) THEN "Displaying Department PROFIT: " + STR(ROUND(SUM(Profit),2)) //This will display the text and sum of Profit for the Department
END
001458310
1492 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.