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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Create advanced Slicer

Currently I have a variable 'Location' that looks like this when I put it in a slicer: 

 

Location

-Canada; France

-France

-Italy

-Mexico; France; China

-China

-Canada; Mexico

(+ 15 other options)

 

However, I would like that the slicer would just show individual countries, but when I select one of them it is actually selecting all the options that include that country. 

The slicer would look like this:

 

Location

-Canada

-France

-Italy

-Mexico

-China

 

But when I select e.g. France, it is actually selecting the options 'Canada, France' 'France' and 'Mexico; France; China'

 

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous,

Current you can't directly use the default slicer feature to achieve your requirement.

I'd like to suggest you create a new table to expand these concatenate location values to single location list.

New Table =
VAR _path =
    SUBSTITUTE ( VALUES ( 'Table'[Column] ), ";", "|" )
VAR _length =
    PATHLENGTH ( _path )
VAR _pathtable =
    ADDCOLUMNS (
        GENERATESERIES ( 1, _length, 1 ),
        "Location", PATHITEM ( _path, [Value] )
    )
RETURN
    pathtable

Then you can use new table fields as source of slicer and write a measure formula to extract the current location to lookup table records and return tag. 

SEARCH function (DAX) - DAX | Microsoft Learn

Applying a measure filter in Power BI - SQLBI

After these steps, you can use this formula on the 'visual level filter' to filter table records.

Regards,

Xiaoxin Sheng

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous,

Current you can't directly use the default slicer feature to achieve your requirement.

I'd like to suggest you create a new table to expand these concatenate location values to single location list.

New Table =
VAR _path =
    SUBSTITUTE ( VALUES ( 'Table'[Column] ), ";", "|" )
VAR _length =
    PATHLENGTH ( _path )
VAR _pathtable =
    ADDCOLUMNS (
        GENERATESERIES ( 1, _length, 1 ),
        "Location", PATHITEM ( _path, [Value] )
    )
RETURN
    pathtable

Then you can use new table fields as source of slicer and write a measure formula to extract the current location to lookup table records and return tag. 

SEARCH function (DAX) - DAX | Microsoft Learn

Applying a measure filter in Power BI - SQLBI

After these steps, you can use this formula on the 'visual level filter' to filter table records.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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