Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

filer does not Contains many values

Hi everyone,

I need Help

I want to filer does not Contains many values in power bi, such as  filer does not Contains values  X,Y or Z 

 

Reagrds,

  • Anonymous ,

     

    Drag measure below to Visual level filters and set Show items when the value is 1.

    Measure =
    IF ( SELECTEDVALUE ( Table1[Column1] ) IN { "X", "Y", "Z" }, 0, 1 )
    

3 Replies

  • Zubair_Muhammad's avatar
    Zubair_Muhammad
    Community Champion

    Hi Anonymous 

     

    You can use

     

    Filter(TableName, Not TableName[Col] in {"x","y","z"})

    • Anonymous's avatar
      Anonymous
      Not applicable

      Zubair_Muhammad 

      thanks, but you mean to use your solution as a new table or new column or use it in the visual filter,

      I want to help me to use filter inside the visual filter, I used table visual and add 3 columns, inside table I want to filter based on a specific column not contain some values, such as not include X,Y Or Z

      • v-chuncz-msft's avatar
        v-chuncz-msft
        Community Support

        Anonymous ,

         

        Drag measure below to Visual level filters and set Show items when the value is 1.

        Measure =
        IF ( SELECTEDVALUE ( Table1[Column1] ) IN { "X", "Y", "Z" }, 0, 1 )