dbTalk Databases Forums  

MDX query needed...

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


Discuss MDX query needed... in the microsoft.public.sqlserver.olap forum.



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

Default MDX query needed... - 06-20-2005 , 12:38 PM






Hello:
I have a cube with 3 dimensions and measure.
The dimensions are : "dates", "factors" and "ID".
Could you give me a hint to create a MDX query
to extract ONLY "dates" dimension from the cube, one column like that:

"dates"
----------------
2001-12-01
2002-01-01
2002-02-01
2002-03-01
2002-04-01
.....................


Thanks,
GB



Reply With Quote
  #2  
Old   
Deepak Puri
 
Posts: n/a

Default Re: MDX query needed... - 06-20-2005 , 06:22 PM






Here's an example from the Foodmart Sales cube:

Quote:
With Member [Measures].[MonthFullName] as
'[Time].CurrentMember.UniqueName'
select {[Measures].[MonthFullName]} on columns,
Non Empty [Time].[Month].Members on rows
from Sales
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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.