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

How to show BI slicer with unique value and do table visualization filter?

I have single SharePoint list, at backend Audience colunm have multiselect lookup.
When I get list in Bi, the Audince column value show in ; seperated formate in table
Ex: audience1;  audience2; and so on
When I assign this column to slicer, Slicer look like:
audience1;  audience2;

audience1

audience1;  audience3;

Etc.
So how i pass unique value to slicer? and my table visual performed filter based on column

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

You may try my way to build the slicer column by dax.

1.png

Build a new table by dax.

Slicer Audiance = 
VAR myvalues =
    ADDCOLUMNS (
        'Table',
        "AudincePaths", SUBSTITUTE ( 'Table'[Audince], ";  ", "|" )
    )
RETURN
    VAR myvalues2 =
        ADDCOLUMNS (
            myvalues,
            "AudincePaths2", SUBSTITUTE ( [AudincePaths], ";", "|" )
        )
    RETURN
        VAR _T =
            SELECTCOLUMNS (
                GENERATE (
                    myvalues2,
                    ADDCOLUMNS (
                        GENERATESERIES ( 1, PATHLENGTH ( [AudincePaths2] ) ),
                        "MyAudince", PATHITEM ( [AudincePaths2], [Value], TEXT )
                    )
                ),
                "Audince", [MyAudince]
            )
        RETURN
            SUMMARIZE ( FILTER ( _T, [Audince] <> BLANK () ), [Audince] )

Slicer Table:

2.png

Then we build a measure to filter the table by slicer.

Measure:

Measure = IF(CONTAINSSTRING(MAX('Table'[Audince]),SELECTEDVALUE('Slicer Audiance'[Audince])),1,0)

Build a table visual by Table[Audiance], then drag measure into this visual and set it show items if value =1.

Result is as below.

When I select "audience1"

1.png

When I select "audience2"

2.png

You can download the pbix file from this link:  File

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous 

You may try my way to build the slicer column by dax.

1.png

Build a new table by dax.

Slicer Audiance = 
VAR myvalues =
    ADDCOLUMNS (
        'Table',
        "AudincePaths", SUBSTITUTE ( 'Table'[Audince], ";  ", "|" )
    )
RETURN
    VAR myvalues2 =
        ADDCOLUMNS (
            myvalues,
            "AudincePaths2", SUBSTITUTE ( [AudincePaths], ";", "|" )
        )
    RETURN
        VAR _T =
            SELECTCOLUMNS (
                GENERATE (
                    myvalues2,
                    ADDCOLUMNS (
                        GENERATESERIES ( 1, PATHLENGTH ( [AudincePaths2] ) ),
                        "MyAudince", PATHITEM ( [AudincePaths2], [Value], TEXT )
                    )
                ),
                "Audince", [MyAudince]
            )
        RETURN
            SUMMARIZE ( FILTER ( _T, [Audince] <> BLANK () ), [Audince] )

Slicer Table:

2.png

Then we build a measure to filter the table by slicer.

Measure:

Measure = IF(CONTAINSSTRING(MAX('Table'[Audince]),SELECTEDVALUE('Slicer Audiance'[Audince])),1,0)

Build a table visual by Table[Audiance], then drag measure into this visual and set it show items if value =1.

Result is as below.

When I select "audience1"

1.png

When I select "audience2"

2.png

You can download the pbix file from this link:  File

 

Best Regards,

Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

amitchandak
Super User
Super User

@Anonymous , does column contains values like

audience1; audience2;

audience1

audience1; audience3;

 

If so you might have split data on ;

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

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
Anonymous
Not applicable

Thank you @amitchandak. Can you suggest other method than split?

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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