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! Get ahead of the game and start preparing now! Learn more
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!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 12 | |
| 12 | |
| 10 | |
| 5 |