dbTalk Databases Forums  

sort DrillThrough results

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss sort DrillThrough results in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Bas
 
Posts: n/a

Default sort DrillThrough results - 01-07-2005 , 02:16 PM






Hello,

- How do I order the results of a DrillThrough query in MDX based on a field
in the fact table?

- How do I limit / filter the results of my drillthrough query based on the
value of a Measure?

I currently have:

DrillThrough
Select
From MyCube
Where (
[Dimension1].[x]
, [Dimension2].[Y]
, [Dimension3].[Z]
)

Now I want only those records that meet the restriction of Measures.[My
Measure] = 1
It so happens that the field in the fact table for that measure is either 0
or 1.

If I were to write a sql query to get the same info

Select * from FactTable
Where DimensionField1 = X_id
AND DimensionField2 = Y_id
And DimensionField3 = Z_id
AND MeasureField=1
Order By SomeField DESC

Any suggestions would be much appreciated.

-Bas



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.