How do sales and profit vary by product category and region, and how can we focus analysis on a specific year using page-level filters?
Page-level filters in Power BI - Dashboard Guide
| OrderID | ProductCategory | Region | Year | Sales | Profit |
|---|---|---|---|---|---|
| 1001 | Furniture | East | 2023 | 200 | 50 |
| 1002 | Technology | West | 2023 | 300 | 80 |
| 1003 | Office Supplies | East | 2022 | 150 | 30 |
| 1004 | Furniture | West | 2022 | 400 | 100 |
| 1005 | Technology | East | 2023 | 250 | 70 |
| 1006 | Office Supplies | West | 2023 | 100 | 20 |
| 1007 | Furniture | East | 2022 | 300 | 60 |
KPI Card: Total Sales
Formula: Total Sales = SUM(SalesData[Sales])
Shows the sum of sales for the filtered data.
KPI Card: Total Profit
Formula: Total Profit = SUM(SalesData[Profit])
Shows the sum of profit for the filtered data.
Bar Chart: Sales by Product Category
X-axis: ProductCategory
Y-axis: Total Sales (using SUM(SalesData[Sales]))
Shows sales distribution across product categories.
Table: Sales and Profit by Region
Columns: Region, Total Sales, Total Profit
Measures:
Total Sales = SUM(SalesData[Sales])Total Profit = SUM(SalesData[Profit])
Shows sales and profit summarized by region.
Page-level Filter: Year
Filter on Year column to select one or multiple years.
This filter applies to all components on the page, limiting data to the selected year(s).
+----------------------+----------------------+
| Total Sales (KPI) | Total Profit (KPI) |
+----------------------+----------------------+
| |
| Bar Chart: Sales by Product Category |
| |
+----------------------+----------------------+
| Table: Sales and Profit by Region |
+-----------------------------------------------------+
| Page-level Filter: Year (applies to whole page) |
+-----------------------------------------------------+
The page-level filter on Year controls all visuals on the page.
When you select a year (e.g., 2023), the KPI cards, bar chart, and table update to show data only for that year.
This helps focus analysis on a specific time period without changing each visual individually.
If you set the page-level filter to Year = 2022, which components update and what data do they show?
- All components update: KPI cards, bar chart, and table.
- Total Sales KPI: Sum of sales for 2022 rows (150 + 400 + 300 = 850).
- Total Profit KPI: Sum of profit for 2022 rows (30 + 100 + 60 = 190).
- Bar Chart: Sales by product category for 2022 only.
- Table: Sales and profit by region for 2022 only.
Practice
page-level filter in Power BI?Solution
Step 1: Understand the scope of page-level filters
Page-level filters apply to all visuals on the current report page only, not the entire report.Step 2: Compare with other filter types
Report-level filters affect all pages, visual-level filters affect one visual, and page-level filters affect all visuals on one page.Final Answer:
To filter data for all visuals on a single report page -> Option BQuick Check:
Page-level filter = single page visuals filtered [OK]
- Confusing page-level with report-level filters
- Thinking page-level filters affect only one visual
- Assuming page-level filters change data model
Solution
Step 1: Locate the Filters pane in Power BI
The Filters pane has sections for visual, page, and report level filters.Step 2: Set page-level filter by dragging field
Drag the desired field into the 'Page level filters' area and choose filter values to apply to all visuals on that page.Final Answer:
Drag a field into the Filters pane under 'Page level filters' and select filter values -> Option AQuick Check:
Drag field to page filters area = correct method [OK]
- Trying to filter page using DAX formulas
- Using slicers without linking to page filters
- Changing data source instead of filtering in Power BI
Solution
Step 1: Understand the effect of page-level filters on visuals
Page-level filters restrict data for all visuals on that page to the selected filter values.Step 2: Apply the filter context to the visual
The visual showing total sales will only sum sales data where the year equals 2023.Final Answer:
Total sales only for the year 2023 -> Option AQuick Check:
Page filter limits data shown in visuals [OK]
- Ignoring page-level filters effect on visuals
- Assuming visuals show all data ignoring filters
- Confusing page-level with report-level filters
Solution
Step 1: Check filter application and visual filters
If page-level filter is set correctly, it should affect all visuals unless overridden by visual filters.Step 2: Analyze the scenario
Since only some visuals show data from other regions, those visuals likely have visual-level filters overriding the page-level filter.Step 3: Identify the root cause
Visual-level filters override page-level filters, explaining why only some visuals are unaffected.Final Answer:
The visuals have their own visual-level filters overriding the page filter -> Option DQuick Check:
Visual-level filters override page-level for specific visuals [OK]
- Assuming page filters never apply
- Ignoring data model relationships
- Not checking visual-level filters
Solution
Step 1: Apply fixed filters using page-level filters
Set 'Product Category' and 'Year' as page-level filters to restrict data for all visuals on the page.Step 2: Add dynamic filtering with slicer
Add a slicer visual for 'Region' so users can interactively filter data by region on the same page.Step 3: Confirm filter behavior
Page-level filters apply fixed restrictions; slicers allow user-driven filtering dynamically.Final Answer:
Set 'Product Category' and 'Year' as page-level filters; add a slicer visual for 'Region' on the page -> Option CQuick Check:
Page filters fixed, slicers dynamic [OK]
- Setting all filters as page-level removes slicer flexibility
- Using only slicers loses fixed filter control
- Confusing filter scopes and user interaction
Ready to prove it?
Pass the test and this pattern moves unknown
