MDX View not performing as expected
Posted: Tue Feb 08, 2022 2:22 pm
Was wondering if someone can help me here. We just upgraded to the latest PA/PAW version (2.0.72) and our MDX view seems slower then ever. This is the MDX view statement:
The goal of this view is to show only the data where [Dimension Measures].[Sales Flag] > 0. I am new to MDX, and I am wondering if there is another way that I can write the query to be more efficient. Any help or advise is welcome.
Thanks
Code: Select all
SELECT
NON EMPTY
{[Versions].[Actual], [Versions].[Budget]}
* {[Dimension Measures].[xxxxx Flag],
[Dimension Measures].[Total Hours],
[Dimension Measures].[xxxxx Dispute],
[Dimension Measures].[xxx Comments],
[Dimension Measures].[xxxx Status],
[Dimension Measures].[Last Updated By],
[Dimension Measures].[xxxx Comments],
[Dimension Measures].[xxxx Comments Date],
[Dimension Measures].[xxxx Date],
[Dimension Measures].[xxxx Date],
[Dimension Measures].[xxxxxxx date]}
* { [Product Types].[A],
[Product Types].[B],
[Product Types].[C],
[Product Types].[D],
[Product Types].[G],
[Product Types].[E],
[Product Types].[H],
[Product Types].[L],
[Product Types].[M]}
ON COLUMNS ,
NON EMPTY
FILTER(
TM1SORT(TM1FILTERBYLEVEL(TM1SUBSETALL([Periods Dates]) , 0), ASC) *
TM1FILTERBYLEVEL(TM1SUBSETALL([Regions]) , 0) *
TM1FILTERBYLEVEL(TM1SUBSETALL([Cities]) , 0),
[Dimension Measures].[Sales Flag] > 0
)
ON ROWS
FROM [Cube Sales]
Thanks