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
AdamDel
Frequent Visitor

Delete Rows

Hi,

 

I have a large data set with many thousands of rows but I only need about 30 of them. I have removed and filtered out the rows that I don't need in the Power Query Editor but they still "exist", as in any further changes I make to the table takes a long time to process. 

 

I may be misunderstanding how the queries work but what is the best way to reduce my data set to only include the rows I need? Or is it that all previous steps are being rerun when I make further changes?

 

Thanks

2 REPLIES 2
LivioLanzo
Solution Sage
Solution Sage

Hi @AdamDel ,

 

what is the source of your data?  If it is a database you can make use of query folding which can drastically speed this up

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Hi @LivioLanzo ,

 

Thanks for your reply. The data is actually made up of several Excel files uploaded to SharePoint that are updated regularly, and occasionally new files are added (the layout of these files is a bit of a nightmare). 

 

Maybe I am going about this in the wrong way. For a bit of background, the Excel files contain two header rows, row one is a constant in all files, row two contains custom names that can be anything and then the data. What I am trying to build up is a mapping table of these custom names, for example:

 

Example Excel File 1

 

NameCustom Milestone 1Custom Milestone 2Custom Milestone 3Custom Milestone 4Custom Milestone 5Custom Milestone 6Custom Milestone 7
Person AA MilestoneB MilestoneC MilestoneD MilestoneE MilestoneF MilestoneG Milestone
Person A*data**data**data**data**data**data**data*
Person A*data**data**data**data**data**data**data*
Person A*data**data**data**data**data**data**data*
Person A*data**data**data**data**data**data**data*
Person A*data**data**data**data**data**data**data*
Person A*data**data**data**data**data**data**data*

 

Example Excel File 2

 

NameCustom Milestone 1Custom Milestone 2Custom Milestone 3Custom Milestone 4Custom Milestone 5Custom Milestone 6Custom Milestone 7
Person BZ MilestoneY MilestoneX MilestoneW MilestoneV MilestoneU MilestoneT Milestone
Person B*data**data**data**data**data**data**data*
Person B*data**data**data**data**data**data**data*
Person B*data**data**data**data**data**data**data*
Person B*data**data**data**data**data**data**data*
Person B*data**data**data**data**data**data**data*
Person B*data**data**data**data**data**data**data*

 

Target Output

 

NameCustom Milestone 1Custom Milestone 2Custom Milestone 3Custom Milestone 4Custom Milestone 5Custom Milestone 6Custom Milestone 7
Person AA MilestoneB MilestoneC MilestoneD MilestoneE MilestoneF MilestoneG Milestone
Person BZ MilestoneY MilestoneX MilestoneW MilestoneV MilestoneU MilestoneT Milestone

 

At the moment I am basically combining the files and stripping out the unwanted data, any suggestions?

 

Thanks

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!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.