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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Afiq_Danial
Helper II
Helper II

Multiple selection on Disconnected Slicer

HI, I have a table consisting of staffs' name and their certificate. I've also created a disconnected table. My current slicer will only work properly with on one selection. I want my slicer to have multiple selection.

 

This is my measure right now:

check =

var _sel = 'Disconnected Slicer'[SelectedCertificate]

var _chain = MAX('Staff Booking'[Certification])

RETURN

Switch(True(),


//containsstring(_chain,_sel),1,
SEARCH( _sel, _chain, 1,0 ) > 0, 1,
IF(_sel = "No Certificate" && ISBLANK(_chain), 1, 0) > 0, 1,
IF(ISBLANK(_sel), 1, 0) > 0, 1,
0)

 

This is the file that i have right now if u want to help me.

https://drive.google.com/drive/folders/1pQu_16bfUPBgOXaGIOLenl5ya3SBi3tP?usp=share_link

 

Thank you! Appreciate all the help

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

Hi @Afiq_Danial ,

 

Please try:

Flag = 
VAR _a =
    SELECTCOLUMNS ( 'Disconnected Slicer', "Slicer", [Certificate] )
VAR _b =
    ADDCOLUMNS (
        _a,
        "Count",
            SWITCH (
                TRUE (),
                ISBLANK ( MAX ( 'Staff Booking'[Certification] ) )
                    && [Slicer] = "No Certificate", 1,
                MAX ( 'Staff Booking'[Certification] ) <> BLANK ()
                    && CONTAINSSTRING ( MAX ( 'Staff Booking'[Certification] ), [Slicer] ), 1
            )
    )
RETURN
    IF (
        SUMX ( _b, [Count] )>=1
            || NOT ( ISFILTERED ( 'Disconnected Slicer'[Certificate] ) ),
        1,
        0
    )

Output:

vjianbolimsft_0-1669793145306.png

Best Regards,

Jianbo Li

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

4 REPLIES 4
v-jianboli-msft
Community Support
Community Support

Hi @Afiq_Danial ,

 

Please try:

Flag = 
VAR _a =
    SELECTCOLUMNS ( 'Disconnected Slicer', "Slicer", [Certificate] )
VAR _b =
    ADDCOLUMNS (
        _a,
        "Count",
            SWITCH (
                TRUE (),
                ISBLANK ( MAX ( 'Staff Booking'[Certification] ) )
                    && [Slicer] = "No Certificate", 1,
                MAX ( 'Staff Booking'[Certification] ) <> BLANK ()
                    && CONTAINSSTRING ( MAX ( 'Staff Booking'[Certification] ), [Slicer] ), 1
            )
    )
RETURN
    IF (
        SUMX ( _b, [Count] )>=1
            || NOT ( ISFILTERED ( 'Disconnected Slicer'[Certificate] ) ),
        1,
        0
    )

Output:

vjianbolimsft_0-1669793145306.png

Best Regards,

Jianbo Li

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

Thanks alot, appreciate it!

 

v-jianboli-msft
Community Support
Community Support

Hi @Afiq_Danial ,

 

Please try:

Flag =
VAR _a =
    SELECTCOLUMNS ( 'Disconnected Slicer', "Slicer", [Certificate] )
VAR _b =
    ADDCOLUMNS (
        _a,
        "Count",
            SWITCH (
                TRUE (),
                ISBLANK ( MAX ( 'Staff Booking'[Certification] ) )
                    && [Slicer] = "No Certificate", 1,
                MAX ( 'Staff Booking'[Certification] ) <> BLANK ()
                    && CONTAINSSTRING ( MAX ( 'Staff Booking'[Certification] ), [Slicer] ), 1
            )
    )
VAR _c =
    COUNT ( 'Disconnected Slicer'[Certificate] )
RETURN
    IF (
        _c = SUMX ( _b, [Count] )
            || NOT ( ISFILTERED ( 'Disconnected Slicer'[Certificate] ) ),
        1,
        0
    )

Final output:

vjianbolimsft_0-1669787805586.png

vjianbolimsft_1-1669787832045.png

Best Regards,

Jianbo Li

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

Hi, thanks for your help. but what i mean is that when i choose No Certificate and CISSP (Associate), the number 1 should only show on bryan, benjamin, james, and riley rows

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