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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Issue: Slow Power Query Filter

I have a very simple query that is essentially just filtering a data set but it seems to be taking a long time. 

 

Can anyone see why this is taking so long just to do some basic minipulation of a not very large data set (1500 rows). 

 

 

let
Source = Excel.CurrentWorkbook(){[Name="BPC_Cost"]}[Content],

#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),

#"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"EBITDA #", type any}, {"Lookup", type text}, {"Profit Centre", type text}, {"Cost Centre", type text}, {"Currency", type text}, {"Company Code", type text}, {"Account", type text}, {"Reference", type text}, {"Column9", type any}, {"1", type any}, {"2", type any}, {"3", type any}, {"4", type any}, {"5", type any}, {"6", type any}, {"7", type any}, {"8", type any}, {"9", type any}, {"10", type any}, {"11", type any}, {"12", type any}, {"13", type any}, {"1-avg", type any}, {"2-avg", type any}, {"3-avg", type any}, {"4-avg", type any}, {"5-avg", type any}, {"6-avg", type any}, {"7-avg", type any}, {"8-avg", type any}, {"9-avg", type any}, {"10-avg", type any}, {"11-avg", type any}, {"12-avg", type any}, {"13-avg", type any}}),

#"Filtered Rows1" = Table.SelectRows(#"Changed Type", each ([#"EBITDA #"] <> null and [#"EBITDA #"] <> "Named Range End")),

#"Added Custom" = Table.AddColumn(#"Filtered Rows1", "Tab Name", each "BPC_Costs"),

#"Reordered Columns" = Table.ReorderColumns(#"Added Custom",{"Tab Name", "EBITDA #", "Lookup", "Profit Centre", "Cost Centre", "Currency", "Company Code", "Account", "Reference", "Column9", "1", "2", "3", "4", "5", "6", "7", "8", "9","10","11","12","13","1-avg","2-avg","3-avg","4-avg","5-avg","6-avg","7-avg","8-avg","9-avg","10-avg","11-avg","12-avg","13-avg"})
in
#"Reordered Columns"

 

 

I have noticed I get a much quicker perfomance when I load the data to a new sheet as opposed to an existing sheet alongside the source data. Is there any reason for this?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

There is no need to reorder columns. Power BI will ignore that and show columns alphabetically.

 

let
Source = Excel.CurrentWorkbook(){[Name="BPC_Cost"]}[Content],

#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),

#"Filtered Rows1" = Table.SelectRows(#"Promoted Headers" , each ([#"EBITDA #"] ?? "Named Range End") <>  "Named Range End")),

#"Added Custom" = Table.AddColumn(#"Filtered Rows1", "Tab Name", each "BPC_Costs")
in
#"Added Custom"

View solution in original post

4 REPLIES 4
v-hashadapu
Community Support
Community Support

Hi @mitchellC , Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @Anonymous , Please let us know if your issue is solved. If it is, consider marking the answer that helped 'Accept as Solution', so others with similar queries can find it easily. If not, please share the details.
Thank you.

v-hashadapu
Community Support
Community Support

Hi @Anonymous , Thank you for reaching out to the Microsoft Community Forum.

Please let us know if your issue is solved. If it is, consider marking the answers that helped 'Accept as Solution', so others with similar queries can find them easily. If not, please share the details.
Thank you.

lbendlin
Super User
Super User

There is no need to reorder columns. Power BI will ignore that and show columns alphabetically.

 

let
Source = Excel.CurrentWorkbook(){[Name="BPC_Cost"]}[Content],

#"Promoted Headers" = Table.PromoteHeaders(Source, [PromoteAllScalars=true]),

#"Filtered Rows1" = Table.SelectRows(#"Promoted Headers" , each ([#"EBITDA #"] ?? "Named Range End") <>  "Named Range End")),

#"Added Custom" = Table.AddColumn(#"Filtered Rows1", "Tab Name", each "BPC_Costs")
in
#"Added Custom"

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.