Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I keep getting the following error
The search Text provided to function 'SEARCH' could not be found in the given text.
when i put in this formula
UK Region = IF(ISNUMBER(SEARCH("region",Table1[Region ])),"UK" , "International")
I tried the formula in excel and it worked. Any ideas why it doesn't work in PowerBI? I also tried adding in the extra part of the SEARCH formula with a ,,0) at the end, but that just overrided the IF function and ended up labelling everything UK whether or not the word Region was in the Region column. I also tried changing the " for ' and the , for ; but it liked that even less.
Any suggestions as to how to correct the formula would be greatly received.
Solved! Go to Solution.
Hi, Try with this:
UK Region = IF(ISNUMBER(SEARCH("Region",Table1[Region],,BLANK())),"UK","International")
Regards
Victor
Lima - Peru
Can you change your formula to IF(ISTEXT(SEARCH.........)
UK Region = IF(ISTEXT(SEARCH("Region",Table1[Region ])),"UK", "International")
The search Text provided to function 'SEARCH' could not be found in the given text.
Hi there
Changed it, but still the same error... pic attached ...
Hi, Try with this:
UK Region = IF(ISNUMBER(SEARCH("Region",Table1[Region],,BLANK())),"UK","International")
Regards
Victor
Lima - Peru
Cool; I had the same issue and it works. Thank you!
Fantastic! That worked! Thank you so much
You could use DAX below as well.
UK Region = IF ( SEARCH ( "Region", Table1[Region],, 0 ) > 0, "UK", "International" )
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 35 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |