olap - How can I use an MDX Level property in the slicer? -
Suppose I have a [sale] cube that has a level of [store] and there is a "type" property in a store. What query should I use to show the sum of sales for all stores of "supermarkets" type? (Like you have sold 6m dollars in all stores of "supermarket" type)
If you are a member of To use the properties, you can use the .properties ("propertyname")
You have to create a custom set that was filtered before and after that [store ] All members of the level were collected. The value of the property corresponds to "supermarket".
My MDX skills are a bit rusty ... with . [SupermarketSweep] AS 'Composite ([Filter] [Store]. [Store] .Mombers, [Store]. Current Members. Properties ("Type") = "Supermarket"))' Selection {[Store]. ROES on [SupermarketSweep], {[remedy]. [Anyone]} from the column [Sales]