cancel
Showing results for
Did you mean:
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
Community Support

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

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.

3 REPLIES 3
Community Support

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

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.

Regular Visitor

Sorry forgot to include some dummy data.

Responsive Resident

Try in countIF Function

Announcements

#### Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

#### Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

#### Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

#### Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors
Top Kudoed Authors