|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 3:44 PM
Points: 174,
Visits: 663
|
|
I have two queries that has been implemented in MDX for different dates:
SELECT NON EMPTY { [Measures].[Quantity Received] } ON COLUMNS, non empty {([Customer - ID].[Customer - ID],[Entry Date Time].[01/01/2008])} ON ROWS FROM [Sales]
SELECT NON EMPTY { [Measures].[Quantity Received] } ON COLUMNS, non empty {([Customer - ID].[Customer - ID],[Entry Date Time].[01/02/2008])} ON ROWS FROM [Sales]
The only difference of these two queries is on their Entry Date Time Now I want to join these table so I will have result like this
CustomerID EntryDateTime QuantityRecieved EntryDateTime QuantityRecieved 12 01/01/2008 12 01/02/2008 13
Is this doable and also can I chnage the caption of the column on the result Set.Because now I have duplicate EntryDateTime,QuantityRecieved.
Thanks
|
|
|
|
|
SSC Veteran
      
Group: General Forum Members
Last Login: Today @ 4:11 AM
Points: 251,
Visits: 395
|
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Today @ 4:19 AM
Points: 117,
Visits: 460
|
|
I don't understand why you'd need to join two MDX queries together. In the above example wouldn't you just have a set with the multiple dates you want to select.
Like
SELECT NON EMPTY { [Measures].[Quantity Received] } ON COLUMNS, non empty {[Customer - ID].[Customer - ID].[All].Children} * {[Entry Date Time].[01/01/2008],[Entry Date Time].[01/02/2008]} ON ROWS FROM [Sales]
Am I missing something? Mack
|
|
|
|