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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Liamp
Regular Visitor

measure or column to count numeric/alphabet characters

Hello,

I've got a column of data which contains cells that are either numeric or a combination of alpha-numeric.

 

What I'like to do is to have a measure that looks at the column and does a count of how many cells only contain numeric characters and how many are alpha- numeric. I would display the count of these on two separate cards.

 

I couldn't work out a way to calculate with a measure cells containing any characters from [A-Z]. If it's not possible is there a good solution to create a calcuated column?

 

Thankyou

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Liamp ,

 

Try to create two measure.

alpha- numeric = COUNTROWS(FILTER('Table',IFERROR(VALUE([Lesson]),BLANK())=BLANK()))
only contain numeric = COUNTROWS(FILTER('Table',IFERROR(VALUE('Table'[Lesson]),BLANK())<>BLANK()))

vstephenmsft_0-1666770989386.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

3 REPLIES 3
Anonymous
Not applicable

Hi @Liamp ,

 

Try to create two measure.

alpha- numeric = COUNTROWS(FILTER('Table',IFERROR(VALUE([Lesson]),BLANK())=BLANK()))
only contain numeric = COUNTROWS(FILTER('Table',IFERROR(VALUE('Table'[Lesson]),BLANK())<>BLANK()))

vstephenmsft_0-1666770989386.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.

Liamp
Regular Visitor

Sorry forgot to include some dummy data.

Liamp_0-1666149597534.png

 

Try in countIF Function

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors