Forum Discussion
Matthiaskirsch
2 years agoNew Member
Text files
Dear all, being an absolute greehorn, I would appreciate getting instruction how to use Powerquery and the associateeditor for the following problem: I have a folder with .txt- files, each consi...
- 2 years ago
let Quelle = Folder.Files("C:\Users\kirsch\Desktop\text"), custom1 = Table.FromColumns(List.Transform(Quelle[Content], each Lines.FromBinary(_)),Quelle[Name]) in custom1
Matthiaskirsch
2 years agoNew Member
Hi AlienSx,
I guess I am just to dump. So this is what I see in the PQ-Editor:
let
Quelle = Folder.Files("C:\Users\kirsch\Desktop\text"),
custom1=Table.FromColumns(List.Transform(Quelle[Content],each "Lines.FromBinary(_) "),Quelle[Name])
in
custom1
Then I get the following error:
Expression.Error: Der Wert ""Lines.FromBinary(_) "" kann nicht in den Typ "List" konvertiert werden.
Details:
Value=Lines.FromBinary(_)
Type=Type
???
Best,
Matthias
AlienSx
Super User
2 years agolet
Quelle = Folder.Files("C:\Users\kirsch\Desktop\text"),
custom1 = Table.FromColumns(List.Transform(Quelle[Content], each Lines.FromBinary(_)),Quelle[Name])
in
custom1- Matthiaskirsch2 years agoNew Member
Dear AlienSx,
you are a genius. So simple and it works like a charm.
Thank you so much, this will help me a lot and my generate some more questions in the future, now that I have seen that I get useful answers this quick.
Best,
Matthias
- AlienSx2 years ago
Super User
it's wdx223_Daniel who provided a solution to be honest. But thank you.