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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

convert excel formula to power bi.

hello, 

 

this is excel formula - =IF(AND([@[QA Last Reviewed Date]]<>"",[@[QA Last Reviewed Date]]>DATE(2016,5,19)),1,0)

I am using this in power bi - =IF(AND[QA Last Reviewed Date]<>""[QA Last Reviewed Date]>DATE(2016,5,19),1,0)

 

but it is giving this error - DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.

 

Please give the formula which performs same function . 

 

thanks 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@SushantSharma, try how

IF(AND( not(isblank([QA Last Reviewed Date])),[QA Last Reviewed Date]>DATE(2016,5,19)),1,0)

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@SushantSharma, try how

IF(AND( not(isblank([QA Last Reviewed Date])),[QA Last Reviewed Date]>DATE(2016,5,19)),1,0)

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.