Forum Discussion
Alexck
4 years agoRegular Visitor
Table expansion not working
Hi all, I am opening a XML file and after expanding the tables I get stuck with a not expandable table, but it has data inside which should be converted into collumns. As you can s...
- 4 years ago
NewStep=Table.ExpandTableColumn(Table.TransformColumns(PreviousStep,{"CpfCnpj",each if _ is table then _ else #table({"Cpf"},{})}),"CpfCnpj",{"Cpf","Cnpj"})
Anonymous
4 years agoNot applicable
Hi Alexck
You can add a custom column to get the value, if you have only one column and one value like the examples above, and wrap try...otherwise if any error occurs
Table.AddColumn(yourPreStep, "newColumnName", each Record.ToList( [yourOriginColumn]{0}){0})