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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
randyrettig
Helper I
Helper I

Column Change

I have a folder of .json files that I've loaded and have been using to run several reports.  All of these files have the exact same structure.  Recently, the name of the one of the columns has been changed, so all of the new .json files for the last few days have the column with the new name, and all of the files prior to that have the column with the old name. 

 

BI is not loading the column with the old name, or the new name now.  It's loading the rest of the file, but just completely ignoring that column.  Is there a way to fix this?  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @randyrettig 

Based on your description, I created the following two Json data files:

vjianpengmsft_1-1722390551617.png

vjianpengmsft_2-1722390573906.png

Use these two files in Power BI:

vjianpengmsft_3-1722390872237.png

vjianpengmsft_4-1722390891158.png

When we make changes to the column names in the json1 file:

vjianpengmsft_5-1722390961173.png

When we refreshed in Power BI, we viewed that the data for the old original column names were not loaded.

vjianpengmsft_6-1722390990585.png

The main reason for this problem is that when we use a json file as a data source, PowerQuery automatically converts this json file to table for us, and these converted M codes do not change automatically, as you can see in the image below:

vjianpengmsft_7-1722391232931.png

 

The current solution is:
1. Update your report's M code so that your report's M code contains your new column names.
2. Use other tools to convert your json file data into something like an Excel file, or store them in a database so that when you change the column names, you only need to change them in Power BI Desktop.
Here in SQL Server database as an example, I am using the following sample table:

vjianpengmsft_8-1722391700516.png

vjianpengmsft_9-1722391715824.png

When I change the listing:

vjianpengmsft_10-1722391759749.png

I just need to refresh my PowerBI report and the new column names are automatically applied.

vjianpengmsft_11-1722391813205.png

vjianpengmsft_12-1722391828762.png

 

 

Best Regards

Jianpeng Li

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

3 REPLIES 3
Anonymous
Not applicable

Hi, @randyrettig 

Based on your description, I created the following two Json data files:

vjianpengmsft_1-1722390551617.png

vjianpengmsft_2-1722390573906.png

Use these two files in Power BI:

vjianpengmsft_3-1722390872237.png

vjianpengmsft_4-1722390891158.png

When we make changes to the column names in the json1 file:

vjianpengmsft_5-1722390961173.png

When we refreshed in Power BI, we viewed that the data for the old original column names were not loaded.

vjianpengmsft_6-1722390990585.png

The main reason for this problem is that when we use a json file as a data source, PowerQuery automatically converts this json file to table for us, and these converted M codes do not change automatically, as you can see in the image below:

vjianpengmsft_7-1722391232931.png

 

The current solution is:
1. Update your report's M code so that your report's M code contains your new column names.
2. Use other tools to convert your json file data into something like an Excel file, or store them in a database so that when you change the column names, you only need to change them in Power BI Desktop.
Here in SQL Server database as an example, I am using the following sample table:

vjianpengmsft_8-1722391700516.png

vjianpengmsft_9-1722391715824.png

When I change the listing:

vjianpengmsft_10-1722391759749.png

I just need to refresh my PowerBI report and the new column names are automatically applied.

vjianpengmsft_11-1722391813205.png

vjianpengmsft_12-1722391828762.png

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi, @randyrettig 

Based on your description, I created the following two Json data files:

vjianpengmsft_1-1722390551617.png

vjianpengmsft_2-1722390573906.png

Use these two files in Power BI:

vjianpengmsft_3-1722390872237.png

vjianpengmsft_4-1722390891158.png

When we make changes to the column names in the json1 file:

vjianpengmsft_5-1722390961173.png

When we refreshed in Power BI, we viewed that the data for the old original column names were not loaded.

vjianpengmsft_6-1722390990585.png

The main reason for this problem is that when we use a json file as a data source, PowerQuery automatically converts this json file to table for us, and these converted M codes do not change automatically, as you can see in the image below:

vjianpengmsft_7-1722391232931.png

 

The current solution is:
1. Update your report's M code so that your report's M code contains your new column names.
2. Use other tools to convert your json file data into something like an Excel file, or store them in a database so that when you change the column names, you only need to change them in Power BI Desktop.
Here in SQL Server database as an example, I am using the following sample table:

vjianpengmsft_8-1722391700516.png

vjianpengmsft_9-1722391715824.png

When I change the listing:

vjianpengmsft_10-1722391759749.png

I just need to refresh my PowerBI report and the new column names are automatically applied.

vjianpengmsft_11-1722391813205.png

vjianpengmsft_12-1722391828762.png

 

 

Best Regards

Jianpeng Li

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors