In Power BI, what does the filter context affect when calculating a measure?
Think about how filters affect what data is used in calculations.
Filter context controls which rows are considered when a measure is calculated. It filters the data before aggregation.
Given the Sales table with columns: Product, Region, and SalesAmount, and the measure:
Total Sales = SUM(Sales[SalesAmount])
If a report visual filters Region to 'West', what is the output of Total Sales?
Filter context limits data to the selected region.
The filter on Region='West' limits the rows considered, so the measure sums only those rows.
Consider this DAX measure:
All Sales = CALCULATE(SUM(Sales[SalesAmount]), ALL(Sales))
Why does this measure show the total sales ignoring any report filters?
Think about what the ALL function does to filters.
ALL removes filters on the Sales table, so CALCULATE sums all rows regardless of filters.
You want to show how sales differ by Region and Product Category, reflecting filter context changes dynamically. Which visualization type best supports this?
Choose a visual that can show multiple categories and respond to filters.
A matrix visual can display sales by Region and Product Category, reflecting filter context dynamically.
You want to create a measure that calculates sales growth compared to the previous year but ignores any filters on Product Category while respecting other filters like Region and Date. Which DAX expression achieves this?
Use ALL to remove filters on Product Category only.
Option C removes filters on Product Category only, keeping other filters intact, and compares sales to previous year.