Forum Discussion

marlonip's avatar
marlonip
Frequent Visitor
6 years ago
Solved

Filter all items based on a selection on a visual

Hey guys!   I know the subject may seem as somenthing obvious or irrelevant, but I'll try to clarify on the thread.   Here's the cenario:   I'm working with a dataset containing all the approve...
  • JarroVGIT's avatar
    JarroVGIT
    6 years ago

    marlonip, the funniest thing happened. I came across your question last week and thought about it a bit back then but couldn't think of an approriate answer for you. But just now, it came to mind and I had to test it out and it works!

    I used the following test dataset:

    RequestIDDestinationValue
    1Turkey1
    1Singapore2
    1Germany3
    2Belgium4
    2Turkey5
    2Singapore6

    Now, don't mind the Value column, we are interested in the RequestID and Destination. I loaded the above in PBI and changed the data category of the Destination column to 'Country'. Then I duplicated the table by creating a calculated table like this:

     

    Table_Copy = Table_Orig

     

    It is a one on one copy of the original table. Then, I created a many-to-many relationship like this:

    Now I created a MAP visual based on Table_Orig and a TABLE visual based on Table_Copy. When I select Belgium in the MAP, I want to see everything of RequestID=2 in the TABLE. If I select Germany, I want to see RequestID=1 and if I select Turkey or Singapore I want to see everything, and that works! 😄 (I am happy because I was bumped out I wasn't able to figure it out in the first place while the answer is not as complicated as I initially thought it would be).

    Nothing selected, the Table shows everythingGermany selected, table only shows RequestID=1

     

    See my PBIX here: https://1drv.ms/u/s!Ancq8HFZYL_aiIgd8_NWbpeOz2QvWw?e=SdfUgB

     

    Kind regards

    Djerro123

    -------------------------------

    If this answered your question, please mark it as the Solution. This also helps others to find what they are looking for.

    Keep those thumbs up coming! 🙂