Forum Discussion

rkouwenhoven's avatar
rkouwenhoven
Frequent Visitor
6 years ago
Solved

Use filter to exclude

I'm having a problem to exclude rows based on a slicer. I've read other topics but none of them solves the issue. I want to exclude rows in an order table based on Client_id. I have a seperate table...
  • Anonymous's avatar
    Anonymous
    6 years ago

    hi rkouwenhoven ,

     

    Please check following steps as below:

    1. Create Measure =

                   var s_h = MAX(Table1[show_hide])

                   return

                   IF(s_h = "1" &&

                       MAX(Table2[client_name]) in VALUES(Table1[client_name]),

                       1,

                       IF(s_h = "0"&&

                           NOT(MAX(Table2[client_name])) in VALUES(Table1[client_name]),

                           1,

                           BLANK()))

    2. Filters on visual measure is not blank.

     

    Results would be shown as below:

    BTW, PBIX file as attached, hopefully works for you.

    Community Support Team _ Jay Wang
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.