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
mgp-opti
Frequent Visitor

Find and extract 7 digit numbers starting with a 1 from a column containing other numbers and text

Hi all,

 

Please could someone let me know how I can extract an 7 digit number that starts with a 1 from a column which contains other numbers (luckily of a different length or which don't start with a 1) and text. It would be great to separate this number and put it in to it's own column if that's possible.

 

Examples below. As you can see the 7 digit number appears in different places in the column. 

1002223 - 7003117328 - ID: 74526 - Attendance
1046890301 - 210438 1002515 - CW
2047074788 - 210525-1002834
1053847149 - 1016727- 212170 - cw upper

 

Many thanks in advance for any help.

 

Marcus

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi there.

I'm afraid DAX is not the right tool for this job. Please use PowerQuery. It'll be dead easy with PQ.

Best
D

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi there.

I'm afraid DAX is not the right tool for this job. Please use PowerQuery. It'll be dead easy with PQ.

Best
D

Understood - many thanks Darlove for pointing me in the right direction. Much appreciated.

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.