cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Power BI Desktop - extract text from a known position

Dearl all,

 

I need you support with the following. I have a file with aprox. 120000 lines where the text inside the cells is broken per lines.

The only information I need from this text are the positions 12 and 13 (see below screenshot) where I'll use to categorize the type of the tickets.

 

Text extract.jpg

A issue I'm facing is that the text and the language in these two positions will change according to the country and due to this a conditional column or another possibility like replacing text would become a very long due to all conbinations to be created.

 

So, I would like to ask you for a suggestion on how to sort this out, If possible to extract it, then I can transtale to a global language like english and work with this in a calculated colunm.

 

Please let me know in case you need more details

 

Thank you

Marcelo

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

Re: Power BI Desktop - extract text from a known position

@datanau001 great, see attached pbix file, there are many tables but focus on tickets table and in transform data, look at query steps, you can tweak the step as per your need. I guess this will get you started.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!






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.





View solution in original post

8 REPLIES 8
Highlighted
Super User IV
Super User IV

Re: Power BI Desktop - extract text from a known position

@datanau001 is it always 12 and 13 line regardless of the language? If yes then it should be straight forward. Do attach a sample data file. remove/redact sensitive information before sharing.






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.





Highlighted
Helper II
Helper II

Re: Power BI Desktop - extract text from a known position

Hello Parry2K,

 

Thanks for returning. 

 

See attached a sample with description content of 7 tickets.

 

I removed the sensitive information and just kept in it the labels. Just a correction: 12 and 13, the positions are 10 and 11.

 

https://www.dropbox.com/scl/fi/bplchmouob1wf1axlcgtr/Tickets_description.xlsx?dl=0&rlkey=n5h1pthzn06... 

 

Regards

Marcelo

 

Highlighted
Super User IV
Super User IV

Re: Power BI Desktop - extract text from a known position

@datanau001 is this the outcome you are looking for?

 

 

image.png

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!






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.





Highlighted
Helper II
Helper II

Re: Power BI Desktop - extract text from a known position

@parry2k, yes it is exactly what I'm looking for 🙂

 

Regards

Marcelo

Highlighted
Super User IV
Super User IV

Re: Power BI Desktop - extract text from a known position

@datanau001 great, see attached pbix file, there are many tables but focus on tickets table and in transform data, look at query steps, you can tweak the step as per your need. I guess this will get you started.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!






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.





View solution in original post

Highlighted
Community Support
Community Support

Re: Power BI Desktop - extract text from a known position

Hi @datanau001 ,

 

If this problem has been solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If not, please let me know.

 

 

Best Regards,

Icey

Highlighted
Helper II
Helper II

Re: Power BI Desktop - extract text from a known position

@parry2k 

 

Thank you for the support! It was exactly what I was looking for.

 

Regards

Marcelo

Highlighted
Helper II
Helper II

Re: Power BI Desktop - extract text from a known position

@Icey 

Hello Icey, it was the solution I needed.

 

Regards

Marcelo

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors