if there a better way to write the MDX
SELECT { [Measures].[Label],
NonEmpty [Measures].[UniqueName],
NonEmpty [Measures].[TargetName],
[Measures].[Place]
} ON COLUMNS ,
NON EMPTY
[Geography].[Country].ALLMEMBERS ON ROWS FROM [Adventure Works]
I want to add non empty only for few measures and that depends on a dimension for example [Street Dimension].[street].[street name]="abcd". So can I but any condition to check for street name and add non empty only if the street name matches.
More like this:
To direct the
NonEmpty
functions at a specific member of the street hierarchy you can use a tuple as the second argument to eachNonEmpty
: