Forum Discussion
Greg_Deckler
Community Champion
10 years agoDays Between Dates with Negatives
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),
3 Replies
- Phil_Seamark
Microsoft Employee
Here is an ugly alternative :)
Column = IFERROR(
DATEDIFF(Dates[Date],Dates[OtherDate],DAY),
-DATEDIFF(Dates[OtherDate],Dates[Date],DAY )
)- ElizabethTachji
Helper III
- AnonymousNot applicableJust add a column to your Date table that will mark a date as a weekday or weekend day and then filter appropriately in your measures.
Best
Darek