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

MDX-Query-Optimization

$
0
0
Hi everbody,i have a mdx-query which works on model level without any problems.But if i switch to unit-level (round about 50 Mio rows) the query runs always in a timeout.Is there maybe a query bottleneck which can be optimized?[code="other"]with member [Measures].[QtyTotal] as [Measures].[QtyInWarranty] + [Measures].[QtyInExtension]Member [Measures].[QtyInWarrantyLastDayOfMonth] AS( [Dim Calendar].[Calendar].CurrentMember.LASTCHILD ,[Measures].[QtyInWarranty]) Member [Measures].[QtyInExtensionLastDayOfMonth] AS( [Dim Calendar].[Calendar].CurrentMember.LASTCHILD ,[Measures].[QtyInExtension]) SELECT{ [Measures].[QtyInWarrantyLastDayOfMonth], [Measures].[QtyInExtensionLastDayOfMonth], [Measures].[QtyInWarranty], [Measures].[QtyInExtension], [Measures].[QtyStdIn], [Measures].[QtyStdOut], [Measures].[QtyExtIn], [Measures].[QtyExtOut], [Measures].[QtyTotal]} on 0,Filter(NONEMPTY(CROSSJOIN( {[v Dim Unit Model 4IB].[Id Unit].[Id Unit].members}, {[Dim Country].[Id Country].[Id Country].members}, {[Dim Calendar].[Calendar].[Id Calendar Month].members} ), [Measures].[QtyTotal] ), [Measures].[QtyTotal] > 0) on 1FROM [InstalledBaseCS_Serial]WHERE [Dim Calendar].[Year].&[2015][/code]ThanksArmin

Viewing all articles
Browse latest Browse all 1341

Trending Articles