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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
mpaukee
Regular Visitor

Search multiple texts in a string

I am looking to replicate the following excel formula in Power BI.

 

if(or(SUMPRODUCT(--ISNUMBER(SEARCH({"Flood","Freez","Adverse Weather","Severe Weather","Earthmovement","Earth movement","Hailstorm","Windstorm","Wind storm","Winterstorm","Winter storm","Storm","Tornado","Cyclone","Derecho","Natural Peril","East Coast low in Australia","Earthquake","Typhoon","Hail Storm","Heavy Rain","Mudslide","Thunder","Polar Vortex","Torrential Rain","Tsunami","Wind damage","Hurricane"},[@[Global Loss Event Name]])))>0

 

this doesn't work in DAX unfortunately.

1 ACCEPTED SOLUTION
v-sihou-msft
Microsoft Employee
Microsoft Employee

@mpaukee

 

For your requirement, you can try Power Query approach, you can populate the search text into list and create custom function to iterator each one of them to check if within the text. Please refer to thread below:

 

https://stackoverflow.com/questions/35316657/how-to-search-multiple-strings-in-a-string/35324537

 

Regards,

View solution in original post

1 REPLY 1
v-sihou-msft
Microsoft Employee
Microsoft Employee

@mpaukee

 

For your requirement, you can try Power Query approach, you can populate the search text into list and create custom function to iterator each one of them to check if within the text. Please refer to thread below:

 

https://stackoverflow.com/questions/35316657/how-to-search-multiple-strings-in-a-string/35324537

 

Regards,

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

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.