Forum Discussion

CarlSagan's avatar
CarlSagan
Helper II
3 years ago
Solved

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...
  • Take3's avatar
    3 years ago

    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