Forum Discussion

rakunn's avatar
rakunn
Frequent Visitor
8 years ago
Solved

Can I create filter with overlapping values?

Hello data heroes!

 

I would like to ask if there is a possibility to create filter with overlapping values? Let's say, I have a table with cars and their statuses:

 

CarIDStatus
1Rent
2Rent
3Broken & Rent
4Broken & Vacant
5Vacant
6Vacant

 

Do you think, that it is possible to create single filter with three buttons / selectors, working as below?

* Clicking on Rent will return cars with id 1, 2 and 3.

* Clicking on Broken will return cars with id 3, 4.

* Clicking on Vacant will return cars with id 5, 6.

 

Thank you! All the best,

rakunn

  • Hi rakunn,

     

    You should have a single table to list all available slicer selections.

     

    Create a measure. And add it to visual level filter, set its value to 1.

    Check_Measure = 
    IF ( ISERROR(FIND(SELECTEDVALUE ( Table7[Column1] ) ,LASTNONBLANK(Table6[Status],1 ))), 0, 1 )

     

    Best regards,

    Yuliana Gu

1 Reply

  • v-yulgu-msft's avatar
    v-yulgu-msft
    Microsoft Employee

    Hi rakunn,

     

    You should have a single table to list all available slicer selections.

     

    Create a measure. And add it to visual level filter, set its value to 1.

    Check_Measure = 
    IF ( ISERROR(FIND(SELECTEDVALUE ( Table7[Column1] ) ,LASTNONBLANK(Table6[Status],1 ))), 0, 1 )

     

    Best regards,

    Yuliana Gu