Using wildcards and global variables to filter the unique name
This example
procedure is based on the Best Practices sample database supplied with Application Studio
and uses a hyperblock created from the Product dimension.
Create a report variable named rv_ProductUnique.
Set the value of the variable to the unique name of an element of
the Product dimension (for example,
[Product].[All Tires].[Car Tires All Season]
)
In Design Mode, click the hyperblock.
The List Designer is enabled.
Click
Filter in the List
Designer.
Click
New Filter.
In Filter Settings, select
Filter By > Unique
name.
Select
Filter
Type > Wildcard.
Select
Condition > Equals.
In the
Wildcard
field, open the
Edit Custom MDX dialog.
Click
Variables
and double-click rv_ProductUnique in the list of global variables.
The variable is displayed as
=ReportVariables.rv_ProductUnique.Text.
Edit the formula by adding
&"*" to the end
(=ReportVariables.rv_ProductUnique.Text&"*")
In View Mode, All Season Tires and its children are
displayed.