Forum Discussion
How to plot Dynatrace metrics api data to Power BI Linechart
Hi PowerBI88 ,
Please try the following methods and check if they can solve your problem:
1.Expand the data column to rows in Power Query Editor.
2.Enter the following statement in the Advanced Editor.
let
Source = Json.Document(File.Contents("C:\Users\v-huizhn\Downloads\generated.json")),
#"Converted to Table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to Table", "Column1", {"UserId", "id", "tipSecurableSet"}, {"Column1.UserId", "Column1.id", "Column1.tipSecurableSet"}),
#"Expanded Column1.tipSecurableSet" = Table.ExpandRecordColumn(#"Expanded Column1", "Column1.tipSecurableSet", {"id", "Clients"}, {"Column1.tipSecurableSet.id", "Column1.tipSecurableSet.Clients"}),
#"Expanded Column1.tipSecurableSet.Clients" = Table.ExpandListColumn(#"Expanded Column1.tipSecurableSet", "Column1.tipSecurableSet.Clients"),
#"Expanded Column1.tipSecurableSet.Clients1" = Table.ExpandRecordColumn(#"Expanded Column1.tipSecurableSet.Clients", "Column1.tipSecurableSet.Clients", {"@odata.type", "typeId", "Entityids", "Clientid"}, {"[email protected]", "Column1.tipSecurableSet.Clients.typeId", "Column1.tipSecurableSet.Clients.Entityids", "Column1.tipSecurableSet.Clients.Clientid"})
in
#"Expanded Column1.tipSecurableSet.Clients1"
3.You can also view the following link to learn more about transform json data.
Solved: Converting JSON data into PowerBI table - Microsoft Fabric Community
Solved: Convert json List Record to Table value - Microsoft Fabric Community
4.Only the super user can attach the pbix files. You can use the following method to provide the sample data.
How to provide sample data in the Power BI Forum - Microsoft Fabric Community
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.