PowerPivot - Cube formulas to return member text based on rank

Willem2904

New Member
Joined
Apr 4, 2018
Messages
6
I have a table with some focus areas as shown below:
table.PNG


I edit the table in PowerQuery and add an index starting from 1.

Then I loaded the query to the DataModel and added a calculated column for Rank:
=RANKX(FILTER('Qry_Focus_Areas';'Qry_Focus_Areas'[Professional Forum]=EARLIER(Qry_Focus_Areas[Professional Forum]));[Index];;ASC;Dense)
This works fine, as you can see below, it ranks the focus areas grouped by professional forum:
Ranked.PNG


Now I would like to have a cube formula (not pivot table) that returns the focus area if I supply the rank number (e.g. 1, 2, 3,...) and the Professional Forum (e.g. Cables).

Any help is much appreciated!
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Please remember:

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: PowerPivot - Cube formulas to return member text based on rank
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

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