MDX Query : Subset vs 2 Dimensions
Posted: Mon Oct 08, 2012 7:18 am
Hi,
I'm building a source view for a data transfer between a detailed to summary cube. The dimensions in the destination / summary cube are related subsets of the source / detailed cube.
I hold some flags in a cube to say if the detailed elements should be in the summary cube but these includes all the consolidated ones too.
So what I want to do is a piece of MDX like this
i.e all the flagged elements that are N level in the summary dimension.
This isn't valid syntax however as I can't directly reference two different dimensions (I think) and I get an error
INTERSECT: Sets have incompatible dimensionality expression:
from the TI process.
I can easily add another measure to my flagging cube that folds the level 0 test in and reference this, except I have to do it in many places. So there are plenty of ways of me to solve my actual problem. Just want to know if this is a basic limitation of MDX or if I am missing something?
Cheers,
I'm building a source view for a data transfer between a detailed to summary cube. The dimensions in the destination / summary cube are related subsets of the source / detailed cube.
I hold some flags in a cube to say if the detailed elements should be in the summary cube but these includes all the consolidated ones too.
So what I want to do is a piece of MDX like this
Code: Select all
{INTERSECT (
{FILTER({TM1FILTERBYLEVEL( {TM1SUBSETALL( [DetailedDim] )},[sys-BIDefn_DetailedDim].
([BI_Cube_Name].[BI_Cube_1],[BI_Cube_Measure].[Element Inclusion]) = "1")} ,
{TM1FILTERBYLEVEL( {TM1SUBSETALL( [SummaryDim] )}, 0)}
)}
This isn't valid syntax however as I can't directly reference two different dimensions (I think) and I get an error
INTERSECT: Sets have incompatible dimensionality expression:
from the TI process.
I can easily add another measure to my flagging cube that folds the level 0 test in and reference this, except I have to do it in many places. So there are plenty of ways of me to solve my actual problem. Just want to know if this is a basic limitation of MDX or if I am missing something?
Cheers,