Forum Discussion

SuchCT's avatar
SuchCT
Helper II
4 years ago
Solved

Creating an inverse filter

Hello, I currently have one table with an "Order ID" that can have one or more "Item" inside,each item has an "Item Type" . I currently have a filter for "Item Type". I'm trying to get a second...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi SuchCT ,

    Please create a new table that has no relationship with the fact table and use this table as slicer.

     

    Table_re = DISTINCT('full table'[item type])

     

    Then create a measure as below and add it to visual filter.

     

    check = 
    IF(SELECTEDVALUE('full table'[Order ID]) in CALCULATETABLE(VALUES('full table'[Order ID]),FILTER(ALL('full table'),'full table'[item type]=SELECTEDVALUE(Table_re[item type]))),1,0)

     

     

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

     

     

    Best Regards

    Community Support Team _ Polly