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
To add on, everytime that an employee changes from quartile, the counter is reseted.
As an example, I have to be able to create the column "Weeks on quartile" in the following table.
| id_week | id_employee | quartile | Weeks on quartile |
| 1 | 1 | q1 | 1 |
| 2 | 1 | q1 | 2 |
| 3 | 1 | q2 | 1 |
| 4 | 1 | q1 | 1 |
| 5 | 1 | q1 | 2 |
| 3 | 2 | q3 | 1 |
| 4 | 2 | q4 | 1 |
| 5 | 2 | q4 | 2 |
| 2 | 3 | q2 | 1 |
| 3 | 3 | q2 | 2 |
| 4 | 3 | q2 | 3 |
| 5 | 3 | q2 | 4 |
| 6 | 3 | q1 | 1 |
| 7 | 3 | q1 | 2 |
Solved! Go to Solution.
@Anonymous This is Cthulhu: Cthulhu - Microsoft Power BI Community
@Anonymous This is Cthulhu: Cthulhu - Microsoft Power BI Community
Hi, I had to make some changes but got it working.
Here is the final result:
Thanks!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |