Quick Tip #1: Guided parameters using MDX

When selecting a parameter in a report you may find that the results returned can be empty. A guided parameter is to guide the user of the report away from displaying empty values.

Let’s say you have two parameters one being calendar quarter and the other being customer.

Here is an example using the Adventure Works database:

Edit the parameter data-set for customer.

MEMBER [Measures].[ParameterCaption] AS
MEMBER [Measures].[ParameterValue] AS
MEMBER [Measures].[ParameterLevel] AS
{ [Measures].[ParameterCaption]
FROM [Adventure Works];

So in this query:

The NonEmpty returns customers crossed with a quarter that contains no null values for any measure ([Measures].MEMBERS)
The Strtomember returns the value of the calendar quarter parameter which is specified within the nonempty function.

I use this for easier parameter selections so customer attributes are not displayed with no measure data.

Latest from this author