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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi experts!
How is it possible to get a rank column based on a DateTime column?
Solved! Go to Solution.
Hi,
For duplicates we can modify the last optional parameter of RANKX e.g.
Dense:
Skip:
In addition to this we can add an index column to the table and use that as a secondary ranking:
Proud to be a Super User!
Hi,
Here is one way to do this:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
@ValtteriN : Thanks a lot! Does this work with duplicates? It seems like not. How can we add this aspect into the function?
Hi,
For duplicates we can modify the last optional parameter of RANKX e.g.
Dense:
Skip:
In addition to this we can add an index column to the table and use that as a secondary ranking:
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |