Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Consider a list of the following json objects:
{
"_id": "5a79099b662a2f270000223d",
"date": "2018-02-07",
"customer": {
"_id": "59efa21dad33ca6d00001c8f",
"name": "Ove Andersen"
},
"data": {
"Entries": [
{
"type": "Recommended",
"menuAmount": 2,
"menuExtraLarge": false
},
{
"type": "Salad",
"menuAmount": 3,
"menuExtraLarge": false
}
]
}
}Please note that the Entries property might be empty.
This is how my query result looks like at the moment.
What i want to achieve is to get the Entries items as columns, like below.
Ultimately this is what I want to end up with:
This is the code that I currently have:
let
#"Added Data" = Table.AddColumn(#"Added Skip", "Data", each Json.Document(Web.Contents("--REDACTED--"))),
#"Expanded Data" = Table.ExpandListColumn(#"Added Data", "Data"),
#"Expanded Data1" = Table.ExpandRecordColumn(#"Expanded Data", "Data", {"_id", "customer", "date", "data"}, {"Data._id", "Data.customer", "Data.date", "Data.data"}),
#"Expanded Data.customer" = Table.ExpandListColumn(#"Expanded Data1", "Data.customer"),
#"Expanded Data.customer1" = Table.ExpandRecordColumn(#"Expanded Data.customer", "Data.customer", {"_id"}, {"Data.customer._id"}),
#"Changed Type" = Table.TransformColumnTypes(#"Expanded Data.customer1",{{"Data.date", type datetimezone}}),
#"d" = Table.ExpandRecordColumn(#"Changed Type", "Data.data", {"Entries"}, {"Data.data.Entries"})
in
#"d"
Any experts out there that know how to achieve this?
Solved! Go to Solution.
Hi @azzlack,
Here are two articles describe how to deal with nested JSON value:
Nested JSON and never end Records
How to deal JSON with Power BI Desktop
Regards,
Yuliana Gu
Hi @azzlack,
Here are two articles describe how to deal with nested JSON value:
Nested JSON and never end Records
How to deal JSON with Power BI Desktop
Regards,
Yuliana Gu
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 63 | |
| 44 | |
| 42 | |
| 40 | |
| 39 |