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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
SureshNaik123
Frequent Visitor

Slicer with And functionality

Hello all !

 

I have two slicers 1.  Technologies 2. Languages

when ever I need to multiselect the languages i need the list of employees who ever involves in that multi select slicer. 

 

SureshNaik123_0-1682922626075.png

 

SureshNaik123_1-1682922641405.png

 

ref : Slicer with AND functionality

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

Hi @SureshNaik123 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1683082571712.png

Please try to add this measure to the visual level filter:

Slicer AND logic =
VAR _a =
    ALLSELECTED ( 'Employee data_new'[Languages] )
VAR _b =
    COUNTROWS (
        FILTER (
            ALL ( 'Employee data_new' ),
            [ID] = MAX ( 'Employee data_new'[ID] )
                && [Technologies] = MAX ( 'Employee data_new'[Technologies] )
                && [Languages] IN _a
        )
    )
RETURN
    IF ( _b = COUNTROWS ( _a ), 1, 0 )

vjianbolimsft_1-1683082635638.png

Final output:

vjianbolimsft_2-1683082658581.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

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @SureshNaik123 ,

 

Based on your description, I have created a simple sample:

vjianbolimsft_0-1683082571712.png

Please try to add this measure to the visual level filter:

Slicer AND logic =
VAR _a =
    ALLSELECTED ( 'Employee data_new'[Languages] )
VAR _b =
    COUNTROWS (
        FILTER (
            ALL ( 'Employee data_new' ),
            [ID] = MAX ( 'Employee data_new'[ID] )
                && [Technologies] = MAX ( 'Employee data_new'[Technologies] )
                && [Languages] IN _a
        )
    )
RETURN
    IF ( _b = COUNTROWS ( _a ), 1, 0 )

vjianbolimsft_1-1683082635638.png

Final output:

vjianbolimsft_2-1683082658581.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.

SureshNaik123
Frequent Visitor

I have written this dax please check 

Slicer AND logic =
var sel_T = VALUES('Employee data_new'[Languages])
var distcnt = COUNTROWS(DISTINCT(SELECTCOLUMNS(FILTER('Employee data_new',
              SUMX('Employee data_new',DISTINCTCOUNT('Employee data_new'[Languages]) in sel_T)))))

var cntL  = COUNTROWS(sel_T)

return
IF(distcnt >= cntL,distcnt)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.