Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
73 | |
58 | |
36 | |
32 |
User | Count |
---|---|
90 | |
62 | |
61 | |
49 | |
45 |