Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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
User | Count |
---|---|
120 | |
69 | |
68 | |
57 | |
50 |
User | Count |
---|---|
166 | |
82 | |
68 | |
65 | |
54 |