All courses available in-class or via remote login

Data visualisation on laptop

Power BI - Remove Rows By Filtering Data

September 26, 2017

Your Power BI Guide

Follow our tutorial below and learn how to remove rows by filtering data in Power BI.

Excel files imported into Power BI need to be consistent in their format. Especially their structure for foolproof query refreshing and data workflow. In most cases that is indeed the case but you might have situations where the format is not consistent.

You might have a situation where the Excel file is exported from another source system and the actual data starts at different rows for every export. In such cases standard ‘Remove Rows’ transformation steps are not useful as the row number relating to the actual data changes between refreshes. This article will describe a way around the problem to handle such a scenario.

Consider the following sheet from a spreadsheet which is exported weekly from an ERP system.



 

 

In this export, the actual data starts from row 10 which are the row headers. However, in the next export the data might start from row 8 and in the following export the data might start from row 15, and so on. The row number pertaining to the start of the actual data is random and cannot be predicted across different exports. In the export, the objective is to remove the top 9 rows from the sheet. The M code looks like this:

 



 

 

Let's see what the data looks like at each of the applied steps

 



 







 



 

We have demonstrated how to extract and filter data from an Excel spreadsheet when the data can start at any row in the spreadsheet. Let us know if you put this to use!

View Power BI Courses

Contact Us

What is Remote Training?

Valued by Individuals

4.8/5
Over 25917 Reviews
Great context set up for the course and great presentation by Steven! It helped me to refresh some already used functions and learn new functions that beneficial to my work. Thank you! -Excel Advanced Brisbane
Lu - Excel Advanced, .
Great course, was well paced for my skill level. Stephen is a great trainer, knowledgeable, easy to follow, and easy to listen to. -Excel Advanced Brisbane
Beth - Excel Advanced, .
Steve has once again proved to be an excellent trainer. I appreciated his personal attention to questions and issues raised. He also took the time to investigate additional topics that were beyond the set scope of the course. Great learning experience! -Excel Advanced Brisbane
Cindy - Excel Advanced, .
Very informative training! I feel like I have learnt a lot. Very engaging trainer! :) -Excel Advanced Brisbane
Alexandra - Excel Advanced, .
The training was well presented. Learning more about relative and absolute was great. Working in charts and learning more about trends and forecasting was very helpful. -Excel Beginner Brisbane
Annette - Excel Beginner, .
Course is well structured and presenter very knowledgeable -Excel Beginner Brisbane
Kevin - Excel Beginner, .
Good presentation and educational. -Excel Beginner Brisbane
Wayne - Excel Beginner, .
Wonderful course. Learnt a lot from an extremely knowledgeable instructor. Thank you! -Excel Beginner Brisbane
Emma - Excel Beginner, .
It was good to increase my efficiency using Excel. -Excel Beginner Brisbane
Nathan - Excel Beginner, .
it was a great training session -Excel Beginner Brisbane
Belinda - Excel Beginner, .
Great course, I learnt a lot and have taken away some skills i can use in my workplace. -Excel Beginner Brisbane
Chantelle - Excel Beginner, .
Very informative. Well paced session. Clear instruction. Good foundation of learning. Thank you. -Excel Beginner Brisbane
Hayley - Excel Beginner, .
Even though the session was remote , It was interesting. I really learned lots of tips & shortcuts that could be used in my role . Overall the session was all good. Great session Ken!!! -Excel Customised Melbourne
Shoma - Excel Customised, .
It was quite a good session for me. Pivot Tables & Macros were the two components that I was really interested in, and Ken was marvelous in teaching those. Also there were few major shortcuts which I never knew before, so it was really awesome to know these -Excel Customised Melbourne
Abdul - Excel Customised, .
Good Handy Tips and Tricks. -Excel Customised Melbourne
William - Excel Customised, .
Ken is great, it was easy to understand, his speed was easy to follow. -Excel Customised Melbourne
Selina - Excel Customised, .
Ken was great! Lots of knowledge and went at a great pace. Thanks Ken! -Excel Customised Melbourne
Lely - Excel Customised, .
It was a good session. -Power BI Advanced Melbourne
Ehsan - Power BI Advanced, .
Very good -Power BI Advanced Melbourne
Vinh - Power BI Advanced, .
Was very useful and learnt a lot of new concepts. -Power BI Intermediate Perth
Karthik - Power BI Intermediate, .

Trusted by Business

Procured by Government

Awards and Accreditations

Map of Australia

Follow us