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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

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)

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)

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors