Forum Discussion
Stuznet
Helper V
8 years agoIf Datesbetween True then Return Blank Future Dates
Hi guys,
I'm currently having trouble getting this statement right.
Here is the situation,
If Date 1 ISBLANK and Date 2 ISBLANK return blank and if Date1 is greater than Date 2 return Future Date.
I don't know how to write this logic in DAX.
Can someon1 please help?
quite simple - with NOT :)
Column = IF(ISBLANK([Date1]) && NOT(ISBLANK([Date2])), BLANK(), IF(YEAR([Date1]) > YEAR([Date2]),"Future"," "))
5 Replies
- Stachu
Community Champion
this is for a calculated column?
Something like this should workColumn = IF ( ISBLANK ( Table[Date1] ) && ISBLANK ( Table[Date2] ), BLANK (), IF ( Table[Date1] > Table[Date2], Table[Future Date], BLANK () ) )- Stachu
Community Champion
quite simple - with NOT :)
Column = IF(ISBLANK([Date1]) && NOT(ISBLANK([Date2])), BLANK(), IF(YEAR([Date1]) > YEAR([Date2]),"Future"," "))