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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
SIMMI
Frequent Visitor

Extract length information from text

Hi,

 

I have a column that basically stores large sentences as feedback. I wanted to extract the length information from the long text into a new column ('Length Extract'). The actual column is 'Comments' that contain length info.

 

I have created a column that takes words that end with 'm'.

 

SIMMI_0-1676654093806.png

 

Unfortunately I couldn't provide a list of values in the 'Text.StartsWith' function. Since I couldn't filter the text that starts with only numbers, I'm getting all words that end with m. I wanted to extract only words that start with numbers. 

 

SIMMI_1-1676653689002.png

Could somebody please help me to further filter this out?

 

Thanks in advance.

 

2 REPLIES 2
shrabedi
Frequent Visitor

Hi @SIMMI 
If data model size is not your problem.
You can use COLUMN FROM EXAMPLE and extract 1.5m and 100mm separately and combine columns afterward to get your result.

I have attached a picture for reference.
Column from Example.PNG
Mark as a solution if it's helpful
Regards

lbendlin
Super User
Super User

... and not List.Contains({"0".."9"},Text.Start(_,1))

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors