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.
Hi everybody!
I am trying to make an accumulated sum of the days that an employee has worked in a row, but I need it to restart and not count the weekends, that's why I have a table similar to this one.
I have created a table with the columns I have, (Days, Name, Labor day, Worked?) and the result I would like to have (Days in a row).
| Days | Name | Labor day | Worked? | Days in a row |
| 01/01/2023 | Frank | false | false | 0 |
| 02/01/2023 | Frank | true | true | 1 |
| 03/01/2023 | Frank | true | true | 2 |
| 04/01/2023 | Frank | true | true | 3 |
| 05/01/2023 | Frank | true | true | 4 |
| 06/01/2023 | Frank | true | true | 5 |
| 07/01/2023 | Frank | false | false | 5 |
| 08/01/2023 | Frank | false | false | 5 |
| 09/01/2023 | Frank | true | true | 6 |
| 10/01/2023 | Frank | true | true | 7 |
| 11/01/2023 | Frank | true | true | 8 |
| 01/01/2023 | Gary | false | false | 0 |
| 02/01/2023 | Gary | true | true | 1 |
| 03/01/2023 | Gary | true | true | 2 |
| 04/01/2023 | Gary | true | false | 0 |
| 05/01/2023 | Gary | true | true | 1 |
| 06/01/2023 | Gary | true | true | 2 |
| 07/01/2023 | Gary | false | false | 2 |
| 08/01/2023 | Gary | false | false | 2 |
| 09/01/2023 | Gary | true | true | 3 |
| 10/01/2023 | Gary | true | true | 4 |
| 11/01/2023 | Gary | true | true | 5 |
I leave here the example of what I have done so far in case it can help.
Var Counter =
I think you can use or adapt the technique in https://www.youtube.com/watch?v=8M8mgfZsTS0
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 3 | |
| 3 | |
| 3 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 8 | |
| 6 | |
| 6 |