cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
julioninjatron2
Frequent Visitor

How do I stop PowerQuery from adding new columns that are added at the source?

In my scenario, I have an excel file that uses PowerQuery to connect to a SharePoint List. I've removed all unwanted columns and won't need any new columns that are added to the List. 

 

On refresh, it automatically adds any new columns that are created on the list. Is there a way to stop this from happening?

3 REPLIES 3
ppm1
Solution Sage
Solution Sage

You can click on the Choose Column button in the toolbar, or ctrl-click each of the desired columns, right click and choose Remove other columns. This will create a step to keep just the desired columns and any new columns will be automatically removed too.

 

Pat

Microsoft Employee
ronrsnfld
Resident Rockstar
Resident Rockstar

  • Have a list of the columns to be retained someplace
    • maybe in your Excel Workbook, as a named Range or Table.
    • Or just refer to the column headers of the existing Table
  • In your PQ code, refer to that list to decide which columns to be Selected

do i do this in a specific step? 

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Top Solution Authors
Top Kudoed Authors