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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors