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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors