cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Super User III
Super User III

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 
Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Proud to be a Super User!

View solution in original post

2 REPLIES 2
Super User III
Super User III

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 
Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Proud to be a Super User!

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
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors
Top Kudoed Authors