Note: This article has done its job, and will be retiring soon. To prevent "Page not found" woes, we're removing links we know about. If you've created links to this page, please remove them, and together we'll keep the web connected.
In Power Query, you can use Query Editor to filter by row position. Filtering rows by position is similar to filtering rows by value, except that rows are kept or discarded by their position in the table rather than by cell values. You can create an Index column to show the row positions prior to removing any rows.
-
Click the table icon ().
-
From the table context menu select, Keep Top Rows.
-
In the Keep Top Rows dialog box, enter the Number of rows to keep.
-
Click Apply.
-
Click the table icon ().
-
From the table context menu select, Keep Top 100 Rows.
-
Click the table icon ().
-
From the table context menu select, Keep Range of Rows.
-
In the Keep Range of Rows dialog box:
-
Enter the position of the First row to keep.
-
Enter the Number or rows to keep.
-
-
Click Apply.
-
Click the table icon ().
-
From the table context menu select, Remove Top Rows.
-
In the Remove Top Rows dialog box, enter the Number of rows to remove.
-
Click Apply.
Remove alternative rows
-
Click the table icon ().
-
From the table context menu select, Remove Alternative Rows.
-
In the Remove Alternative Rows dialog box:
-
Enter the First row to remove.
-
Enter the Number of rows to remove.
-
Enter the Number of rows to keep.
-
-
Click Apply.
No comments:
Post a Comment