Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filtering a table based on Map selection

I've seen similar threads based on slicer selection, but belieive this is sufficiently different to warrent a seperate thread (at least the dax solutions for a slicer don't seemt to apply here).   ...
  • v-alq-msft's avatar
    6 years ago

    Hi, Anonymous 

     

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

    Table:

     

    Map:

     

    You may create a measure as below.

    Visual Control = 
    IF(
        ISFILTERED(Map[Location]),
        IF(
            SELECTEDVALUE('Table'[Location]) in DISTINCT(Map[Location]),
            1,0
        ),
        0
    )

     

    Finally you need to put the measure in the visual level filter to get 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.