Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
MCPCN
New Member

JSON data - nested Lists and Records to columns

Hi experts - I'm brand new to PowerBI / PowerQuery and have been struggling with this for a couple of days - hoping someone can point me in the right direction.

 

I'm querying a JSON API for some custom form data. The API returns 3 types of form objects, the third of which can have multiple instances (obfuscating the name of the field to keep things anonymous):

 

TimeSpent

BackendFields

Form3

Form3

Form3

 

This results in the following table in PowerBI (hidden fields are all type Form3):

MCPCN_0-1675265219380.png

 

Contents of Form3.CustomForm.FieldValues is a list of Records like this:

 

MCPCN_1-1675265278956.png

 

Each instance of Form 3 has 4 records, with 4 fields in each record:

 

- FieldName

- FieldDisplayName

- FieldLabel

- Value

 

e.g. 

MCPCN_4-1675266938534.png

 

The FieldName values are always the same for each instance of Form 3, Value values differ each time.

 

My task is to get all data from the records into a new table, 1 row per instamce. The FieldName from the records (always the same) as the header and the Value as the value on each row:

 

(all.record1.FieldName)

(all.record2.FieldName)

(all.record3.FieldName)

(all.record4.FieldName)

(instance1.record1.FieldValue)(instance1.record2.FieldValue)(instance1.record3.FieldValue)(instance1.record4.FieldValue)
(instance2.record1.FieldValue)(instance2.record2.FieldValue)(instance2.record3.FieldValue)(instance2.record4.FieldValue)

 

I've tried expanding the column of Lists (with records per list) both ways (new rows/extract values), but neither lets me expand the record fields to columns.

 

Any ideas?

 

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.