Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi Experts,
Could anyone please tell me the difference between Choose Columns and Remove columns in Power Query. I'm very confused and seeing the same output. apprecaite help.
Solved! Go to Solution.
@thinkpad as always the answer is "it depends..."
A simple example, when using Table.SelectColumns any "new columns" won't be included automatically whereas with Table.RemoveColumns they will. That is the choice you have to make.
Of course, that's without taking dynamic column name lists into consideration...
I hope this is helpful
Thanks Mate..
Hi @thinkpad
These actions call a differen M function.
Choose Columns calls the M function Table.SelectColumns: This function is used when you want to keep only specific columns from a table. You provide the table and a list of column names you want to keep, and it returns a new table with only those columns.
Table.RemoveColumns: is used when you want to remove certain columns from a table. You provide the table and a list of column names you want to remove, and it returns a new table without those columns.
Both are equipped with an optional MissingField.Type this allows you to specify what should happen if a column reference is missing or does not match a provided column name.
I hope this is helpful
Thanks mate for the response. But under which situations we should go for Choose or Remove Columns?
@thinkpad as always the answer is "it depends..."
A simple example, when using Table.SelectColumns any "new columns" won't be included automatically whereas with Table.RemoveColumns they will. That is the choice you have to make.
Of course, that's without taking dynamic column name lists into consideration...
I hope this is helpful
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
23 | |
20 | |
13 | |
10 | |
10 |