cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Using Rank with using Measure

I need to using RANK on a measure I created. I this possible?

 

Want to RANK my measure: mYTDRevenue

 

Based on my field: Cost Center (from my BusinessUnit table)

 

Thanks for any help,

 

Z

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

@Anonymous

 

It Could be something like this

 

RANK MEASURE=
RANKX ( ALLSELECTED ( BusinessUnit[Cost Center] ), [mYTDRevenue],, DESC, DENSE )
Regards,
Zubair


View solution in original post

4 REPLIES 4
Highlighted
Super User IV
Super User IV

Maybe, can you provide a sample of source data, calculations for your measures and expected output?

 

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


---------------------------------------

@ me in replies or I'll lose your thread!!!

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Anonymous
Not applicable

Thanks for replying Greg, much appreciated.  I will try to get that - it is hard with the proprietary data / model.     

 

In the meantime can you tell me if it should at least be possible to use Rank based on a measure.

 

Z

Highlighted

@Anonymous

 

It Could be something like this

 

RANK MEASURE=
RANKX ( ALLSELECTED ( BusinessUnit[Cost Center] ), [mYTDRevenue],, DESC, DENSE )
Regards,
Zubair


View solution in original post

Highlighted
Anonymous
Not applicable

Thanks!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors