Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello Everyone,
I am looking for a solution where I have to search for a particular keyword, let say "NFR" from a text field.
Thanks In Advance
Solved! Go to Solution.
@Anonymous , Then Search, find and containssting should work
if(SEARCH("nfr",[Summary],,0)>0,1,0) //Search is case-insensitive , so no need pf lower
Hi @Anonymous
You may use CONTAINSSTRING function or Search function (like amitchandak replied before) to build measure or calculated column to find "NFR" in text field. And Find function will recognize letter case, so the result is incorrect.
I build a sample table to have a test.
Measure:
Find NFR 2 = IF(CONTAINSSTRING(MAX('Table'[Summary]),"NFR"),1,0)
Calculated column:
C_Find NFR = IF(CONTAINSSTRING('Table'[Summary],"NFR"),1,0)
Result:
You can download the pbix file from this link: How to search a string inside a text field ?
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
You may use CONTAINSSTRING function or Search function (like amitchandak replied before) to build measure or calculated column to find "NFR" in text field. And Find function will recognize letter case, so the result is incorrect.
I build a sample table to have a test.
Measure:
Find NFR 2 = IF(CONTAINSSTRING(MAX('Table'[Summary]),"NFR"),1,0)
Calculated column:
C_Find NFR = IF(CONTAINSSTRING('Table'[Summary],"NFR"),1,0)
Result:
You can download the pbix file from this link: How to search a string inside a text field ?
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I want only these key words in my search. But "NFR" can be anywhere within the Summary field , which is of 200-300 character length string
| NFR |
| NFR: |
| NFR - |
| *NFR* |
Thanks
@Anonymous , Then Search, find and containssting should work
if(SEARCH("nfr",[Summary],,0)>0,1,0) //Search is case-insensitive , so no need pf lower
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 55 | |
| 45 | |
| 38 | |
| 16 | |
| 14 |
| User | Count |
|---|---|
| 87 | |
| 68 | |
| 38 | |
| 29 | |
| 26 |