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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
emembreno81
Frequent Visitor

Need Help with converting an Excel Formula to Dax

Hello!

 

I'm currently working to move a report that I currently run in Excel into Power BI.  I'm currently working to convert a rather complex formula into DAX.  Can someone help guide me on how to rewrite the following formula into DAX?

 

=IF(OR(ISNUMBER(SEARCH({"tbd"},Y5)),Y5="",),"INCOMPLETE","COMPLETE")

 

Thanks!

5 REPLIES 5
onurbmiguel_
Power Participant
Power Participant

Hello emembreno81

 

try sometihing like that:

measure_1 = 
var _value = 
if( table[column_Y5] = "" || table[column_Y5] = "tbd" , "INCOMPLETE","COMPLETE")

return 
_value

 

If the measure don´t work please send some exmaple of you model e data. 

 

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! ;-
Best Regards
BC 

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


That worked!  Thank you so much!

Hello 

Please accept my solution and give me Kudos if possible. 

 

Thanks 

Bruno

 


Best regards


Bruno Costa | Super User


 


Did I help you to answer your question? Accepted my post as a solution! Appreciate your Kudos!! 


Take a look at the blog: PBI Portugal 


 


Hi Bruno! 

 

So - I've actually now double checked the formula you provided and it looks like the OR functionality is not working in the formula your provided.  It looks like the formula is excluding any case where both elements are not true where as I want it to look for instances where either one of the two portions of the formula are true.  Do you know what may be causing that?

I have a feeling the formula is looking for instances where the data in the column is "tbd" ONLY - but I need to find instances where "tbd" is part of the information in the data.   - so not just looking for "tbd" but also for example "tbd15" or "tbd blue"

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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