Hi BI folks,
I have few calculated members with expression looks like below. I have performance issue with these calculated members with associated dimensions in the cube. TIME and USER DATA SUBSCRIPTIONS are time dimensions which has regular relationship with the measure group. Dimension and fact tables have lots and lots of data. I suspect cross join and linkmember function are causing the issue.
Please suggest on how to optimize the calculated member expression.
CASE
WHEN [TIME].[QUARTER].CURRENTMEMBER.NAME <> [TIME].[QUARTER].DEFAULTMEMBER.NAME
THEN
AGGREGATE({NULL:[TIME].[QUARTER].CURRENTMEMBER}
* {LINKMEMBER([TIME].[QUARTER].NEXTMEMBER
,[USER DATA SALES].[CLOSED DATE QUARTER]):NULL}
, [Measures].[Total Sales])
ELSE
-------
-------
END
Thanks in advance.
Regards,
Venky