Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register 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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 9 | |
| 9 | |
| 9 | |
| 8 | |
| 6 |