Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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?
Solved! Go to Solution.
In meantime I found solution
SUMX(
FILTER(
table,
CONTAINSSTRING(table'[string_col], "ABC")),
1)
It come from this page
You may create a column!
CONTAINSSTRING( table[text_col] ,"ABC")
or
CONTAINSSTRINGEXACT( table[text_col] ,"ABC") (case sensitive)
You may check Youtube: ColorfulAnalysis
In meantime I found solution
SUMX(
FILTER(
table,
CONTAINSSTRING(table'[string_col], "ABC")),
1)
It come from this page
What error are you getting? Are you creating a measure or a column?
Hi, I want to create Measure. this formula works in Column but in Measure it return error
"A single value for column 'table'[text_col] cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."
There is missing some Iterator, but I don't know which one a where it must be placed in code.
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())
it doesn't work, it return False for all rows
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |