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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Macc-PA
Helper I
Helper I

Json expansion - no columns were found

Hi,

 

I am reading a table containing a json column using OData.

The column in the database is defined as nvarchar(max).

 

The json looks fine in the table and I can transform the column from Text to Json.

When I try and expand the column, I get 'No columns were found' in the popup.

 

MaccPA_0-1674742663176.png

 

When I click on the record, I see the correct fields so the data is there.

MaccPA_3-1674743115782.png

 

 

 

However if I read the same table directly from SQL Server into Power BI the expansion works fine.

MaccPA_2-1674743032551.png

 

 

For security reasons we have to use Odata.  Can anyone help with what the problem is when using Odata?

 

Thanks

 

 

 

 

1 ACCEPTED SOLUTION

When you go to expand that Record column and see "No columns ...", click on "Load more" in bottom right. I was able to reproduce your issue and this worked.

 

ppm1_0-1675127813123.png

 

Pat

Microsoft Employee

View solution in original post

3 REPLIES 3
Macc-PA
Helper I
Helper I

Hi,

 

Thanks for getting back.  I have added the custom column. There are no empty rows and the count retruns 7 fields.

MaccPA_0-1675081429000.png

If I click on any of the records it shows the 7 individaul fields.

MaccPA_1-1675081601423.png

 

What else can I try?

When you go to expand that Record column and see "No columns ...", click on "Load more" in bottom right. I was able to reproduce your issue and this worked.

 

ppm1_0-1675127813123.png

 

Pat

Microsoft Employee
ppm1
Solution Sage
Solution Sage

I suspect the Record on your first row is empty, which is what is used to get the field names to expand. There are several ways to solve that. One is to add a custom column with the count of field names with the expression below and then sort by that column descending (and then expand it, and it should work).

 

= Record.FieldCount([Custom]) //replace Custom with your column name

 

Pat

Microsoft Employee

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.