Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Super User
Super User

  • 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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors