Forum Discussion
laciodrom_80
4 years agoHelper IV
Unpivoting column: problem when table is empty
Hi all, I'm usign this UnpivotOtherColumn command in Power Query in a step of a table data transformation: = Table.UnpivotOtherColumns(#"Removed Columns", {"Id", "Name", "Date", "Version"}, "At...
- 4 years ago
= if Table.IsEmpty(#"Removed Columns") then #table({"Id", "Name", "Date", "Version","Attribute", "Value"},{}) else Table.UnpivotOtherColumns(#"Removed Columns", {"Id", "Name", "Date", "Version"}, "Attribute", "Value")
wdx223_Daniel
4 years agoCommunity Champion
= if Table.IsEmpty(#"Removed Columns") then #table({"Id", "Name", "Date", "Version","Attribute", "Value"},{}) else Table.UnpivotOtherColumns(#"Removed Columns", {"Id", "Name", "Date", "Version"}, "Attribute", "Value")