New Tool Radar

AI for Data & Spreadsheets

How to Filter Rows with Power Query in Excel

Filter rows with Power Query by keeping only the rows that meet a condition, so the result refreshes with the data.

Schematic illustration for How to Filter Rows with Power Query in Excel: three numbered steps - From Table/Range; Filter the column; Check the row count.

Filtering in Excel hides rows, but the hidden rows are still there, and a SUM over the range can still include them. Filtering in Power Query removes the rows from the loaded table, so the result is a clean table that refreshes with the source.

Prerequisites

  • Excel with Power Query
  • A table to filter
  • A copy of the source file, so the original stays untouched.

Steps

  1. Select the table and go to Data, From Table/Range to open it in the Power Query Editor.
  2. Click the filter arrow on the column to filter, and choose the values or condition to keep.
  3. Check the row count before and after the filter, and confirm the kept rows are the right ones.
  4. If the filter is a date or number condition, use the Number Filters or Date Filters menu so the condition is explicit.
  5. Click Close and Load, then check the loaded table against the source.

Worked example: Fictional orders filtered to November 2026

The practice table below is a fictional five-order list after filtering to November. Each amount is the order total, and the total is their sum. The table below is fictional practice material, with fictional values. It is the expected result, worked out by hand, not a run of any tool.

Order Date Amount
Order 701 2026-11-03 42.00
Order 702 2026-11-08 18.50
Order 703 2026-11-15 27.75
Order 704 2026-11-21 63.25
Order 705 2026-11-28 35.00
Total 186.50

Expected result. Five November orders kept, each date in November 2026, and the amounts add to 186.50.

Limits

  • A filter in Power Query removes rows from the loaded table, so a filtered-out row cannot be recovered from the result.
  • A filter on a text column is case-sensitive in some settings, so check the spelling of the values kept.

Sources

See all