![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Greetings, I am just starting out with MDX Queries. I am practicing with a DB from a CD that came with a this book I am using "Sql Server Olap" Developer's Guide (note: I am not real crazy about this book - the author assumes a lot of detail stuff is already known - so I appologize in advance if some of my questions seem kind of lame). The database is called "FundAcctSample", and the cube I am practicing with is called "Investments and contains these dimensions: Account Fund FundAge Manager Measures Office Time For the query in question I will be using the "Office" dimension which contains these members: (All) Region Accounting Business I will be querying the "Business" member which contains these members: Conneticut Vermont Massachusetts New York The following MDX query produces 1 row of columns like this: select [Office].[business].Members on columns from Investments Results Conneticut Vermont Massachussets New York $1,740.321.00 $1,407.349.08 $584.393.24 For the sake of learning MDX Queries I want to list the result above as rows. I tried this which did not work: select [Office].[business].Members on rows from Investments I am guessing that the "on rows" clause must come after "on columns". Could someone explain? Is there a way to list my results above in one column and several rows instead of one row and several columns? Thanks, Rich |
#3
| |||
| |||
|
|
try this: select [Office].[business].Members on columns, measures.members on columns from Investments "Rich" <Rich (AT) discussions (DOT) microsoft.com> wrote in message news F6C9AE1-A636-411D-854E-E867CEA17DDE (AT) microsoft (DOT) com...Greetings, I am just starting out with MDX Queries. I am practicing with a DB from a CD that came with a this book I am using "Sql Server Olap" Developer's Guide (note: I am not real crazy about this book - the author assumes a lot of detail stuff is already known - so I appologize in advance if some of my questions seem kind of lame). The database is called "FundAcctSample", and the cube I am practicing with is called "Investments and contains these dimensions: Account Fund FundAge Manager Measures Office Time For the query in question I will be using the "Office" dimension which contains these members: (All) Region Accounting Business I will be querying the "Business" member which contains these members: Conneticut Vermont Massachusetts New York The following MDX query produces 1 row of columns like this: select [Office].[business].Members on columns from Investments Results Conneticut Vermont Massachussets New York $1,740.321.00 $1,407.349.08 $584.393.24 For the sake of learning MDX Queries I want to list the result above as rows. I tried this which did not work: select [Office].[business].Members on rows from Investments I am guessing that the "on rows" clause must come after "on columns". Could someone explain? Is there a way to list my results above in one column and several rows instead of one row and several columns? Thanks, Rich |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
try this one SELECT Measures.Members ON COLUMNS, [Office].[business].Members ON ROWS FROM Investments It will give you the desired result. Faraz |
![]() |
| Thread Tools | |
| Display Modes | |
| |