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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
mcarras
New Member

Create multiple tables with custom rows from JSON list data in one table

I'm still learning Power Query in Power BI and a bit confused on how I might approach this...I have a SharePoint List which has two columns that contain lists of JSON records. I'd like to expand each record in these lists into custom rows in a separate table, while also returning a table that represents values from the original SP list. Each JSON record has the same columns. For the new tables, each row should contain information from the original table (ID, Requestor). Something like:

 

Table A

For each row

For column A, for each list item, take data from JSON record and add a custom row to Table B

For column B, for each list item, take data from JSON record and add a custom row to Table C

Other logic for Table A

Return Table A

 

 

I know I will likely need to make custom functions to accomplish this, but I'm not sure how one would insert rows into a table from a query returning a different table. I'm trying to avoid looping over the same SP list multiple times.

 

1 REPLY 1
christinepayton
Super User
Super User

I'm not entirely sure I'm following, but when I use JSON data in a column, I duplicate the original query, remove all except the row ID and JSON column, then use the "parse JSON" button to parse the data and expand it with the expando-button. Then, when you close and apply, you can relate the two tables on the ID field. Does that help at all?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

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.