Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 15 | |
| 14 | |
| 14 | |
| 10 | |
| 8 |