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
KH_Mike
Helper III
Helper III

Power Query Delete or Filter First can improve the performance?

Hi All,

 

I have a stupid question want to know. Right now, I concern to the Azure to get the table and it contain more than 100 columns. I need to filter certain field to get the data I need. Also, some column which are useless for me I will delete it as well.

 

Should I do the filtering in Power Query first or delete those unless column first in order to improve the loading performance?

1 ACCEPTED SOLUTION
AnamPatel
Resolver II
Resolver II

You should start with Removing the extra columns first and then perform Filtering and other operations in Power Query.

 

View solution in original post

2 REPLIES 2
Vijay_A_Verma
Super User
Super User

The operation which leads to reducation in size of rectangle ( i.e. grid of rows and columns) that should be done first. 

Hence, if your data size is 10 rows and 6 columns, then there are 60 cells.

Scenario 1 - If you delete 2 columns, then rectangle size would be 10*4 = 40 cells.

Scenario 2 - If you are able to filter out 4 rows, then rectanble size would be 6*6 = 36 cells 

Hence, in this case 2nd scenario is more beneficial. 

Key rule is that you should do both i.e. reduce columns and reduce rows. Hence, if I am able to delete 2 columns and filter out 4 rows, my rectangle size would be 6*4 = 24 cells.

Now, reduce as much as possible before bringing the data to PQ. If not possible, after bringing the data to PQ, use above principles.

AnamPatel
Resolver II
Resolver II

You should start with Removing the extra columns first and then perform Filtering and other operations in Power Query.

 

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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