Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (11.1k points)

I am having a database which shows employees and their skills and want to use slicer for selecting mutiple values and show employees that all skills are selected 

I have selected multiple values and "Or" is applied 

Power BI screenshot

How can I modified the reports with "AND" as criteria?

1 Answer

0 votes
by (22.5k points)

Use the following measure to do that

Employees with all skills =
CALCULATE (
COUNTROWS (
    FILTER (
        ADDCOLUMNS (
            VALUES ( 'dw Employee'[ADUserId] ),
            "Skills", CALCULATE (
                COUNTROWS ( VALUES ( 'dw Skill'[SkillName] ) ),
                CALCULATETABLE ( 'dw EmployeeSkill' )
            )
        ),
        [Skills] = COUNTROWS ( ALLSELECTED( 'dw Skill'[SkillName] ) )
    )
),
ALLSELECTED ( 'dw Skill'[SkillName] )
)

If u want to learn the tool in-depth, then come to us and sign up for this Power BI Certification   

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 26, 2020 in BI by Chris (11.1k points)
0 votes
1 answer
asked Mar 28, 2021 in BI by Chris (11.1k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...