Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Ok I have a API Json data that includes a status fields that is a list of status for each day of the month from 1 to 30 (or 31) depending on the month I extract. What I need is to expand this list to include the status but also the original position/row number so I can match the status to the day of the month any thoughts:
Solved! Go to Solution.
Hi @Stephan_FL
Maybe try indexing.
I think this video will be able to help create a numbered index for each day. Group by the Machine ID
https://www.youtube.com/watch?v=_PBX3RPXxHw
Hope this helps
Joe
If this post helps, then please Accept it as the solution
Hi @Stephan_FL
You can put the following code to advanced editor
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WSlTSUTIE4uJKpVgdMrmZeWBuEpBphJCFcQnLxgIA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Column1", type text}, {"Column2", Int64.Type}, {"Column3", type text}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Column1", "Column2"}, {{"Count", each _, type table [Column1=nullable text, Column2=nullable number, Column3=nullable text]}}),
#"Added Custom" = Table.AddColumn(#"Grouped Rows", "Custom", each Table.AddIndexColumn([Count],"Index",1,1)),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"Count"}),
#"Expanded Custom" = Table.ExpandTableColumn(#"Removed Columns", "Custom", {"Column3", "Index"}, {"Column3", "Index"}),
#"Filtered Rows" = Table.SelectRows(#"Expanded Custom", each ([Index] = 1))
in
#"Filtered Rows"
Output
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Stephan_FL
Maybe try indexing.
I think this video will be able to help create a numbered index for each day. Group by the Machine ID
https://www.youtube.com/watch?v=_PBX3RPXxHw
Hope this helps
Joe
If this post helps, then please Accept it as the solution
User | Count |
---|---|
116 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |