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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors