Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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?
Solved! Go to Solution.
quite simple - with NOT 🙂
Column = IF(ISBLANK([Date1]) &&
NOT(ISBLANK([Date2])), BLANK(),
IF(YEAR([Date1]) > YEAR([Date2]),"Future"," "))
this is for a calculated column?
Something like this should work
Column =
IF (
ISBLANK ( Table[Date1] ) && ISBLANK ( Table[Date2] ),
BLANK (),
IF ( Table[Date1] > Table[Date2], Table[Future Date], BLANK () )
)
@Stachuthank you for your response.
I revised the DAX function you provided.
Column = IF(ISBLANK([Date1]) &&
ISBLANK([Date2]), BLANK(),
IF(YEAR([Date1]) > YEAR([Date2]),"Future"," "))and I would like to change Date2 to is not blank, how do I revise it?
quite simple - with NOT 🙂
Column = IF(ISBLANK([Date1]) &&
NOT(ISBLANK([Date2])), BLANK(),
IF(YEAR([Date1]) > YEAR([Date2]),"Future"," "))
glad to help 🙂
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 51 | |
| 41 | |
| 23 | |
| 18 |
| User | Count |
|---|---|
| 124 | |
| 109 | |
| 47 | |
| 28 | |
| 27 |