Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm using the contoso DB and I have a measure that removes the filter on product category.
Sales PCT Calculate 3 =
CALCULATE(
SUM(Sales[SalesAmount]),
ALL('Product Category')
)
My matrix has product category, subcategory on the rows. And the sum of sales amount with the measure above on the columns. When expanding the matrix to show the subcategory level, all the values are repeated for every category. Doesn't my measure mean the filters for the subcategory level are still in the filter context? Why the repeated values?
Solved! Go to Solution.
Yes, the filters for the subcategory are still in the filter context.
This is why you get different values for each subcategory (within a given category that is being ignored).
However, the ALL('Product Category') removes the filter on the Product Category.
As a result, each Product Category line in the the visual isn't going to reflect the number for the Product Category (but rather the number for ALL categories).
Correspondingly, each of the subcategories are NOT being filtered by the category either. So each subcategory is showing the total number for that subcategory across all categories. This is why the numbers repeat for each Category; because the calculation can't see the category.
Hope this is helpful to you.
Regards,
Nathan
Perfect explanation, thanks!!
Yes, the filters for the subcategory are still in the filter context.
This is why you get different values for each subcategory (within a given category that is being ignored).
However, the ALL('Product Category') removes the filter on the Product Category.
As a result, each Product Category line in the the visual isn't going to reflect the number for the Product Category (but rather the number for ALL categories).
Correspondingly, each of the subcategories are NOT being filtered by the category either. So each subcategory is showing the total number for that subcategory across all categories. This is why the numbers repeat for each Category; because the calculation can't see the category.
Hope this is helpful to you.
Regards,
Nathan
User | Count |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |