Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Is there a way to search for special characters in a string like below
Solved! Go to Solution.
Hi @jak8282
In Power Query create a Custom Column with this
if List.ContainsAny(Text.ToList([String]),Text.ToList("#*&%$£!^+;:?<>")) then "Invalid" else "Valid"
Regards
Phil
Proud to be a Super User!
Hi @jak8282
If my answer worked for you please mark it as the answer so that others can benefit from learning how to solve this problem.
regards
Phil
Proud to be a Super User!
Hello @jak8282 answer provided by @PhilipTreacy is the best way.
There is another method as well.. which is create a table with all special characters as below:
Then in the actual table create a column using below DAX:
Check =
IF(
SUMX('Special Characters Table',FIND('Special Characters Table'[Characters],'Table'[Column],,0))>0,"Invalid","Valid")Output looks like this:
If this post helps, then please consider accepting it as the solution to help other members find it more quickly. Thank You!!
Hi @jak8282
In Power Query create a Custom Column with this
if List.ContainsAny(Text.ToList([String]),Text.ToList("#*&%$£!^+;:?<>")) then "Invalid" else "Valid"
Regards
Phil
Proud to be a Super User!
Thanks Phil - thats great
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 80 | |
| 38 | |
| 31 | |
| 27 | |
| 27 |