Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Euro0681
Helper II
Helper II

Ranking based on date (Calculated Measure)

I need to rank a table based on dates as shown in the example below (we can assume there are more ID's but for simplicity i only included one)
I have tried 
= Rankx ( allselected('table'[id]), SelectedValue('table'[date]), desc ) 

but i only get rank = 1 for both ID's

Euro0681_0-1670262312102.png

 

2 REPLIES 2
v-xiaotang
Community Support
Community Support

Hi @Euro0681 

Thanks for reaching out to us.

I just want to confirm if you resolved this issue? If yes, you can accept the answer helpful as the solution or share you method and accept it as solution, thanks for your contribution to improve Power BI.

If you need more help, please let me know.

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

tamerj1
Super User
Super User

Hi @Euro0681 

Please try

= Rankx ( allselected('table'[id]), CALCULATE ( SelectedValue('table'[date])), desc ) 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.