To filter data in the Power Query Editor, select the column you want to narrow down, open the filter dropdown arrow in that column's header, clear the "Select All" checkbox, tick only the values you want to keep, and click OK. Power Query then adds a filtering step to the Applied Steps pane on the right, and every refresh after that applies the same filter automatically. This is a stored transformation, not a temporary view, so it is what makes a query repeatable instead of something you redo by hand each time you load fresh data.
Filtering in Power Query is available in Excel (Data > Get Data) and in Power BI Desktop (Home > Transform data). The menu labels are almost identical in both, though they can differ slightly by version, device or region, so read the nearby options if a label you expect is not exactly there.
What You'll Need
- A source of data already connected in Excel or Power BI Desktop (a table, CSV file, database, or similar).
- The Power Query Editor open, so you can see the column headers and the Applied Steps list.
- A clear decision on which rows you actually want to keep, since a filter removes everything else from the output.
- Ideally a small sample of the data where you know the correct result, so you can verify the filter worked.
Step-by-Step
Open the Power Query Editor. In Excel, go to Data > Get Data > Launch Power Query Editor, or if data is already loaded, double-click the query in the Queries & Connections pane. In Power BI Desktop, click Transform data on the Home ribbon. The editor opens in its own window with the data preview in the middle, the Queries pane on the left, and Applied Steps on the right.
Pick the query you want to filter. If you have several queries, click the correct one in the Queries pane on the left so the preview shows that table. Filtering the wrong query is easy to do when names look similar, so check the table heading before continuing.
Locate the column that will decide which rows stay. A filter works on one column at a time, so choose the column whose values tell you whether a row belongs. For example, filter a Status column to keep only "Open" records, or a Date column to keep the current year.
Click the filter arrow in that column header. This small downward arrow opens a dropdown. It shows a search box, a list of the values found in that column with checkboxes, and some quick options for text, number or date columns depending on the column's type.
Uncheck "Select All" (or untick the top checkbox), then tick only the values you want. The list can be long, so use the search box above it to type part of a value and narrow the list before ticking. Ticking individual values is the safest basic filter because you can see exactly what you are keeping.
Click OK. The preview updates immediately and shows only the matching rows. Note that the row count in the status bar drops, which is a quick visual check that something changed.
Confirm the step was recorded. Look at the Applied Steps pane on the right. A new step named "Filtered Rows" appears. Click it to see the filter applied, and click the step before it to see the pre-filter data. This is useful for confirming you filtered the column you intended.
Use the type-specific options when a simple list is not enough. For a number column, the dropdown offers numeric conditions such as greater than, less than, or between. For a date column, options include filters for a period such as the current year or a date range. These are more robust than ticking individual values because new values that arrive on refresh will match the condition automatically.
Apply the query. When you are happy with the result, click Close & Load (Excel) or Close & Apply (Power BI) on the Home tab to load the filtered data back into your workbook or model. Power Query saves the filter as part of the query, so it runs again whenever the data is refreshed.
Common Mistakes
Ticking values instead of using a condition. If you tick a fixed list of values, any new value added at the source later will be filtered out on refresh, because it was not on the list. Use a numeric or date condition, or a text filter such as "begins with", when the data changes over time.
Filtering the wrong step order. A filter applied before a step that changes values (such as replacing text or merging columns) filters the old values, not the new ones. If a filter seems to miss rows, check the order in Applied Steps and consider moving the filter later.
Ignoring type mismatches. Numbers stored as text do not respond to numeric filters the way you expect. Set the column type first (right-click the header > Change Type), then filter.
Expecting one query's filter to affect another. Each query has its own steps. If two queries reference the same source, filtering one does not filter the other unless it references the filtered query.
Filtering on a column that will be removed. If you filter, then later remove that column, the step still works, but future editors will not see why rows disappeared. Add a comment or leave the step close to the column's use.
Tips
- Rename Applied Steps to something meaningful, such as "Keep open tickets", so the query reads like a set of instructions.
- Filter early to reduce data volume, but only on columns that will not be altered by later steps.
- Use the search box inside the filter dropdown rather than scrolling through thousands of values; it matches substrings and is much faster.
- Right-click a step and choose Delete if you need to undo a filter; the preview recalculates instantly and the source data is unaffected.
- On text columns, watch for leading or trailing spaces causing duplicate-looking values in the list. Trim the column before filtering to tidy these up.
Troubleshooting
Rows you expected are missing. Click the step before the filter to see the full data, then compare the actual values with the ones you ticked. Spaces, capitalisation and hidden characters are common causes. Trim and clean the column, then re-apply the filter.
The filter dropdown shows no values or only blanks. This usually means the column type is wrong or the query failed to load the preview. Check for errors shown in the column, and set the correct data type before filtering.
The filter button is greyed out or does nothing. Make sure you have clicked inside the query preview and not the Queries pane. Also confirm you are editing a query and not the loaded data view.
The result is empty. Two or more conditions combined may cancel each other out, for example a date range with no overlapping rows, or a ticked list that does not exist in the current data. Undo the last step and re-apply one condition at a time.
Filter works in preview but not after refresh. The source values likely changed, and a fixed ticked list no longer matches. Switch to a condition-based filter, such as a date filter or "does not equal" on a status field.
Performance is slow with a large data set. Reduce the number of steps before the filter and avoid filtering on very high-cardinality text columns where possible. Filtering earlier, on smaller columns, is generally cheaper.
Frequently Asked Questions
Does filtering in Power Query change the original file?
No. The filter is a saved step inside the query. The source file or database is untouched, and the change applies only to the loaded output.
Can I filter more than one column?
Yes. Apply a filter to one column, then go to the next column and filter it too. Each filter is added as a separate step, and rows must satisfy all of them to remain.
How do I remove a filter?
Click the X next to the step in Applied Steps, or right-click the step and delete it. Alternatively, open the column dropdown, tick "Select All" and click OK.
Why do I see "Filtered Rows" but the data looks unchanged?
The filter may not have matched anything different, or you may be looking at a step before it. Click the "Filtered Rows" step itself to see its actual output.
Can I filter rows by a formula or pattern?
Yes, for text columns the dropdown includes options such as begins with, contains, and equals. For more complex logic, add a custom column with a condition and then filter that column to true.
Does the filter update when new data arrives?
Only if it is condition-based, such as a date or number filter. Ticked value lists stay fixed until you change them.