sql server - Recurring calculations in SQL 2008 MDX query -


I have an MDX query returns the following tuples:

  Dim1A, Dim11, Dim21, MeasurelA, Measurell, Measure2l Dim1A, Diml2, Dim22, MeasurelA, Measurel2, Measure22 Dim1A, Diml3, Dim23, MeasurelA, Measurel3, Measure23 Dim1A, Diml4, Dim24, MeasurelA, Measurel4, Measure24 .... .... Dim2A, Dimll, Dim2l, Measure2A, Measurell, Measure2l Dim2A, Diml2, Dim22, Measure2A, Measurel2, Measure22 Dim2A, Diml3, Dim23, Measure2A, Measurel3, Measure23 Dim2A, Diml4, Dim24, Measure2A, Measurel4, Measure24  

Measure1A, Measure2A Dim1A, gets repeated for Dim2A and if I measure since a large set of query response time is slower one includes calculation is. My question would be that I stopped to each dim 4 times measurements to calculate the A A? So in the above example, measurement 4A is calculated 4 times and Major 2A also does. Ideally I'd like to be them counted once for each unique dim a

:

  with member [remedy] [Measure1a] AS .... Your calculations .... SELECT ..... Your query  

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -