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! Request now

Reply
Heinrich
Post Partisan
Post Partisan

Measure to filter out values that begin with an alphabet

Hi

Is there a possibility to filter out all values that beginn with a letter and not an number.

The measure should should than show only values who beginn with a letter.

Regards

Heinrich

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Heinrich 

 

Based on your description, I have created some measures to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_0-1712280769548.png

Measure:

Filtered Values =

VAR _values =

    SELECTEDVALUE ( 'Table'[values] )

VAR _numbers = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!","@","#"}

    //You can add more characters that don't start with a letter or only characters that start with a letter, how to modify the logic of IF

VAR _left1 =

    LEFT ( _values, 1 )

VAR _isInNumber =

    IF ( NOT ISBLANK ( _values ) && _left1 IN _numbers, BLANK (), _values )

RETURN

    _isInNumber


Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

 

 

View solution in original post

2 REPLIES 2
Heinrich
Post Partisan
Post Partisan

Hi @Anonymous 

Thank you very much.

Have a great weekend.

Regards

Heinrich

Anonymous
Not applicable

Hi, @Heinrich 

 

Based on your description, I have created some measures to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_0-1712280769548.png

Measure:

Filtered Values =

VAR _values =

    SELECTEDVALUE ( 'Table'[values] )

VAR _numbers = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9","!","@","#"}

    //You can add more characters that don't start with a letter or only characters that start with a letter, how to modify the logic of IF

VAR _left1 =

    LEFT ( _values, 1 )

VAR _isInNumber =

    IF ( NOT ISBLANK ( _values ) && _left1 IN _numbers, BLANK (), _values )

RETURN

    _isInNumber


Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

 

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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