Forum Discussion
JasonMalvor
3 years agoNew Member
Reading XML File
Hello, I have a problem with importing this xml file, I don't know why but when I tried to upload the xml file, the file looks like a bunch of tables like in the photo above. Then, I tried to ...
- 3 years ago
NewStep=#table(4,List.Split(PreviousStepName[#"field.Element:Text"],4))
wdx223_Daniel
Community Champion
3 years ago
try to replace the code here with this
=Table.Combine(List.Transform(Table1[field],each Table.AddColumn(#table([#"Attribute:name],{[#"Element:Text"]}),"key",(x)=>Text.Combine([#"Attribute:key"]," - "))))
- JasonMalvor3 years agoNew Member
That still didn't work. But now I think I just transformed the data into like this:
So I just need to turn every 4 rows into just one row. For example, the first row should be Aruba in the first column, Government expenditure...... in the second column, 1960 in the third column, and null in the fourth column. Does anyone know how to do that? I would really appreciate it.
- wdx223_Daniel3 years ago
Community Champion
NewStep=#table(4,List.Split(PreviousStepName[#"field.Element:Text"],4))
- JasonMalvor3 years agoNew Member
It worked! Thank you so much.