This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Hi Everyone,
I have below table with employee attendance data from which I need to identify whether there is any employee who has reported to work continuously for 7 days or more. Pls help, may data look like this. Thank you inadvance !
| EMP No | Date |
| 1 | 9/17/2018 |
| 1 | 9/18/2018 |
| 1 | 9/19/2018 |
| 1 | 9/20/2018 |
| 1 | 9/21/2018 |
| 1 | 9/22/2018 |
| 1 | 9/23/2018 |
| 1 | 9/25/2018 |
| 1 | 9/26/2018 |
| 1 | 9/27/2018 |
| 1 | 9/28/2018 |
| 1 | 9/29/2018 |
| 1 | 9/30/2018 |
| 2 | 9/17/2018 |
| 2 | 9/19/2018 |
| 2 | 9/20/2018 |
| 2 | 9/21/2018 |
| 2 | 9/22/2018 |
| 2 | 9/23/2018 |
| 2 | 9/24/2018 |
| 2 | 9/25/2018 |
| 2 | 9/27/2018 |
| 2 | 9/28/2018 |
| 2 | 9/29/2018 |
| 2 | 9/30/2018 |
| 3 | 9/17/2018 |
| 3 | 9/19/2018 |
| 3 | 9/20/2018 |
| 3 | 9/21/2018 |
| 3 | 9/22/2018 |
| 3 | 9/24/2018 |
| 3 | 9/25/2018 |
| 3 | 9/27/2018 |
| 3 | 9/28/2018 |
| 3 | 9/29/2018 |
| 3 | 9/30/2018 |
| 4 | 9/17/2018 |
| 4 | 9/18/2018 |
| 4 | 9/19/2018 |
| 4 | 9/20/2018 |
| 4 | 9/21/2018 |
| 4 | 9/22/2018 |
| 4 | 9/23/2018 |
| 4 | 9/24/2018 |
| 4 | 9/25/2018 |
| 4 | 9/26/2018 |
| 4 | 9/27/2018 |
| 4 | 9/28/2018 |
| 4 | 9/29/2018 |
| 4 | 9/30/2018 |
Solved! Go to Solution.
Try this calculated column.
It will identify the first day when consecutive 7 days start for each employee
You can then use it as VISUAL filter
Continuously_Present =
VAR mycontinuousdays = 7
RETURN
IF (
[Date] + mycontinuousdays
- 1
= CALCULATE (
MIN ( [Date] ),
FILTER (
Table1,
[EMP No] = EARLIER ( [EMP No] )
&& [Index]
= EARLIER ( [Index] ) + mycontinuousdays
- 1
)
),
"Present"
)
Hi, I'm trying to solve similar problem to find the employee count who consectively worked more than 6 days. I'm using power Pivot to solve the same but I'm getting below error. My data looks similar some what similar
Try this calculated column.
It will identify the first day when consecutive 7 days start for each employee
You can then use it as VISUAL filter
Continuously_Present =
VAR mycontinuousdays = 7
RETURN
IF (
[Date] + mycontinuousdays
- 1
= CALCULATE (
MIN ( [Date] ),
FILTER (
Table1,
[EMP No] = EARLIER ( [EMP No] )
&& [Index]
= EARLIER ( [Index] ) + mycontinuousdays
- 1
)
),
"Present"
)
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 22 | |
| 19 | |
| 19 |