Remove, Count and Reverse Rows

1. Remove Rows

We can remove the rows from the data in the power query editor.
A. Remove Top Rows
To remove the top rows, select Remove Rows from the Home tab, then click on Remove Rows then on Remove Top Rows.

Remove rows

After clicking on Remove Top Rows the following dialog box appears.

Remove rows

Let’s suppose enter the value 2. And click on Ok. The following image shown the result, in which the top two rows are removed from the query.

Remove rows

B. Remove Bottom Rows
To remove the bottom rows, select Remove Rows on the Home tab, then click on Remove Rows, then on Remove Bottom Rows.

Remove rows

After clicking on Remove Bottom Rows the following dialog box appears. Let’s suppose enter the value 5.

Remove rows

After clicking on Ok. The following image shown the result, in which the bottom five rows are removed from the query.

Remove rows

2. Count Rows
We can count the rows of a table by clicking on the Count Rows button of the Transform ribbon.

Count rows

After clicking on Count Rows, the result would be:

Count rows

3. Reverse rows

With Power Query, it's possible to reverse the order of rows in a table, such that the last row displays as first.
On the Transform tab, select Reverse rows.

Reverse rows

The result of this operation will look as follows.

Reverse rows