Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

{{Infobox

bodystyle = width:20em;

title = Hide irrelevant cells

titlestyle =

headerstyle =

labelstyle = width:33%

datastyle =

image = 200px

imagestyle =

header1 =

label1 = Type

data1 = CXO-Cockpit Tips and Tricks

header2 =

label2 = Audience

data2 = CXO-Cockpit Captain

header3 =

label3 = Difficulty

data3 = Medium

label4 = Applies to

data4 = Multi-Column Template
}}

Introduction

In some cases it is useful to have certain meaningless cells hidden.

For example, if your company does not want to show to the YTD values for certain accounts.

Solution

The solution is to introduce a calculated member of the measure dimension. This measure checks if a certain dimension value is used and then returns null (empty).

Read more about creating calculated members in the Calculated Members Article

Example MDX statement

In this example, we would use the MEA (measure) dimension to create a custom calculation to apply the logic for hiding the row values that combine with a YTD column:

CREATE MEMBER CURRENTCUBE.MEA.MEA.Null_WhenYTD

AS CASE
WHEN VIW.VIW.CurrentMember.Name = 'YTD'
THEN NULL
ELSE MEA.MEA.None ]
END,
VISIBLE=1 ;

If you apply this measure to the rows of those accounts that do not need values for YTD, these row values will automatically empty for the YTD columns.

  • No labels