MDX to filter by cube value
Posted: Tue Sep 17, 2024 4:28 pm
Hi all,
I am trying to create a source view within a TI process using MDX to filter based on Cube value.
So, the cube has 7 dimensions and I have created the source view based on the requirement as below which works fine
Dim1 - 1 Static element selected
Dim2 - 3 Consolidated elements selected
Dim3 - 2 Consolidated elements selected
Dim4 (Product) - All leaf levels in the dimension with MDX
Dim5 (Account)- Leaf levels from a specific consolidation with MDX
Dim6 - 1 Static element selected
Dim7 (Measure) - 'Amount'
Now the problem arises when I try create the MDX for filtering only those values in this view which are above 1000.
I used this MDX for Product in order to filter which does not work. I have been trying since long , have read posts in the forum and bhints MDX guide but still stuck.
{FILTER({TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product] )}, 0)},[Cube].([Measure].[Amount]) > 1000 )}
Any help is appreciated. Thank you.
I am trying to create a source view within a TI process using MDX to filter based on Cube value.
So, the cube has 7 dimensions and I have created the source view based on the requirement as below which works fine
Dim1 - 1 Static element selected
Dim2 - 3 Consolidated elements selected
Dim3 - 2 Consolidated elements selected
Dim4 (Product) - All leaf levels in the dimension with MDX
Dim5 (Account)- Leaf levels from a specific consolidation with MDX
Dim6 - 1 Static element selected
Dim7 (Measure) - 'Amount'
Now the problem arises when I try create the MDX for filtering only those values in this view which are above 1000.
I used this MDX for Product in order to filter which does not work. I have been trying since long , have read posts in the forum and bhints MDX guide but still stuck.
{FILTER({TM1FILTERBYLEVEL( {TM1SUBSETALL( [Product] )}, 0)},[Cube].([Measure].[Amount]) > 1000 )}
Any help is appreciated. Thank you.