A filter card in Power BI acts as a dedicated, high-visibility control panel that lets viewers apply specific slicers directly to a report page or visual, rather than hunting through the main filter pane. To add one, you start by creating a slicer visual on your report canvas and then use the card layout option to turn it into a compact, clickable tile. This guide covers the prerequisites, the step-by-step process, common pitfalls, and troubleshooting for this essential UI feature.
What You'll Need
- A Power BI Desktop or Power BI Service account with access to an existing report or a blank canvas.
- At least one data source connected to your workspace (such as Excel, SQL, or an online data service).
- A report page with at least one visual already rendered to serve as the target for the filter.
Step-by-Step
- Open the Report Editor: Launch Power BI Desktop or navigate to your report in the Power BI Service. If you are in the Service, ensure you are on the appropriate report page in Edit mode (click the Edit button in the top navigation bar).
- Locate the Fields Pane: On the left side of the screen, find the Fields pane. If it is not visible, go to the View tab in the ribbon and check the box for Fields.
- Identify a Data Field: Look for a column in your data model that you want to use for filtering. This could be a text field like "Product Category" or a numeric field like "Sales Amount".
- Create the Slicer Visual: Click on a field in the Fields pane and drag it onto the report canvas. Alternatively, select the field, right-click it, and choose "Create Slicer" from the context menu. A new visual will appear on the canvas.
- Adjust the Visual Size: Click and drag the edges of the new visual to resize it. You want to position it where it will be easily accessible to the viewer, typically in a corner or along a sidebar.
- Format as a Card: Click on the slicer visual to select it. In the Visualizations pane on the right, look for the Format your visual section. Click on the Card layout icon, which usually looks like a small rectangle with a line through it or a "Card" option in the dropdown menu under the visual type selector. This changes the slicer from a row or column of options to a single, compact card.
- Configure the Filter Behavior:
- Drill-Down vs. Value Selection: By default, a slicer card often behaves like a dropdown. If you want it to show all values at once, check the "Show all values" or "Allow multiple selection" options in the Format pane under "Slicer" or "Advanced settings".
- Filter Scope: Ensure the visual is set to filter the correct page or report. In the Format pane, under "Slicer", look for the "Apply filters to" section and select "Current page" or "All pages" as needed.
- Verify the Interaction: Click on a value in the card. The other visuals on the page should update immediately to reflect the selection. If they do not, check the "Edit interactions" button in the top ribbon. Ensure that interactions are enabled, and that the visual is not set to "No selection" or disabled for the specific field.
- Save the Report: Once you are satisfied with the filter card, save your work. In Power BI Desktop, use the File > Save option. In the Service, the auto-save feature will handle it, but you can manually click Save if needed.
Common Mistakes
One of the most frequent errors users encounter is attempting to create a card using a field that is not compatible with the card layout. For example, trying to turn a text field with hundreds of unique entries into a single card will result in a dropdown, not a clickable list. The card layout is designed for fields with a limited number of distinct values, such as a status field (e.g., "Shipped", "Pending", "Cancelled") or a region field (e.g., "North", "South", "East", "West"). Another mistake is failing to adjust the visual size. If the card is too large, it can clutter the report. If it is too small, the text may become unreadable. Always resize the card to balance visibility with space constraints.
Tips
For a better user experience, consider grouping your filter cards. If you have multiple cards on a page, align them neatly in a sidebar or a dedicated section. This makes the report look more organized and helps users navigate the filters more easily. You can also use conditional formatting on the card to highlight specific values. For instance, you could set the text color to red for values that fall below a certain threshold. This adds a layer of visual intelligence to your report, allowing users to spot important trends or anomalies at a glance.
Troubleshooting
If the filter card is not updating the visuals on the page, the first step is to check the interactions settings. Click the "Edit interactions" button in the top ribbon and ensure that the visual is not set to "No selection" or disabled for the specific field. If the interactions are correct and the visuals are still not updating, try refreshing the page. In Power BI Desktop, click "Refresh data" in the Home tab. In the Service, right-click the report and select "Refresh". If the issue persists, check the data source credentials. Ensure that the connection to the data source is active and that the user has the necessary permissions to query the data.
Frequently Asked Questions
Can I use a filter card to filter multiple pages at once?
Yes, you can. When formatting the slicer, look for the "Apply filters to" section under the Format pane. You can select "All pages" to ensure the filter applies to every visual across the entire report, or you can select specific pages if you want more granular control.
How do I make a filter card show all values by default?
In the Format pane, under the "Slicer" or "Advanced settings" section, look for an option called "Show all values" or "Allow multiple selection". Enabling this will cause the card to display all available options, rather than hiding them behind a dropdown menu.
Why is my filter card showing a dropdown instead of a list of values?
This usually happens when the underlying field has too many unique values for the card layout to display them all. The Power BI service automatically switches to a dropdown to prevent the report from becoming cluttered. To fix this, try using a different field with fewer distinct values, or use a standard slicer visual instead of a card.
Can I sort the values in a filter card?
Yes, you can sort the values in a filter card. Click on the visual to select it and then look for the "Sort by" option in the Visualizations pane. You can choose to sort the values in ascending or descending order, or sort by a different field in the data model.
How do I remove a filter card from the report?
To remove a filter card, simply click on it to select it and then press the Delete key on your keyboard. Alternatively, you can right-click on the visual and choose "Remove visual" from the context menu.
Is it possible to add a filter card to the dashboard view in Power BI Service?
Yes, you can add a filter card to the dashboard view. In the Power BI Service, click on the "Edit dashboard" button to enter edit mode. Then, follow the same steps as in Power BI Desktop to create a slicer visual and format it as a card. The card will then appear on the dashboard and will allow viewers to filter the pinned reports.