Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Filtering on two selected values

Hi, All!   I do really not know if I am looking at this task from the right angel, so I am really hoping one of you can help.    My goal is, that I would like to select one team in the tabel to t...
  • v-jianboli-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    Based on your description, I have created a simple sample:

    Please try:

    First, create a new table of all the teams for slicer:

    Then creata a measure:

    Flag =
    IF (
        MAX ( 'Table'[Winning Team] )
            IN SELECTCOLUMNS ( 'For Slicer', "Team", [Team] )
                && MAX ( 'Table'[Losing Team] ) IN SELECTCOLUMNS ( 'For Slicer', "Team", [Team] ),
        1,
        0
    )
    

    Add it to the filter:

    Final output:

     

    Best Regards,

    Jianbo Li

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