Have used this one countless times. The problem is that DAYSBETWEEN DAX function does not allow returning negative values, so instead use:
DaysBetween = ROUNDUP(1.*[Date]-[OtherDate],0),
Proud to be a Datanaut!
Here is an ugly alternative 🙂
Column = IFERROR(
DATEDIFF(Dates[Date],Dates[OtherDate],DAY),
-DATEDIFF(Dates[OtherDate],Dates[Date],DAY )
)
Hi,
How do you count only work days between two dates?
Thanks
Elizabeth Tachjian
elizabeth@analyticsrealtime.com.au
User | Count |
---|---|
28 | |
14 | |
11 | |
6 | |
4 |
User | Count |
---|---|
19 | |
16 | |
12 | |
7 | |
6 |