Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Syndicate_Admin
Administrator
Administrator

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.

Mohrius_0-1669233731229.png

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.

Mohrius_1-1669233838369.png

Thank you very much in advance.

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

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

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

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

amitchandak
Super User
Super User

@Syndicate_Admin , In power query remove [ , ] and double quote.

 

The option is to split the column into rows 

Power Query Split Column , Split Column By Delimiter: https://youtu.be/FyO9Vmhcfag

 

or you split it into a separate table

 

Power BI- Text Part slicer to filter/search text - https://youtu.be/MKKWeOqFG4c

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors