Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

SSAS - Performance issue with LINKMEMBER function and cross join

$
0
0

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


Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>