Forum Discussion

Saimen's avatar
Saimen
Frequent Visitor
6 years ago
Solved

Create filter with unique values based on multivalue cells

Hello, I've got article information in my model. with a field that contains what sport the article is. It can be just 'voetbal' (soccer) but it can also be multiple values like voetbal,casual (soc...
  • v-alq-msft's avatar
    6 years ago

    Hi, Saimen 

     

    Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

    Table:

     

    Test:

     

    You may create a measure as below.

    Visual Control = 
    IF(
        COUNTROWS(
            FILTER(
                DISTINCT(Test[Key Word]),
                CONTAINSSTRINGEXACT(SELECTEDVALUE('Table'[Article information]),[Key Word])
            )
        )>0,
        1,0
    )

     

    Finally you need to put the measure in the corresponding visual level filter to display the result.

     

     

    Best Regards

    Allan

     

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