Forum Discussion
Text files
Dear all,
being an absolute greehorn, I would appreciate getting instruction how to use Powerquery and the associateeditor for the following problem:
let Quelle = Folder.Files("C:\Users\kirsch\Desktop\text"), custom1 = Table.FromColumns(List.Transform(Quelle[Content], each Lines.FromBinary(_)),Quelle[Name]) in custom1
9 Replies
- wdx223_DanielCommunity Champion
let
source=Folder.Files(YourPath),
custom1=Table.FromColumns(List.Transform(source[Content],each "your code to import text files"),source[Name])
in
custom1
- MatthiaskirschNew Member
Hi Daniel,
thanks!
However, this does not seem to be the whole code.
I cannot figure out what you mean with: "your code to import text files"
As I said, I am completely new to PQ and really would appreciate a complete working solution. I may learn along the way, but for now, I have no clue (and little time) apart from what I learn from tutorial videos and I have not found one, which matches my problem.
I am using Excel2016 by the way.
Best,
Matthias
- AlienSxSuper User
Hello, Matthiaskirsch . Try to replace "your code to import text files" with Lines.FromBinary(_) in the code provided by wdx223_Daniel
- MatthiaskirschNew Member
So I just learned, that it is you, whom I have to thank for the working code. THANKX,
Matthias
Just made a mistake and replied to myself, which of course is stupid.