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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a date variable where I want to create a new variable where IF date IS NOT Null THAN "YES' ELSE IF "NO"
I tried to use DAX create this variable by creating a new column this is what I have
Criteria = IF('Base Population Summary'[Date (11/17)].[Date]null,"NO","YES")
Base Population Summary = Data Tab
Date (11/17) = Date Variable
What is the correct way to write this custom variable?
Thanks
~Bryon
Solved! Go to Solution.
This worked with just a tweak: Thanks!!!
IF('Base Population Summary'[Date (11/17)].[Date]=BLANK(),"Yes","No")
NO problem, can you please mark it as resolved.?
Can you try this?
if (Base Population Summary'[Date (11/17)].[Date]=BLANK(),''Yes","No")
Thanks
Aditya
This worked with just a tweak: Thanks!!!
IF('Base Population Summary'[Date (11/17)].[Date]=BLANK(),"Yes","No")
NO problem, can you please mark it as resolved.?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 61 | |
| 43 | |
| 40 | |
| 38 | |
| 22 |
| User | Count |
|---|---|
| 178 | |
| 125 | |
| 116 | |
| 77 | |
| 54 |