October Sale - 20% of all courses - Book Today

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 23623 Reviews
Very good course - I learnt a lot. Tamara was really patient and helpful. -R Intermediate Brisbane
Elly - R Intermediate, .
Learnt lots good stuff to use for my work. Thank you -Excel Beginner Brisbane
Adam - Excel Beginner, .
Thank you for your time and it was very informative. Many Thanks -Excel Beginner Brisbane
Morgan - Excel Beginner, .
it covered all my needs. Thanks -Excel Beginner Brisbane
Rohan - Excel Beginner, .
Great learning and enjoyed . -Excel Beginner Brisbane
John - Excel Beginner, .
Very pleasant, informative day. -Power BI Beginner Brisbane
Bobbette - Power BI Beginner, .
This has been a very helpful introduction to Power BI - we'll be able to move some of our reports across to Power BI sooner than we expected. -Power BI Beginner Brisbane
Karen - Power BI Beginner, .
Great beginner session - trainer very personable. -Power BI Beginner Brisbane
Tracey - Power BI Beginner, .
Very helpful and hands on. A comprehensive look at the basics of PowerBI - definitely interested in learning more in the intermediate course. -Power BI Beginner Brisbane
Daniel - Power BI Beginner, .
Very valuable session. Can definitely see how we will use this in the workplace. Steven was a great trainer and kept the room going all day, -Power BI Beginner Brisbane
Amanda - Power BI Beginner, .
Steven was a great trainer. -Power BI Beginner Brisbane
Fay - Power BI Beginner, .
Great overview. -Power BI Beginner Brisbane
Barbara - Power BI Beginner, .
Very informative, the presenter was thorough and welcoming to all. I never felt uncomfortable asking questions. I am also grateful for the Course Manual, so I can review the Agenda topics again at my own pace. -Excel Intermediate Sydney
Janelle - Excel Intermediate, .
excellent teacher very impressed -Excel Intermediate Remote Online
Michelle - Excel Intermediate, .
Very informative. Some great hacks -Excel Intermediate Remote Online
Matthew - Excel Intermediate, .
Thanks Michael, you were patient and happy to go back over knowledge whenever people needed it. I love how excited you got over some of the technical aspects - they were really interesting! Sometimes it was a little hard to hear, might have been connectivity issues on my end, not sure. Thanks so much! -Excel Intermediate Sydney
Kristie - Excel Intermediate, .
The topics chosen were very useful. I especially think the If statements, vlook up, pivot table and flash fill will work well for me in the future. Michael was very helpful and always stopped to assist those who needed further info. He was also happy to answers questions in general related to excel. Potentially needed some polls or questions within the training to check learning and understanding. -Excel Intermediate Sydney
Jessica - Excel Intermediate, .
Michael is very good teacher. It was a great session and learned a lot in a short time. -Excel Intermediate Sydney
Philip - Excel Intermediate, .
very good. Need to practice now -Excel Intermediate Sydney
David - Excel Intermediate, .
Jason gave us a really good overview of both Power BI service and desktop and was very helpful answering our questions. The course was very helpful in cementing and extending my basic understanding of Power BI -Power BI Beginner Canberra
Paul - Power BI Beginner, .

Trusted by Business

south east asia microsoft training courses nexacu

Follow us