Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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?
Solved! Go to Solution.
Hi, @randyrettig
Based on your description, I created the following two Json data files:
Use these two files in Power BI:
When we make changes to the column names in the json1 file:
When we refreshed in Power BI, we viewed that the data for the old original column names were not loaded.
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:
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:
When I change the listing:
I just need to refresh my PowerBI report and the new column names are automatically applied.
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.
Hi, @randyrettig
Based on your description, I created the following two Json data files:
Use these two files in Power BI:
When we make changes to the column names in the json1 file:
When we refreshed in Power BI, we viewed that the data for the old original column names were not loaded.
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:
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:
When I change the listing:
I just need to refresh my PowerBI report and the new column names are automatically applied.
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.
Hi, @randyrettig
Based on your description, I created the following two Json data files:
Use these two files in Power BI:
When we make changes to the column names in the json1 file:
When we refreshed in Power BI, we viewed that the data for the old original column names were not loaded.
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:
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:
When I change the listing:
I just need to refresh my PowerBI report and the new column names are automatically applied.
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!
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
116 | |
98 | |
87 | |
35 | |
35 |
User | Count |
---|---|
152 | |
98 | |
81 | |
61 | |
55 |