Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi,
I am currently working on a formula to obtain the number of days a person has been absent.
That's why I have tried to use the basic formula to count the days
I have used the basic formula:
Absence End Date - Absence Start Date.
Unfortunately, it doesn't count the 1st date.
So, is there a way to add to the formula a +1 to count the 1st date as well?
For example, the 1st line should be 1 absence as it is an absence.
Solved! Go to Solution.
@alexcatala , Most of the time in case of datediff you have add one
int([Absence End Date] - [Absence Start Date]) +1
or
datediff( [Absence Start Date], [Absence End Date], day) +1
@alexcatala , Most of the time in case of datediff you have add one
int([Absence End Date] - [Absence Start Date]) +1
or
datediff( [Absence Start Date], [Absence End Date], day) +1
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 20 | |
| 17 | |
| 12 |
| User | Count |
|---|---|
| 64 | |
| 55 | |
| 42 | |
| 38 | |
| 30 |