Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
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.
| User | Count |
|---|---|
| 12 | |
| 11 | |
| 11 | |
| 7 | |
| 6 |