Forum Discussion

LinhNguyen's avatar
LinhNguyen
Helper II
6 years ago
Solved

Customized filter behavior with button/slicer etc

Hi,   I'm new to PowerBI and I'm looking for a way create a custom filter.   I want to create some buttons that would help me apply filters that I want into the dashboard (image below). The idea ...
  • d_gosbell's avatar
    6 years ago


    You could do this by creating a disconnected table with single column with 2 values "YES" and "NO"

     

    Then you could create a measure like the following

     

    Total Amount = 
    VAR _includeBonus = SELECTEDVALUE('Include Bonus'[Include Bonus])
    RETURN IF(_includeBonus = "NO", CALCULATE( SUM('Table'[Amount]), KEEPFILTERS('Table'[Bonus] = "NO")), SUM('Table'[Amount]))

     

     

     

    I've attached a copy of my test file to this post if you are interested.