Hi All, I am new with MDX. here I have to get the measure counts to fulfill the venn diagram for this I would get 3 parameters from the UI.
how can i get all the 3 combination of Dimensions Measure count in MDX. In the Below image I'm getting individual members measure count but how can i get combination of members measure count. Say for example i have got the individual members count for 262,210 and 198 DrKey's [DimPopulation] Dimension.I would need members count combination like 1) 262 and 210 along with measure count 2) 262 and 198along with measure count 3) 198and 210 along with measure count 4) 262,210 and 198 along with measure count to full fill the venn diagram . I also tried with the below query it gives individual members count but not giving combination of members of count. Can any one help me out.
image path (//social.msdn.microsoft.com/Forums/getfile/576938)
WITH
MEMBER DrKeyAS
[DimPopulation].[Population Key].
CurrentMember.Member_Key
MEMBER [262and210]AS
Sum
(
[DimPatient].[Patient Key].[Patient Key].
MEMBERS
,
IIF
(
(
[Measures].[DrPatientKeyCnt]
,{
[DimPopulation].[Population Key].&[262]
,[DimPopulation].[Population Key].&[210]
}
)
<> 0
,1
,
NULL
)
)
MEMBER [262]AS
Sum
(
[DimPatient].[Patient Key].[Patient Key].
MEMBERS
,
IIF
(
(
[Measures].[DrPatientKeyCnt]
,[DimPopulation].[Population Key].&[210]
)
<> 0
,1
,
NULL
)
)
MEMBER [210]AS
Sum
(
[DimPatient].[Patient Key].[Patient Key].
MEMBERS
,
IIF
(
(
[Measures].[DrPatientKeyCnt]
,[DimPopulation].[Population Key].&[210]
)
<> 0
,1
,
NULL
)
)
MEMBER [198]AS
Sum
(
[DimPatient].[Patient Key].[Patient Key].
MEMBERS
,
IIF
(
(
[Measures].[DrPatientKeyCnt]
,[DimPopulation].[Population Key].&[198]
)
<> 0
,1
,
NULL
)
)
SELECT
{
DrKey
,[Measures].[DrPatientKeyCnt]
,[262and210]
,[210]
,[198]
,[262]
}
ONCOLUMNS
FROM
[PopulationReportCube]
WHERE
(
[DimAnchorDate].[Date Key].&[20141031]
,[DimReport].[Report Key].&[1]
);