Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Ask questions in Eventhouse and KQL, Eventstream, and Reflex.
User | Count |
---|---|
39 | |
24 | |
21 | |
21 | |
13 |