Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Filter based on selected user's region

Hello Everyone,

 

I have a slicer in which I can select a specific sales person and there's a table with general information of their assigned accounts. My goal is that when i select one sales person, it'll list me all assigned accounts from the sales person's region. This is because a region may have assigned sales people the are no longer active. 

 

The below video almost got the job done but the issue is that one user can have multiple regions. Is there a way to auto select all once the chicklet slicer gets updated? Is there a different way to tackle this issue?

 

https://www.youtube.com/watch?v=-kOvK7IV3sg&t=3s 

  • Hi, Anonymous ;

    You could add another table about user's name as a slicer.

    slicer = VALUES('Table'[Name])

    Then create a flag masure.

    flag = IF(MAX('Table'[Location]) in  SUMMARIZE(FILTER(ALL('Table'),[Name] in ALLSELECTED(slicer[Name])),'Table'[Location]),1,0)

    Apply it into filter.

    The final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

3 Replies

  • v-yalanwu-msft's avatar
    v-yalanwu-msft
    Icon for Community Support rankCommunity Support

    Hi, Anonymous ;

    You could add another table about user's name as a slicer.

    slicer = VALUES('Table'[Name])

    Then create a flag masure.

    flag = IF(MAX('Table'[Location]) in  SUMMARIZE(FILTER(ALL('Table'),[Name] in ALLSELECTED(slicer[Name])),'Table'[Location]),1,0)

    Apply it into filter.

    The final show:


    Best Regards,
    Community Support Team _ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • Anonymous's avatar
      Anonymous
      Not applicable

      This works. Thanks!