Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
First of all, I would like to introduce myself and say that it is a pleasure to be part of the community. I started working with Power BI 7 months ago and I work in the industry.
I have a problem because I would like to make a ranking from 1 to the number of records registered that day and the next day restart the ranking from 1.
I have used the Rankx function but I am not able to restart it when changing the value of one of the two dates (there are two dates intentionally and they are well related).
I attach an image of the table layout:
The formula I am using now is: Ranking by day = RANKX('Tabla Resumen Autobox','Tabla Resumen Autobox'[Date with hour],,ASC).
I attach another image of how the table is currently and how I need it to look like. I hope you can help me because I can't get it out.
How I have
How I need
I hope I have explained well a greeting.
Hi @Zapas1428 ,
Try this out:
RANKmeausre=
Var currentrnk= MAX(Tabla Resumen Autobox'[Date with hour])
RETURN
RANKX(FILTER(ALLSELECTED(Tabla Resumen Autobox),Tabla Resumen Autobox'[Date with hour]= currentrnk),Tabla Resumen Autobox'[Date with hour],,ASC, Dense)
I hope this helps.
Mark this as a solution if I answered your question. Kudos are always appreciated.
Thanks.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 8 | |
| 8 | |
| 7 |