This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher 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.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 21 | |
| 21 | |
| 21 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 56 | |
| 55 | |
| 48 | |
| 26 | |
| 24 |