Need help on MDX
Posted: Mon Sep 11, 2023 7:57 am
Hello, I need help on getting this MDX to work
In a cube view, I'm trying to set the values to be displayed for dim01, subjected to selection of dim2 element and attributes of the selected dim2 element
CURRENTMEMBER.PROPERTIES work fine but CURRENTMEMBER.PROPERTIES().PROPERTIES() doesn't work.
TM1SubsetToSet([dim01] ,
IIF([dim02].CURRENTMEMBER.PROPERTIES("att1").PROPERTIES("att2") = "xxx" , "subset_a" ,
IIF([dim02].CURRENTMEMBER.PROPERTIES("att1").PROPERTIES("att2") = "yyy" , "subset_b" , "subset_none")))
Can anyone help with the syntax.
Much appreciated!
In a cube view, I'm trying to set the values to be displayed for dim01, subjected to selection of dim2 element and attributes of the selected dim2 element
CURRENTMEMBER.PROPERTIES work fine but CURRENTMEMBER.PROPERTIES().PROPERTIES() doesn't work.
TM1SubsetToSet([dim01] ,
IIF([dim02].CURRENTMEMBER.PROPERTIES("att1").PROPERTIES("att2") = "xxx" , "subset_a" ,
IIF([dim02].CURRENTMEMBER.PROPERTIES("att1").PROPERTIES("att2") = "yyy" , "subset_b" , "subset_none")))
Can anyone help with the syntax.
Much appreciated!