You are a data analyst with a Power BI data model that includes a 'Sales' table with a [SalesAmount] column and a 'Product' table with [Category], [Subcategory], and [Color] columns. You need to create a measure that calculates the total sales specifically for the 'Bikes' category. This calculation must ignore any user-applied filters on the [Subcategory] and [Color] columns from the 'Product' table, while still respecting filters from other tables. Which DAX formula correctly implements this requirement?
The CALCULATE function evaluates an expression in a modified filter context. The predicate Product[Category] = "Bikes" adds a filter that keeps only rows where Category is Bikes. The REMOVEFILTERS modifier then clears any existing filters on Product[Subcategory] and Product[Color], so slicers or visual filters on those two columns do not affect the result. Filters from related tables-and from other Product columns-are left intact, so the measure returns Bike sales in the current report context.
A formula that uses ALL(Product) is not appropriate here. ALL(Product) removes filters from every column in the Product table. Although the subsequent predicate re-applies the Bikes category filter, all other Product-level filters (such as Size or Brand) would also be removed, which is broader than the stated requirement.
The SUMX/FILTER expression operates entirely within the existing filter context, so it would still honor Subcategory and Color filters and therefore fails the requirement.
KEEPFILTERS preserves the current filters and intersects them with the Bikes filter, so Subcategory and Color would remain applied. This likewise does not satisfy the need to ignore those two columns.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the CALCULATE function do in DAX?
Open an interactive chat with Bash
What is the role of REMOVEFILTERS in the correct DAX formula?
Open an interactive chat with Bash
Why is using ALL(Product) incorrect in this scenario?
Open an interactive chat with Bash
Microsoft Power BI Data Analyst
Model the Data
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .