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

Issue with huge CrossJoin - Improving a Query

$
0
0
i got a query that consists of a cross join between 3 dims .dim1- has 15,000 membersdim2- this is the organisation hierarchydim 3- has 30,000 membersthis is the query:[quote]TOPCOUNT( FILTER( (NONEMPTY([DIM1].[Key].[All],[Measures].[Target]) *DIM2.CHILDREN* NONEMPTY([DIM3].[Key].[All],[Measures].[Target])), [Measures].[Target]>0 ),20,[Measures].[Gap) [/quote]as you can imagine -this is a huge cross join but i have to do this ...i tried functions like "filter" and "non empty" but it doesnt help...it takes more then 30 minutes...how can i improve it so it will run in a short time?thank you

Viewing all articles
Browse latest Browse all 1341

Trending Articles