Forum Discussion
Add an extra field from a data source
- 10 years agoAnonymous
If I didn't misunderstood you, when you refresh in power bi desktop your new added column will automatically be imported.
I have this issue also and it is very frustrating. We add addional columns and fields to source csvs all the time.
I have a work around that used to work...until today.
This way you will not lose any of your steps, which is very important especially if you have a complicated report that could break.
The work around is this:
1) refresh everything, make sure the new column is in the source csv
2) under applied steps in query editor, go to source and hit the settings gear icon to right of "source"
3) Choose Open file as "Automatic" hit OK
4) Your table will dissappear, double click the csv file icon, hit "insert" when the insert step box pops up
5) Your newly added column will appear at step 1 "source"
6) to make sure it stays , under "choose columns" or if you have a "removed columns" ...make sure the check box for that new column is checked
7) Your column is good to go now
This usually works. Except today it started giving me a wierd error after applying query edits Which is why I am here searching.
EDIT* I fixed my error. I was being dumb. My work around works again.
Does this work for an Excel file as well?
- Pandreoni8 years agoFrequent Visitor
Same issue. How do show the new column which I just created in the data source (Excel table, new column added but not shown in Power Bi desktop data field)? somehow I cant do those steps suggested above. thanks
- LouisT8 years agoRegular Visitor
Sorry, Pand. the solution I described was the only one i was able to figure out. Let me know if you find another way.
- Benegade8 years agoRegular Visitor
I had the same issue - with Excel tables I couldn't perform the steps mentioned here as they apply only to CSV files.
I found a workaround for Excel files/tables that seems to work for me, so thought I'd share it.
I found that I had to save a copy of the existing file e.g. save as Filename_1 or similar, then go data source settings, change data source and select the new file. The new columns then appear.
You could then go back and save as the original file name, and change data source back to that again to retain the existing file.
Hope that helps.
Ben