IIF Mdx in IBM PAW not compiling
Posted: Wed Jun 29, 2022 10:55 am
Hello Everyone,
I am writing an IIF statement in mdx but it is getting failed to compile.
Scenario is based on the selection of version, different measure members should be shown.
Currently tried mdxs
1. IIF( [Scenario].CurrentMember = "Elem1", [Dim_Measure].[MeasureA], [Dim_Measure].[MeasureB] )
2. IIF( [Scenario].CurrentMember.Name = "Elem1", [Dim_Measure].[MeasureA], [Dim_Measure].[MeasureB] )
3. IIF( [Scenario].CurrentMember.Name = [Scenario].[Elem1], [Dim_Measure].[MeasureA], [Dim_Measure].[MeasureB] )
I used Filter too but still its not working. I tried mentioning the hierarchy with dimension name and that is also not working. I also tried writing this in Architect but I had no luck there too.
It would be great if anyone can help me here.
Thanks in advance
I am writing an IIF statement in mdx but it is getting failed to compile.
Scenario is based on the selection of version, different measure members should be shown.
Currently tried mdxs
1. IIF( [Scenario].CurrentMember = "Elem1", [Dim_Measure].[MeasureA], [Dim_Measure].[MeasureB] )
2. IIF( [Scenario].CurrentMember.Name = "Elem1", [Dim_Measure].[MeasureA], [Dim_Measure].[MeasureB] )
3. IIF( [Scenario].CurrentMember.Name = [Scenario].[Elem1], [Dim_Measure].[MeasureA], [Dim_Measure].[MeasureB] )
I used Filter too but still its not working. I tried mentioning the hierarchy with dimension name and that is also not working. I also tried writing this in Architect but I had no luck there too.
It would be great if anyone can help me here.
Thanks in advance