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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
mh20221111
Advocate I
Advocate I

Issues with Expanding Columns in Power BI Dataflows When Importing JSON Files

When importing a JSON file in Power BI dataflows, sometimes the expand button does not appear in the upper left corner of the column, preventing expansion. This situation often occurs when the top of the data is blank and there is no list or record type data present.

If this situation arises, how can I expand the column? Is using the Advanced Editor for direct editing the only option?

1 ACCEPTED SOLUTION
rohit1991
Super User
Super User

Hi @mh20221111 ,
When importing JSON files into Power BI dataflows, the expand icon may not appear if the column doesn't contain recognizable list or record structures in the initial rows—often due to blank values or inconsistent formatting. In such cases, Power BI doesn't infer a structured type and therefore doesn't offer the expand option. 

 

A common workaround is to first filter out the null or blank rows so Power BI can detect the underlying structure, after which the expand button typically becomes available. If that doesn’t work, using the Advanced Editor is indeed a viable method—you can manually modify the M code to access and expand the nested records or lists. While it's not the only solution, it's often the most reliable in these edge cases.

 

Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.

Connect with me on LinkedIn: Rohit Kumar.

 

View solution in original post

5 REPLIES 5
rohit1991
Super User
Super User

Hi @mh20221111 ,
When importing JSON files into Power BI dataflows, the expand icon may not appear if the column doesn't contain recognizable list or record structures in the initial rows—often due to blank values or inconsistent formatting. In such cases, Power BI doesn't infer a structured type and therefore doesn't offer the expand option. 

 

A common workaround is to first filter out the null or blank rows so Power BI can detect the underlying structure, after which the expand button typically becomes available. If that doesn’t work, using the Advanced Editor is indeed a viable method—you can manually modify the M code to access and expand the nested records or lists. While it's not the only solution, it's often the most reliable in these edge cases.

 

Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.

Connect with me on LinkedIn: Rohit Kumar.

 

Thank you for your response.
Before I asked my question, I tried filtering out the null or unstructured rows to ensure that the first visible row contained a record or list, but it didn't work at that time. However, after trying it again, the expand icon appeared.

Akash_Varuna
Community Champion
Community Champion

Hi @mh20221111 It might be because the top rows of the column are blank or do not contain list or record data, causing Power BI to misinterpret the column type. You can replace blank values with placeholders (such as {} or []) or bring a row with valid data to the top. You could try to, use the Advanced Editor to directly edit the M code for expansion. Adding a temporary dummy row with list or record data is another option.

Using dummy data is a good idea!

v-pagayam-msft
Community Support
Community Support

Hi @mh20221111 ,
Thank you for reaching out to us on  Microsoft Fabric Community Forum!

This issue usually occurs when the top rows in the JSON column are null or not structured as records or lists, which prevents Power Query from displaying the expand icon. As a work around , try filtering out the null or unstructured rows so that the first visible row contains a record or list, this may trigger the expand icon to appear. If that does not help, you may use the Advanced Editor to manually expand the column using M code like using below:       

          Table.ExpandRecordColumn(Source, "YourColumn", {"Field1", "Field2"}).

Hope this helps.If this answer resolve your issue,consider accepting it as solution.

Regards,
Pallavi.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.