Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
CarlSagan
Helper II
Helper II

Why does removing a filter with ALL repeat values in a visual matrix?

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?

CarlSagan_0-1690577449569.png

 

1 ACCEPTED SOLUTION
Take3
Regular Visitor

@CarlSagan 

 

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

View solution in original post

2 REPLIES 2
CarlSagan
Helper II
Helper II

Perfect explanation, thanks!!

Take3
Regular Visitor

@CarlSagan 

 

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

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.