SSAS: Member Codes in Power Query/Pivot

cr731

Well-known Member
Joined
Sep 17, 2010
Messages
611
I'm connecting to a cube through Power Query or Pivot's SSAS connector, and I'm wondering if it's possible to show the member code (not sure if that's the correct term) as opposed to the member name or description.

For example, I have a dimension "Customer," which shows me each customer's name. But I also want to return the code for each customer.

If I were to connect to the cube through a regular Excel pivot table, I can right-click on the field and choose 'Show Properties in Report' and it gives me a choice to view those other properties.

Can this be done either through PQ/PP or else by modifying the MDX somehow?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I able to make it work by adding the red text in the MDX statement, not sure if this is the best/only way?

Code:
SELECT { [Time].[Time].DEFAULTMEMBER } ON COLUMNS ,
NON EMPTY { 
{ DESCENDANTS( [Dimensions].[Cust].[All Cust], [Dimensions].[Cust].[Name] ) } * 
{ DESCENDANTS( [Dimensions].[Region].[All Region], [Dimensions].[Region].[Region] ) } } 
[B][COLOR=#FF0000]DIMENSION PROPERTIES [Dimensions].[Cust].KEY, MEMBER_CAPTION [/COLOR][/B]ON ROWS  
FROM [SALES] 
WHERE ( [Measures].[Pounds] )
CELL PROPERTIES VALUE, FORMATTED_VALUE, CELL_ORDINAL
 
Upvote 0

Forum statistics

Threads
1,225,730
Messages
6,186,698
Members
453,369
Latest member
positivemind

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top