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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
Anonymous
Not applicable

Multi dimensional JSON file to one flat table

I have a multi-dimensional table from a json source that I'm trying to convert into one flat table. I can expand the columns up to a point, and still have tables within rows as in the below: 

 

Example 1.PNG

 

The problem I'm having is that when I expand these tables e.g. in the parent column, it opens them up as another seperate table. See example below: 

 

Capture 3.PNG

 

Is there a way to automatically expand these tables within the original query instead of having each table expand into a new seperate table view? 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Lydia

 

The end solution that worked was to have the json data coming through via an API "flattened" by our developer to provide a simpler table for analysis. I ended up not working with the issue in Power BI as there was another solution in code.  

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

@Anonymous,

ImkeF has provided a detailed solution about this issue in the similar thread below, please add a custom column in your query following her guide and then expand the custom column.

http://community.powerbi.com/t5/Desktop/Expand-column-where-not-all-records-are-tables/td-p/79060

Regards,
Lydia

Anonymous
Not applicable

Thanks Lydia. I tried this solution but got an error message when trying to apply it:

 

Expression.Error: We cannot convert a value of type Table to type List.
Details:
Value=Table
Type=Type

 

Image 10.PNG

Anonymous
Not applicable

@Anonymous,

Could you please post the JSON code so that I can  test?

Regards,
Lydia

Anonymous
Not applicable

Hi Lydia

 

The end solution that worked was to have the json data coming through via an API "flattened" by our developer to provide a simpler table for analysis. I ended up not working with the issue in Power BI as there was another solution in code.  

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.