Forum Discussion
Change rows to colums
- 5 years ago
Hello Anonymous
the Text.Combine has to be used as pivot-function of your third column. Here an example
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcjRU0lFyAhHOhkqxOjABI5CAEUTACF2FEbKKWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t, B = _t, C = _t]), #"Pivoted Column" = Table.Pivot(Source, List.Distinct(Source[B]), "B", "C", each Text.Combine(_,",") ) in #"Pivoted Column"Copy paste this code to the advanced editor in a new blank query to see how the solution works.
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun und guten Rutsch 🙂
Jimmy
maybe this explains better 🙂
- Jimmy8015 years agoCommunity Champion
Hello Anonymous
the Text.Combine has to be used as pivot-function of your third column. Here an example
let Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcjRU0lFyAhHOhkqxOjABI5CAEUTACF2FEbKKWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [A = _t, B = _t, C = _t]), #"Pivoted Column" = Table.Pivot(Source, List.Distinct(Source[B]), "B", "C", each Text.Combine(_,",") ) in #"Pivoted Column"Copy paste this code to the advanced editor in a new blank query to see how the solution works.
If this post helps or solves your problem, please mark it as solution (to help other users find useful content and to acknowledge the work of users that helped you)
Kudoes are nice too
Have fun und guten Rutsch 🙂
Jimmy