Forum Discussion
Anonymous
3 years agoNot applicable
Measure with IF( CONTAINSSTRING
Hi ๐ Help me please I want to create Measure like IF(CONTAINSSTRING( table[text_col] ,"ABC"), TRUE(), FALSE()) This formula as is doesn't work. What is wrong?
- Anonymous3 years ago
In meantime I found solution
SUMX( FILTER( table, CONTAINSSTRING(table'[string_col], "ABC")), 1)
It come from this page
JorgePinho
3 years agoSolution Sage
Since you don't want a calculated column, it is missing an aggregator. I don't know what you pretend to do with the measure. If you're idea is to use it in a table visual then you can do something like this:
IF(CONTAINSSTRING( MAX(table[text_col]) ,"ABC"), TRUE(), FALSE())
Anonymous
3 years agoNot applicable
it doesn't work, it return False for all rows