Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join 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.

Reply
Anish76
Frequent Visitor

Alphanumeric Values in column

How can I limit the column to only alphanumeric values?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

vstephenmsft_0-1673940291670.png

if [Value] = Text.Select ( [Value],{ "a".."z", "A".."Z", "0".."9" }) then 1 else 0

vstephenmsft_1-1673940515568.png

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))

vstephenmsft_2-1673940711611.png

 

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.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

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.

Anonymous
Not applicable

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.

vstephenmsft_0-1673940291670.png

if [Value] = Text.Select ( [Value],{ "a".."z", "A".."Z", "0".."9" }) then 1 else 0

vstephenmsft_1-1673940515568.png

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))

vstephenmsft_2-1673940711611.png

 

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.

Anish76_1-1674024483078.png

 

 

Thank you Stephen, It worked.

amitchandak
Super User
Super User

@Anish76 , refer if old solutions can help

https://community.powerbi.com/t5/Desktop/Checking-a-column-for-alpha-and-alpha-numeric-characters/m-...

https://community.powerbi.com/t5/Power-Query/Data-type-issue-Alpha-numeric-column-is-loaded-data-typ...

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.