Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Add multiple filters on the same visual

On a barchart visual, I have a filter that shows top 10 categories by their % measure. I also want a filter to exclude a specific category, but when I apply this, it seems to undo the previous filter.

 

Any ideas?

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

     

    Did you use the ALL function? If the ALL function is used,  it ignores any filters that might have been applied.

    ALL function (DAX) - DAX | Microsoft Learn

    If so, please try to use ALLSELESCTED function instead of ALL function.

    It removes context filters from columns and rows in the current query, while retaining all other context filters or explicit filters.

    ALLSELECTED function (DAX) - DAX | Microsoft Learn

       

                                                                                                                                                             

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.