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

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

Reply
Anonymous
Not applicable

Dynamically delete rows in column

Hi guys,

 

I am looking for a way to dynamically keep a range of rows in power query.

I have multiple standard worksheet files that are combined in one query. But the data starts at a different row per file.  I already have combined the files and i am now working in "Transform sample File". I would like every file to start with 3 zeros and then start with the data in row 316 (see image) and then end with 3 zeros.

 

ytvwinfra_1-1631878391827.png 

ytvwinfra_2-1631878614715.png

 

Can anyone help me with this?

 

4 REPLIES 4
CNENFRNL
Community Champion
Community Champion

Add index column since you already know the starting row of dataset.


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Anonymous
Not applicable

For this example i do know indeed but for the other 200 files i do not know the starting row of the data and it would be nice if that coould be automatically solved...

mahoneypat
Microsoft Employee
Microsoft Employee

Please see this video for one way to do this.

Remove Top Rows and Combine Data from Multiple Excel Files - YouTube

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Unfortunately did not work for me. Thank you anyway! any alternatives?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

Top Kudoed Authors