Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi,
I am asked to create a calculation of employee consecutive work days. For specific period, want to see every employee's max consecutive work days. I am trying to write a measure, but stuck. Please help!
| Employee ID | Work Date |
| A | 1/1/2023 |
| A | 1/2/2023 |
| A | 1/3/2023 |
| B | 1/7/2023 |
| A | 1/5/2023 |
| A | 1/6/2023 |
| A | 1/7/2023 |
| A | 1/8/2023 |
| B | 1/10/2023 |
| A | 1/9/2023 |
| A | 1/10/2023 |
| A | 1/20/2023 |
| B | 1/22/2023 |
| A | 1/21/2023 |
| A | 1/22/2023 |
| A | 1/23/2023 |
| B | 1/23/2023 |
| B | 1/24/2023 |
| A | 1/24/2023 |
| A | 1/25/2023 |
| A | 1/26/2023 |
| A | 1/27/2023 |
| B | 1/28/2023 |
| B | 1/29/2023 |
| B | 1/30/2023 |
| B | 1/31/2023 |
| B | 2/1/2023 |
| B | 2/2/2023 |
I hope this message finds you well. I've noticed that this solution remain unresolved. If any of you have managed to find a resolution to the issue, I kindly request that you share your solution for the benefit of the entire community. Alternatively, if you're still facing challenges, please do let us know as well.
Your insights and updates will greatly assist others who might be encountering the same challenge.
@babyjb1979 This might help, it was created for something similar. Cthulhu - Microsoft Fabric Community
But your method is when the index column is ready. My situation is no new column can be added into the dataset. Is there a way to resolve just by DAX?
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 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 24 | |
| 11 | |
| 11 | |
| 9 | |
| 8 |