Forum Discussion
juan jimenez
Sep 12, 2023Iron Contributor
Power query with txt for messages
hi, I would like to import the messages from conversations that I receive in txt format via Power Query. I have uploaded the "txt" here as a "docx" because this platform does not accept txt files...
- Sep 14, 2023
That didn't work since dates were converted using US locale. With UK locale it work, please see attached. You may change in Change Type with Locale step.
juan jimenez
Sep 12, 2023Iron Contributor
hi Sergei,
1) The lines marked in red should go with the text from the immediately preceding line that starts with a date. They are part of the text of the message corresponding to that day and time.
Can this operation be done with Power Query? Can you help?
Thank you very much, juan
1) The lines marked in red should go with the text from the immediately preceding line that starts with a date. They are part of the text of the message corresponding to that day and time.
Can this operation be done with Power Query? Can you help?
Thank you very much, juan
SergeiBaklan
Sep 12, 2023Diamond Contributor
Okay, but it's better to know how above texts are separated in csv. Is that crlf, or lf or what. If you can't share .txt here perhaps you could share the source on OneDrive or like and share the link make it available for everyone.
- juan jimenezSep 12, 2023Iron Contributorhere is the link:
https://1drv.ms/f/s!AlPgnUYDBAuukhGiAS-qt_72zKCN?e=EB5eE8
thank you again- SergeiBaklanSep 13, 2023Diamond Contributor
Please find query in attached file. in Source step change file path on your one. Result is
- juan jimenezSep 14, 2023Iron ContributorDear Sergei
Thank you very much for your proposal. Unfortunately, it didn't work when I added more lines to the text.
Could you tell me what went wrong?
This is the txt link
https://1drv.ms/t/s!AlPgnUYDBAuukhKK6qg6BPr41SqM?e=VRz89g
Juan