Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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
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.
Hi @Euro0681
Please try
= Rankx ( allselected('table'[id]), CALCULATE ( SelectedValue('table'[date])), desc )
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 15 | |
| 12 | |
| 8 | |
| 7 | |
| 7 |