dbTalk Databases Forums  

MDX Displaying Dimension Levels in columns

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


Discuss MDX Displaying Dimension Levels in columns in the microsoft.public.sqlserver.olap forum.



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

Default MDX Displaying Dimension Levels in columns - 01-09-2004 , 12:16 PM






I have a flight Dimension
Where Flight dimension is the following hierachy
Origin
Destination
FlightNumber

SELECT {[Measures].[Bookings]} ON COLUMNS
, { Descendants([Flight].[All Flight],3)} ON ROWS
FROM [FlightFact]
WHERE [DepartureDate].[Date Value].&[3/1/2004]


I would like to display in Columns
the full hiearchy plus the booking measure:
LAX DEN 100 136

anyone point me in the right direction. I would like to avoid using Calculated measures

Reply With Quote
  #2  
Old   
Mark
 
Posts: n/a

Default Re: MDX Displaying Dimension Levels in columns - 01-15-2004 , 09:30 AM






Try using PROPERTIES

SELECT {[Measures].[Bookings]} ON COLUMNS
, { Descendants([Flight].[All Flight],3)}
PROPERTIES [Flight].[Origin].Name, [Flight].[Destination].Name,
[Flight].[FlightNumber].Name
ON ROWS
FROM [FlightFact]
WHERE [DepartureDate].[Date Value].&[3/1/2004]

The properties keyword does not work in the MDX sample app, but it
does return the column values using OleDb

Mark


"Jason" <anonymous (AT) discussions (DOT) microsoft.com> wrote

Quote:
I have a flight Dimension
Where Flight dimension is the following hierachy
Origin
Destination
FlightNumber

SELECT {[Measures].[Bookings]} ON COLUMNS
, { Descendants([Flight].[All Flight],3)} ON ROWS
FROM [FlightFact]
WHERE [DepartureDate].[Date Value].&[3/1/2004]


I would like to display in Columns
the full hiearchy plus the booking measure:
LAX DEN 100 136

anyone point me in the right direction. I would like to avoid using Calculated measures

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.