Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Flag column

Hello again
Trying to write a Dax to generate a conditional column or measure. I have multiple date columns and it has to show 0 when one date field is later than other or one date field is blank
The bottom one is giving me 0 in flag column when the hire date and release date even same.
Any thing I am missing to add?
If([release date]=BlANK()||[release date>[hire date],1,0)
Thanks
1 ACCEPTED SOLUTION
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create a calculated column as bleow.

Column = IF('Table'[release date] = BLANK() || 'Table'[release date]>'Table'[Hire date],0,1)

 

Capture.PNG 

 

Pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.

View solution in original post

2 REPLIES 2
v-frfei-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please create a calculated column as bleow.

Column = IF('Table'[release date] = BLANK() || 'Table'[release date]>'Table'[Hire date],0,1)

 

Capture.PNG 

 

Pbix as attached.

 

Community Support Team _ Frank
If this post helps, then please consider Accept it as the solution to help the others find it more quickly.
amitchandak
Super User
Super User

Create this one as a column.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.