Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
97 | |
80 | |
67 | |
63 |
User | Count |
---|---|
147 | |
110 | |
108 | |
85 | |
64 |