Forum Discussion
Find multiple substring DAX CONTAINSSTRING
- 4 years ago
That's weird. It still gives me an error message.
I found the solution to be simply:
house= CONTAINSSTRING(table1[column1], "house" ) || CONTAINSSTRING(table1[column1], "home" ) || CONTAINSSTRING(table1[column1], "dewelling" )
Without the need of IF statements.
Thanks!
maalsan Try:
house =
IF(
CONTAINSSTRING(table1[column1], "house") ||
CONTAINSSTRING(table1[column1], "home") ||
CONTAINSSTRING(table1[column1], "dwelling"),
TRUE(),
FALSE()
)Thanks for the reply. However, it seems that containsstring function only allowes for 2 arguments max. I got the following error message: "Too many arguments were passed to the CONTAINSSTRING function. The maximum argument count for the function is 2".
- Greg_Deckler4 years agoCommunity Champion
- maalsan4 years agoAdvocate I
That's weird. It still gives me an error message.
I found the solution to be simply:
house= CONTAINSSTRING(table1[column1], "house" ) || CONTAINSSTRING(table1[column1], "home" ) || CONTAINSSTRING(table1[column1], "dewelling" )
Without the need of IF statements.
Thanks!