Forum Discussion

Garett52's avatar
Garett52
Frequent Visitor
7 years ago
Solved

2 Tables - show multiple options from one selection

Hi    I have the following two tables:    Table1 DLY                                         ID                      DLY_REASON                         DLY_MIN 2/3/2019 5:14:09AM              1...
  • v-yulgu-msft's avatar
    7 years ago

    Hi Garett52 ,

     

    You need an extra table to list all unique IDs which will be added to slicer later, this table should be unrelated to both Table1 and Table2.

    Slicer Item = DISTINCT(TB1[ID])
     
    Add below measure to visual level filter.
    Measure =
    IF (
        ISFILTERED ( 'Slicer Item'[ID] ),
        IF (
            SELECTEDVALUE ( TB2[ID] )
                IN { SELECTEDVALUE ( 'Slicer Item'[ID] ), SELECTEDVALUE ( 'Slicer Item'[ID] ) + 1 },
            1,
            0
        ),
        1
    )
    Best regards,
    Yuliana Gu