The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
User | Count |
---|---|
26 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
30 | |
15 | |
12 | |
12 | |
7 |