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
MollyMcFly09
New Member

Extracting text of a specific format

Hello everyone

 

I've been working on a text extraction exercise from some manually entered data to automate some reports.

I am trying to extract a specific format of: Letter - six numbers e.g E-000000

 

MollyMcFly09_0-1707728680580.png

Does anyone have an idea? Delimeters did not work properly and the amount of data is too big to do the filtering manually.

 

Thanks!

 

1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

and try this code

Screenshot_4.png

View solution in original post

4 REPLIES 4
Ahmedx
Super User
Super User

and try this code

Screenshot_4.png

Ahmedx
Super User
Super User

pls try this

Screenshot_3.png

amitchandak
Super User
Super User

@MollyMcFly09 , I think "-" can work as splitter here.

 

add a new column in power query

Text.Middle([Column1], Text.PositionOf([Column1],"-")-1, 😎

 

 

amitchandak_0-1707730434549.png

 

Kishore_KVN
Super User
Super User

Hello in second row why ony S-000518 why not K-000350 in desired output?

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.