Forum Discussion

mpaukee's avatar
mpaukee
Regular Visitor
9 years ago
Solved

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.