MDX to get all elements of a ParamCube
Posted: Wed Dec 11, 2024 3:41 pm
I have a cube (}TM1Config_UserReportDimElements), where I store selections of the user. Because they can select multiple elements of a dimension, I have a dimension "}numbers" which only include number elements "1" ... "20". So I can store each element the user has has chosen in a list in the elements "1" ... "20" without holes.
Unfortunately this MDX does not return any element. It should return two elements, because I entered them in the slot for dimension "}KW_N_Von" in cube }TM1Config_UserReportDimElements. Any idea?
Code: Select all
{
FILTER(
TM1SUBSETALL([}KW_N_Von]),
SUM(
{[}Numbers].[AllMembers]},
IIF(
[}TM1Config_UserReportDimElements].(
StrToMember("[}Clients].[" + USERNAME + "]"),
[}TM1Config_Reports].[R371],
StrToMember("[}TM1Config_Dimensions].[}KW_N_Von]"),
[}Numbers].CurrentMember,
[}TM1Config_ReportDimElement].[Element]
) = [}KW_N_Von].CurrentMember,
1,
0
)
) > 0
)
}