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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

DAX SEARCH - Not working

Hello Guys

 

I have a formula in excel: =IF((ISNUMBER(SEARCH("alerts@xpto.com",[@[To Field]]))),"Yes","No")

I am trying to perform an if test on a column that contains strings in PowerBI, but i m not able to do it.

 

Can you guys help pls?

 

Thanks

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Please try this formula:

Column = IF(ISERROR(SEARCH("alerts@xpto.com",[@[To Field]]],0)),"Yes","No")

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yulgu-msft
Employee
Employee

Hi @Anonymous,

 

Please try this formula:

Column = IF(ISERROR(SEARCH("alerts@xpto.com",[@[To Field]]],0)),"Yes","No")

Best regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.