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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Stop PBI automatically adding function to remove column in staging dataflow

I have created a staging dataflow connected to a sharepoint folder. As I am on a Pro license, I have cretaed an initial table which has load disabled:

 

let
  Source = SharePoint.Files("FOLDER NAME", [ApiVersion = 15]),
  #"Split column by delimiter" = Table.SplitColumn(Source, "Folder Path", Splitter.SplitTextByEachDelimiter({"/"}, QuoteStyle.Csv, true), {"Folder Path.1", "Folder Path.2"}),
  #"Split column by delimiter 1" = Table.SplitColumn(#"Split column by delimiter", "Folder Path.1", Splitter.SplitTextByEachDelimiter({"/"}, QuoteStyle.Csv, true), {"Folder Path.3", "Folder Path.4"}),
  #"Filtered rows" = Table.SelectRows(#"Split column by delimiter 1", each [Folder Path.3] = "FOLDER NAME/reports"),
  #"Removed columns" = Table.RemoveColumns(#"Filtered rows", {"Folder Path.2"})
in
  #"Removed columns"

 

I then reference it in a separate table which has load enabled for use in other dataflows:

let
  Source = #"All submissions",
  #"Filtered rows" = Table.SelectRows(Source, each [Folder Path.4] = "Q1 2022-23")
in
  #"Filtered rows"

 

The problem is when I save the dataflow and refresh it, PBI adds on a line which means I can't access the content of the excel files in another dataflow.

 

let
  Source = #"All submissions",
  #"Filtered rows" = Table.SelectRows(Source, each [Folder Path.4] = "Q1 2022-23"),
  #"Remove columns" = Table.RemoveColumns(#"Filtered rows", Table.ColumnsOfType(#"Filtered rows", {type table, type record, type list, type nullable binary, type binary, type function}))
in
  #"Remove columns"

 

I have tried using a "Choose columns" query but it keeps automatically adding that function in, how do I stop it?

2 REPLIES 2
IreneNoodle
Regular Visitor

Try right click the query and untick the "Enabling staging"

Gérale-Récolte
Frequent Visitor

hello

 

Did you find an answer to this issue ? I'm facing the same and I have no clue how to prevent powerBI from adding this removeColumns step 😞

 

Thanks

 

G

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.