Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Icon for Administrator rankAdministrator
3 years ago
Solved

Custom multi-location slicers

Good afternoon,

I have the following problem, in one column I have the cities that have assigned the staff, there are staff that have only 1 as there are others that have 19 cities, they all register me in the same column.

I need to create a visual of data segmentation in which only the cities register me, and then when I click on any of them it throws me the information of how many people there are for that city.

Thank you very much in advance.

  • Hi, Syndicate_Admin 

    Please check if formula below could help:

    Count =
    VAR _count =
        CALCULATE (
            COUNT ( Table1[Data.Tags] ),
            CONTAINSSTRING ( Table1[Data.Tags], MAX ( Table2[CD] ) )
        )
    RETURN
        IF ( ISFILTERED ( Table2[CD] ), _count, COUNT ( Table1[Data.Tags] ) )

    If it doesn't work, please share more details.

    Best Regards,
    Community Support Team _ Eason

2 Replies