Forum Discussion
Anthony007
Helper I
8 years agoTranspose/Transform Multiple Rows into Single Row
It is necessary to convert the table as follows: at: The data will be updated automatically, the number of names can change. Help solve the problem with the query editor, thank ...
Anthony007
Helper I
8 years agoAnd Stachu, there is a problem. Data updated. If the id has more than four values, they will not fall into the transposed table. because the last code spreads the table into 4 columns. What if there are 50 such values?
Stachu
Community Champion
8 years agoif you replace last row in the sytnax with this
= Table.ExpandTableColumn(#"Grouped Rows", "names", List.Distinct(List.Combine(List.Transform(#"Grouped Rows"[names], each Table.ColumnNames(_)))), List.Distinct(List.Combine(List.Transform(#"Grouped Rows"[names], each Table.ColumnNames(_)))))
then it will always expand all the columns
- Anthony0078 years ago
Helper I
= Table.ExpandTableColumn(#"Grouped Rows", "names", List.Distinct(List.Combine(List.Transform(#"Grouped Rows"[names], each Table.ColumnNames(_)))), List.Distinct(List.Combine(List.Transform(#"Grouped Rows"[names], each Table.ColumnNames(_)))))
this works as well! :smileyhappy: