Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
I have a CSV file with 30 columns. I no longer need one of the columns so I have removed it. I then go into PBI and remove the column as well so I don't get errors when I try to refresh.
But now I'm getting errors because the column no longer exists. I have to go into advance editor in power query and remove all traces of the column.
Is there a better way to remove columns?
Solved! Go to Solution.
Hi @Anonymous ,
I can't think of a better way to do it.
Guess, you will have to remove traces of it in Advanced Editor only.
Best Regards
Simran Tuli
Hi @Anonymous ,
Steps are inter related sometimes hence you will need to remove the traces of the column you deleted.
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi @Anonymous ,
I can't think of a better way to do it.
Guess, you will have to remove traces of it in Advanced Editor only.
Best Regards
Simran Tuli
References to column names is one of the most common errors. You can edit the M code as you have done, but here are two other suggestions.
1. If you used Remove Other Columns, you can just click on the gear icon to open that dialog and close it, and it will update the M code with existing columns.
2. For some table functions, you can use MissingField.Ignore in the optional 3rd clause to ignore missing columns.
https://xxlbi.com/blog/safely-removing-columns-power-query/
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 21 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 59 | |
| 52 | |
| 41 | |
| 33 | |
| 32 |