PAW: subset MDX works in one cube view, not in another
Posted: Tue Jun 25, 2019 2:06 pm
Seems to be a context problem. However, I have been unable to figure out the problem. Here is the query:
The Account Mapping cube has the following dimensionality:
Being that it works from the cube referenced in the filter and not from other cubes indicates to me a context issue, but every dimension is accounted for in the query! A number of the dimension elements (ex: All Geography) are consolidations.
The real problem is the query is failing to return the desired members in a TI. We use MDX for virtually everything and this type of filtering is quite common. What strange evil magic is at work here?
Code: Select all
FILTER(TM1FILTERBYLEVEL(TM1SUBSETALL([Accounts Master].[Hier.001]), 0),
[Account Mapping].([Version].[Active_02],
[sys.Websheet Control].[Input],
[Geography].[All Geography],
[HR Level].[All HR Levels],
[Organization].[Function Support],
[lookup.Measure].[CalcFlag2]) > 0)
- Version
- sys.Websheet Control
- Geography
- HR Level
- Organization
- Accounts Master
- lookup.Measure
Code: Select all
FILTER(TM1FILTERBYLEVEL(TM1SUBSETALL([Accounts Master].[Hier.001]), 0),
[Account Mapping].([Version].[Active_02],
[sys.Websheet Control].[Input],
[Geography].[All Geography],
[HR Level].[All HR Levels],
[Organization].[Function Support],
[Accounts Master].[Hier.001].currentmember,
[lookup.Measure].[CalcFlag2]) > 0)
The real problem is the query is failing to return the desired members in a TI. We use MDX for virtually everything and this type of filtering is quite common. What strange evil magic is at work here?