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
koorosh
Post Partisan
Post Partisan

How to extract text after a word in power query

Hello All, How to extract text in a column after a word and a delimiter? For example, I want to extract text after "data." in a column.

key.0.chek.1.data.folder1

Extracting after the "." delimiter does not work, since it has no fixed position.

Regards

14 REPLIES 14
parry2k
Super User
Super User

@koorosh sir, you keep on asking multiple questions on the same post, you should follow some general forum principles, and ask as many questions as you want, but keep each question seperate post and whatever question is solved, mark that as an answer.

 

End of the day, you don't want this one post with TONS of questions. Thank you!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Ok Sir.  Thank you for the point.

koorosh
Post Partisan
Post Partisan

Meanwhile regarding asterisk symbol , I want all result like the following:

items.0.tags.1.value
items.2.tags.0.value
items.1.tags.2.value

and so on.

parry2k
Super User
Super User

@koorosh I tried and it worked, not sure why you are getting two values:

 

Here is sample data:

 

parry2k_0-1700771630588.png

 

here it is after the filter:

 

parry2k_1-1700771653846.png

 

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Thanks . How about with more conditions? For instance filter the records have the following content.

 

time_file_link, _class tag

 

koorosh_0-1700835765368.png

 

parry2k
Super User
Super User

@koorosh add any filter on the column and then change it to this :

 

Text.Contains([col1], "*.tags.*"

 

parry2k_0-1700687209786.png

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

This code will result
"items.0.tags.0.type" also.
But I need just
"items.*.tags.*.value"

koorosh_0-1700770907540.png

 

parry2k
Super User
Super User

@koorosh add a new column in PQ using this M code:

 

Text.AfterDelimiter([col1],"data.")


Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

parry2k
Super User
Super User

@koorosh why not use "data." as a delimiter if you want to extract after "data"



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

How to extract records that contain the following context?

items.*.tags.*.value

 

Ritaf1983
Super User
Super User

Hi @koorosh 

Can you please share some example of data and the desired result?

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

koorosh_0-1700680245842.png

I want to extract text after "data."

Is this what you are looking for?

Screenshot_5.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 Kudoed Authors