Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
My data contains two separate screenshots:
1) Rank is working properly (resets to 0) by resetting when "Shift" changes:
2) Rank is not resetting to 0 further down in the data when shift changes, because it's continuing from the last time it saw "Shift 3".
How do I change my rank measure to reset to 1 everytime a new shift is seen every day?
Solved! Go to Solution.
Hi @JoeKulasa ,
Refer:
Column = RANKX(FILTER('Table','Table'[day]=EARLIER('Table'[day])&&'Table'[shift]=EARLIER('Table'[shift])),'Table'[value],,ASC)
Best Regards,
Jay
Hi @JoeKulasa ,
Refer:
Column = RANKX(FILTER('Table','Table'[day]=EARLIER('Table'[day])&&'Table'[shift]=EARLIER('Table'[shift])),'Table'[value],,ASC)
Best Regards,
Jay
@JoeKulasa I would first try to add in another line, like 5, that is [Day] = earlier([Day] in the FILTER.
Respectfully,
Zoe Douglas (DataZoe)
Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |