Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
How can I limit the column to only alphanumeric values?
Solved! Go to Solution.
Hi @Anish76 ,
If you can use Power Query, it will be easy. The idea is to add column to mark whether it contains characters other than numbers and letters.
Here's my sample data.
if [Value] = Text.Select ( [Value],{ "a".."z", "A".."Z", "0".."9" }) then 1 else 0
Then you can add this filter to write formulas in Power BI Desktop. For example,
Count rows which contains numeric, alpha, and alphanumeric values = COUNTROWS(FILTER('Table',[Contain numbers and letters]=1))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anish76 ,
What does limit mean, is it in a bunch of numbers mixed with English strings, only English letters remain?
If possible, please provide us with some sample data and expected results. And take care to protect your privacy.
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your response.
I want to search only alphanumeric values in the column, which contains numeric, alpha, and alphanumeric values.
Hi @Anish76 ,
If you can use Power Query, it will be easy. The idea is to add column to mark whether it contains characters other than numbers and letters.
Here's my sample data.
if [Value] = Text.Select ( [Value],{ "a".."z", "A".."Z", "0".."9" }) then 1 else 0
Then you can add this filter to write formulas in Power BI Desktop. For example,
Count rows which contains numeric, alpha, and alphanumeric values = COUNTROWS(FILTER('Table',[Contain numbers and letters]=1))
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Stephan,
The query only checks special characters and returns the value false. I have cells in my table that are only numeric, alphabetic, and alphanumeric with no special characters, and I want to have only alphanumeric values.
Thank you Stephen, It worked.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 26 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 56 | |
| 45 | |
| 39 | |
| 26 | |
| 21 |