Quantcast
Channel: SQLServerCentral » Data Warehousing » Analysis Services » Latest topics
Viewing all articles
Browse latest Browse all 1341

dynamic pagination in MDX?

$
0
0
HI all, Im trying to achieve some level of pagination within SSAS for a cube that is queried by a website we are working on. The intail developer wrote a bit of code that was taking upwards of 20 min to execute and returned around 80k records for a simple widget. My approach to speed this up is do some sort of pagination within MDX but Im stuck. Here is my code: [code="other"]SELECT { [Measures].[Cost] ,[Measures].[Clicks] ,[Measures].[Conversion Rate] ,[Measures].[Revenue] ,[Measures].[Impressions Share] ,[Measures].[Cost Per Click] ,[Measures].[Quality Score] ,[Measures].[Average Position] ,[Measures].[% Cost] ,[Measures].[Lost Impression Share (Budget)] ,[Measures].[Lost Impressions Share Ranking] ,[Measures].[Impressions] ,[Measures].[Click Through Rate] ,[Measures].[Conversions] ,[Measures].[Converted Clicks] ,[Measures].[% Conversions] ,[Measures].[Cost Per Lead] ,[Measures].[Max CPC] ,[Measures].[% Revenue] ,[Measures].[Return On Ad Spend] } ON COLUMNS , TOPCOUNT({ NONEMPTY(([Keyword].[Keyword].Children, NONEMPTY([Campaign].[Engine].[Engine].ALLMEMBERS) * NONEMPTY([Campaign].[Campaign].[Campaign].ALLMEMBERS) * [Campaign].[Ad Group].Children * NONEMPTY([Campaign].[Branding].[Branding].ALLMEMBERS) ) )},15,[Measures].[Clicks]) ON ROWSFROM cubeWHERE (..) [/code]This executes in about 1 second which is fine, however the business requirement is that the end user can click to go to any set of 15 results. I tried to do this with SUBSET and ORDER but it killed performance. Any advice you could give me would be massively helpfulTHANKS!!!!!

Viewing all articles
Browse latest Browse all 1341

Trending Articles