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
mandynguyen
Frequent Visitor

Refresh Web.Contents JSON only refresh rows but do not update new columns

I get data from a JSON query of the Slate Technolution database into Power BI using Web.

When I updated the query in Slate (adding new columns and adding filters to limit fewer rows) and refresh it in Power BI, it refreshes the rows (retrieved fewer rows), but the number of columns stays the same, did not add more.

 

Screenshot 2022-06-03 122804.png

 

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @mandynguyen ,

 

I think the problem is with the #"Expanded row1" (Table.ExpandRecordColumn) step. In this step we need to manually specify the columns that need to be expanded, which will result in the new columns in the data source not being selected.

 

You need to go to step #"Expanded row1" and select the new column (For example the cc field).

 

vkkfmsft_0-1654500891930.png

 

Or use the following code to expand the columns dynamically.

 

let
    Source = Table.FromRecords({
        [
            a = [aa = 1, bb = 2, cc = 3]
        ]
    }),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each Record.FieldNames([a])),
    #"Expanded a" = Table.ExpandRecordColumn(Source, "a", List.Combine(#"Added Custom"[Custom]), List.Combine(#"Added Custom"[Custom]))
in
    #"Expanded a"

vkkfmsft_1-1654501046051.png


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @mandynguyen ,

 

I think the problem is with the #"Expanded row1" (Table.ExpandRecordColumn) step. In this step we need to manually specify the columns that need to be expanded, which will result in the new columns in the data source not being selected.

 

You need to go to step #"Expanded row1" and select the new column (For example the cc field).

 

vkkfmsft_0-1654500891930.png

 

Or use the following code to expand the columns dynamically.

 

let
    Source = Table.FromRecords({
        [
            a = [aa = 1, bb = 2, cc = 3]
        ]
    }),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each Record.FieldNames([a])),
    #"Expanded a" = Table.ExpandRecordColumn(Source, "a", List.Combine(#"Added Custom"[Custom]), List.Combine(#"Added Custom"[Custom]))
in
    #"Expanded a"

vkkfmsft_1-1654501046051.png


If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you! I manually check the new column and it worked!

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.