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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
LP280388
Resolver II
Resolver II

Extract text after delimiter is not working as expected in PowerQuery

Hi Team,

 

I am trying to extract data after a delimiter which works fine when we have the delimiter in the value. For the records where delimiter is not present its giving blank after adding "Extract text after delimiter" in power query.

 

Data : 

LP280388_0-1655295115322.png

 

Output :

LP280388_1-1655295222499.png

 

How to make sure that I get "Not Covered" also included in the output

 

1 ACCEPTED SOLUTION
LP280388
Resolver II
Resolver II

I think I found the solution after 15 mins of trial and error. 

 

For those who are stuck like me. Need to go to "Advance option" in the step and make sure to select the "Scan for delimiter" > "From the end of the input" option

LP280388_0-1655295503743.png

 

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @LP280388 
Please use the following code

1.png

= Table.AddColumn(#"Changed Type", "New Column1", each if Text.Contains ([Column1], "-" ) then Text.AfterDelimiter([Column1], "- ") else [Column1])
LP280388
Resolver II
Resolver II

I think I found the solution after 15 mins of trial and error. 

 

For those who are stuck like me. Need to go to "Advance option" in the step and make sure to select the "Scan for delimiter" > "From the end of the input" option

LP280388_0-1655295503743.png

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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
Top Kudoed Authors