Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hello everyone,
How can I use Power Query to obtain the result on the attached image?
Thanks in advance
Best regards
| Col1 | Col2 |
| 1 | a,b,c |
| 2 | d,e |
| 3 | f,g,h,i |
Solved! Go to Solution.
Hi @Mederic,
Result
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUUrUSdJJVorViVYyAvJSdFLBbGMgO00nXSdDJ1MpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Col1 = _t, Col2 = _t]),
ChangedType = Table.TransformColumnTypes(Source,{{"Col1", Int64.Type}}),
Ad_Col3 = Table.AddColumn(ChangedType, "Col3", each
[ a = Text.Split([Col2], ","),
b = List.Transform(a, (x)=> Text.From([Col1]) & Text.Trim(x)),
c = Text.Combine(b, ", ")
][c], type text)
in
Ad_Col3
Hi @Mederic,
Result
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUUrUSdJJVorViVYyAvJSdFLBbGMgO00nXSdDJ1MpNhYA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Col1 = _t, Col2 = _t]),
ChangedType = Table.TransformColumnTypes(Source,{{"Col1", Int64.Type}}),
Ad_Col3 = Table.AddColumn(ChangedType, "Col3", each
[ a = Text.Split([Col2], ","),
b = List.Transform(a, (x)=> Text.From([Col1]) & Text.Trim(x)),
c = Text.Combine(b, ", ")
][c], type text)
in
Ad_Col3
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 10 | |
| 10 | |
| 7 | |
| 7 | |
| 6 |