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
vcb_001
Frequent Visitor

Data manipulation based on an unstructured column

Hello everyone,

 

I'm dealing with some data where the primary key is not structured well, so I should somehow extract the information using power query or any other solution from your point of view is appreciated gratefully.

Column

Chicago | 4524 | University Illinois | U.S.
Berlin | TU Berlin | Germany | 9644
432133_München_Germany_Ludwig-Maximilian University

As you can see it is quite inconvenient and unstructured, what I need basically a new column that only includes the numbers from the above column like the below:

New column

4524

9644

432133

Is there any way to handle this problem from your point of view to extract the desired result I mentioned?

 

Looking forward to having your feedback, and thank you very much for your help and support in advance.

2 REPLIES 2
DataInsights
Super User
Super User

@vcb_001,

 

Create a custom column in Power Query using this expression:

 

Text.Select([Column1],{"0".."9"})

 

DataInsights_0-1701356731371.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi, thank you for your answer. However, there are some incidents like:

Passasu | Passau Uni | Germany | AAC82821

 

and for those incidents, I have to take like "AAC82821" including the char.
 
Additionally, when there is an incident like (779 University | 212131), this solution retrieves 779212131 where I have to include only 212131. Is there also a condition or function for ignoring those types of strings in the data?

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