What Does Lock Filter Do in Power BI?

Cody Schneider••8 min read

Building a Power BI report is one thing, building a report your team can actually use without getting lost or overwhelmed is another. A key part of creating a great user experience involves controlling filters, and the "Lock Filter" feature is your best friend for the job. This article will walk you through exactly what locking a filter does, how to use it, and practical scenarios where it can make your reports much more effective.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Understanding the Power BI Filters Pane

Before locking anything, it helps to know where you're working. The Filters pane in Power BI Desktop is typically located on the right side of your screen, next to the Visualizations pane. This is the control center for refining the data shown in your report. You can apply filters at three different levels:

  • Filters on this visual: This is the most specific level. Any filter you add here only affects the single visual you have currently selected on the report canvas.
  • Filters on this page: Filters applied here will affect all the visuals on the current report page. This is great for creating a focused dashboard, like a page dedicated to sales performance in a specific quarter.
  • Filters on all pages: Also known as a "report-level filter," this applies a single filter across every single page in your entire report file. It's perfect for when your entire report needs to focus on a fixed condition, like the current fiscal year.

Each of these filter levels gives you granular control over what data your audience sees, which sets the stage for locking and hiding them.

What Does Locking a Filter Actually Do?

Simply put, locking a filter prevents the end user - the person viewing your published report - from changing or removing that filter. When you, as the report author, set and lock a filter, your users can see that the filter is applied, but the controls for it will be grayed out and inaccessible.

Think of it as creating a "read-only" rule for a specific slice of data. You are making the decision for the user, ensuring that the report maintains a specific context you've intentionally set.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

Locked vs. Unlocked vs. Hidden Filters

It's important to distinguish locking from its counterparts:

  • An unlocked filter is the default. End users can see it, change its values, or clear it completely to see the unfiltered data.
  • A locked filter is visible to end users, but they cannot change or remove it. They are aware of the applied context but can't alter it.
  • A hidden filter is applied in the background but is completely invisible to the end user in the Filters pane. They won't even know it's there unless they analyze the data very closely.

Often, you’ll end up using "lock" and "hide" together. If you're going to prevent a user from changing a filter, there's often no need for them to see it cluttering up the filter panel. Hiding a locked filter is a great way to simplify the interface.

How to Lock and Hide Filters: A Step-by-Step Guide

Applying this feature is straightforward once you know where to look. Here’s how you can do it in Power BI Desktop before publishing your report.

Step 1: Open the Filters Pane

Make sure the Filters pane is visible. If it isn't, go to the View tab in the top ribbon and check the box for Filters.

Step 2: Add Your Pre-Filter

First, apply the filter you want to eventually lock. Drag the data field you want to filter by into the appropriate filter level (visual, page, or report level).

For example, let's say we want to create a page dedicated only to sales in Canada. We would drag the 'Country' field into the "Filters on this page" section.

Step 3: Set the Filter Condition

Once the field is in the Filters pane, configure it. Using our example, we would select "Canada" from the list of countries. At this point, all visuals on the page will update to show data only for Canada.

Step 4: Lock and/or Hide the Filter

Now for the main event. Hover over the filter card you just configured in the Filters pane. You will see two small icons appear on the right side of the filter card's header:

  • To Lock: Click the padlock icon. It will change from an open padlock to a closed one. This action locks the filter, making it unchangeable for report consumers.
  • To Hide: Click the eye icon. It will show a slash through it, indicating the filter is now hidden from the view of your report consumers.

You can click one or both icons. Once you publish your report to the Power BI service, these settings will be active. An unlocked filter remains fully interactive, while a locked (but visible) filter will appear grayed out and disabled for your colleagues.

GraphedGraphed

Build AI Agents for Marketing

Build virtual employees that run your go to market. Connect your data sources, deploy autonomous agents, and grow your company.

Watch Graphed demo video

Practical Scenarios: When Should You Use Locked Filters?

Knowing how to lock a filter is easy, but knowing when is what makes you an effective report designer. Here are a few common scenarios where this feature is incredibly useful.

1. Enforcing a Specific Business Context

Sometimes a report is only relevant within a specific context defined by the business. For example, a "Q1 Executive Summary" report should only show data from Q1.

In this case, you would apply a page or report-level filter for the first quarter's date range and then lock it. This ensures that every stakeholder viewing the report is seeing the exact same snapshot of the business, preventing conversations from getting derailed by someone accidentally looking at the wrong month's data.

2. Creating Audience-Specific Report Pages

Imagine you have a single Power BI file that needs to serve multiple teams. The marketing team cares about campaign performance, while the sales team cares about regional quotas.

You can create a separate page for each team. On the "Marketing Dashboard" page, you'd filter for marketing-related projects, then lock and hide that filter. On the "Sales Dashboard" page, you'd filter for sales data and do the same. This way, each department gets a clean, tailored view without needing to navigate complex filters or being distracted by data that isn't relevant to them.

Free PDF · the crash course

AI Agents for Marketing Crash Course

Learn how to deploy AI marketing agents across your go-to-market — the best tools, prompts, and workflows to turn your data into autonomous execution without writing code.

3. Simplifying a Complex Report

Your data model might contain technical fields that are necessary for the report to work but are meaningless to a business user. A common example is a boolean field like IsTestAccount that flags internal or test transactions.

You obviously want to exclude these test accounts from a real sales report. You can apply a page or report-level filter where IsTestAccount is False, and then lock and hide it. This cleans the data correctly without complicating the Filters pane with technical jargon your users don't need to see.

Lock Filter vs. Row-Level Security (RLS)

This is a critical distinction for any Power BI developer. Locking a filter controls the user experience, while Row-Level Security (RLS) controls actual data access.

  • Locking a Filter: For Usability. This is a design feature to guide your users and enforce consistency. It creates a cleaner, more focused report. It should never be used as a security measure. A sufficiently determined user with access to an underlying dataset might still be able to see the data you've filtered out.
  • Row-Level Security (RLS): For Security. RLS is a robust security feature you configure within the data model. It restricts data display based on the user's login credentials. If it is imperative that the sales rep for Germany can never see sales data for France, you must use RLS. It filters the data at the model level before it ever reaches the visual display.

In short: use lock/hide filters to tell a specific story with your data. Use RLS when you need to enforce strict rules about who can see what data.

Final Thoughts

Locking filters in Power BI is a fundamental skill for creating professional, user-friendly reports. By guiding your audience and decluttering their view, you help them get straight to the insights and prevent misunderstanding or misinterpretation. It moves your report from being just a tool for displaying data to a curated and effective communication device.

Spending hours manually building, filtering, and organizing reports in tools like Power BI can be incredibly time-consuming. We built Graphed because we believe getting insights shouldn't require so much manual work. Our platform connects directly to your marketing and sales data sources, allowing you to use simple, natural language to create the exact dashboard you need. Just describe the report you want to see - down to the specific views and filters - and Graphed builds it for you in seconds, no complex setup required.

Related Articles