cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
selimovd Regular Visitor
Regular Visitor

Get a dimensional table from SSAS multidimensional with DAX without measure

Hello,

 

I want to load a dimensional table from my SSAS multidimensional cube. I don't want to load a measure, just the dimension.

For the dimension I also need some DIMENSION PROPERTIES, so I have to write my query in MDX.

 

I tried it like this in management studio what works pretty fine:

SELECT 
  { 
  } ON COLUMNS, 
  { 
    ( 
      DESCENDANTS( 
        [Organization].[Organization].[Hierarchie].allmembers 
      ) 
    ) 
  } DIMENSION PROPERTIES member_caption, [Organization].[Organization].[Hierarchie].[REQUID], [Organization].[Organization].[Hierarchie].[ANOTHERID]
   ON ROWS 
FROM [MYSERVER] CELL PROPERTIES value  

 

When I paste the query in Power Query the dimension elements are not going to be loaded. Power Query will just load empty columns. Is it possible to solve my problem in Power Query?

Why isn't it possible to load the table without a measure and how could I solve that?

 

Thank you and best regards

1 ACCEPTED SOLUTION

Accepted Solutions
mwegener Established Member
Established Member

Re: Get a dimensional table from SSAS multidimensional with DAX without measure

Hi,

 

try this.

 

WITH
MEMBER [Measures].[Organization] AS [Organization].[Organization].CURRENTMEMBER.MEMBER_CAPTION 
SELECT 
{ [Measures].[Organization] } 
ON COLUMNS, 
  { 
    ( 
      DESCENDANTS( 
        [Organization].[Organization].[Hierarchie].allmembers 
      ) 
    ) 
  } 
DIMENSION PROPERTIES [Organization].[Organization].[Hierarchie].[REQUID]
                   , [Organization].[Organization].[Hierarchie].[ANOTHERID]
ON ROWS  
FROM [MYSERVER]
CELL PROPERTIES VALUE 

View solution in original post

2 REPLIES 2
mwegener Established Member
Established Member

Re: Get a dimensional table from SSAS multidimensional with DAX without measure

Hi,

 

try this.

 

WITH
MEMBER [Measures].[Organization] AS [Organization].[Organization].CURRENTMEMBER.MEMBER_CAPTION 
SELECT 
{ [Measures].[Organization] } 
ON COLUMNS, 
  { 
    ( 
      DESCENDANTS( 
        [Organization].[Organization].[Hierarchie].allmembers 
      ) 
    ) 
  } 
DIMENSION PROPERTIES [Organization].[Organization].[Hierarchie].[REQUID]
                   , [Organization].[Organization].[Hierarchie].[ANOTHERID]
ON ROWS  
FROM [MYSERVER]
CELL PROPERTIES VALUE 

View solution in original post

selimovd Regular Visitor
Regular Visitor

Re: Get a dimensional table from SSAS multidimensional with DAX without measure

Thank you, this worked Smiley Happy

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 59 members 1,239 guests
Please welcome our newest community members: