I'd like to be able to convert text over multiple rows with a common field to a single field over multiple columns.
from this:
to this:
Any help greatly appreciated!!
I'd like to be able to convert text over multiple rows with a common field to a single field over multiple columns.
from this:
to this:
Any help greatly appreciated!!
let
src = #table({"col1", "col2"}, {
{"1","a"},{"1","b"},{"1","c"},
{"2","a"},{"2","b"},{"2","c"}}
),
grouped = Table.Group(src, {"col1"}, {{"col2", each Text.Combine([col2], ",")}})
in
grouped