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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ms166
Regular Visitor

Power BI Question

When uploading files to a Power BI report from a folder, is it possible to programme the automatic removal of certain colunms and rows or does this have to be done manually everytime?

2 ACCEPTED SOLUTIONS
SamWiseOwl
Super User
Super User

Hi @ms166 

When you connect to the folder and choose transform all the files are listed like so:

SamWiseOwl_0-1728998422745.png

You can choose which columns and files to include before click on the expand icon next to Content.

SamWiseOwl_1-1728998489016.png

 

Once expanded you can remove columns and filter rows in the combined table.

SamWiseOwl_2-1728998511787.png

 

These will be added as applied steps and will be reapplied to the combined query.

Any files that have been added since the last refresh will also be included.

 

Hope this helps!


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

Kedar_Pande
Super User
Super User

Yes, you can automate the removal of specific columns and rows when uploading files from a folder in Power BI by using Power Query.

  1. In Power Query, after loading the data, you can select the columns you want to keep.
    Right-click on the unwanted columns and choose Remove.
  2. Right-click on the rows/values you want to filter out and select Remove Rows or apply a conditional filter in the filter options for that column.
  3. Once you've set the transformations (removing columns/rows), click on Close & Load.

If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

View solution in original post

2 REPLIES 2
Kedar_Pande
Super User
Super User

Yes, you can automate the removal of specific columns and rows when uploading files from a folder in Power BI by using Power Query.

  1. In Power Query, after loading the data, you can select the columns you want to keep.
    Right-click on the unwanted columns and choose Remove.
  2. Right-click on the rows/values you want to filter out and select Remove Rows or apply a conditional filter in the filter options for that column.
  3. Once you've set the transformations (removing columns/rows), click on Close & Load.

If this helped, a Kudos 👍 or Solution mark would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn

SamWiseOwl
Super User
Super User

Hi @ms166 

When you connect to the folder and choose transform all the files are listed like so:

SamWiseOwl_0-1728998422745.png

You can choose which columns and files to include before click on the expand icon next to Content.

SamWiseOwl_1-1728998489016.png

 

Once expanded you can remove columns and filter rows in the combined table.

SamWiseOwl_2-1728998511787.png

 

These will be added as applied steps and will be reapplied to the combined query.

Any files that have been added since the last refresh will also be included.

 

Hope this helps!


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.