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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
aswanim
Frequent Visitor

How to get employees list who are missing the selected competency

Hi 

 

I have a employee table and their competency list. 

 

employee nameCompetency
alexClass A-Manually movable personal lifts
alexClass B self-propelled personal lifts
alexHealth check
ScottClass A-Manually movable personal lifts
ScottHealth check
LisaBuilding permit
LisaHealth check

 

 

If user selects "Class B self-propelled personal lifts" competency ,(here competency is slicer), then the report should shows the list of employees who are missing that competency. so the report should show the employees  as Scott , Lisa. Can you please help me how i can implement this.

 

 

Thanks.

 

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

Hi  @aswanim ,

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
DISTINCT('Table'[Competency])

vyangliumsft_0-1668061638105.png

2. Create measure.

Flag =
var _select=SELECTEDVALUE('Table 2'[Competency])
var _column=SELECTCOLUMNS(FILTER('Table','Table'[Competency]=_select),"com",[employee name])
return
IF(
    NOT(MAX('Table'[employee name])) in _column,1,0)

3. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1668061638106.png

4. Result:

vyangliumsft_2-1668061638115.png

 

Best Regards,

Liu Yang

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
v-yangliu-msft
Community Support
Community Support

Hi  @aswanim ,

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
DISTINCT('Table'[Competency])

vyangliumsft_0-1668061638105.png

2. Create measure.

Flag =
var _select=SELECTEDVALUE('Table 2'[Competency])
var _column=SELECTCOLUMNS(FILTER('Table','Table'[Competency]=_select),"com",[employee name])
return
IF(
    NOT(MAX('Table'[employee name])) in _column,1,0)

3. Place [Flag]in Filters, set is=1, apply filter.

vyangliumsft_1-1668061638106.png

4. Result:

vyangliumsft_2-1668061638115.png

 

Best Regards,

Liu Yang

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

Hi @v-yangliu-msft ,

 

 

Thanks for your reply. I am writing more clear on my requirement.

Here in your solution the competency which we have taken in table 2 is independent list. But i have existing reports where they have a competency and this report should have interaction with that competency. In that way this doesnt work here. 

 

One more thing is that the  employee and competency are in different tables and which is getting joined based on a emp_comp table.

samle data is below.

emp
emp nameemp_id
alex1
Scott2
Lisa3

 

emp_comp
emp_idcomp_id
11
12
13
21
23
33
34

 

competency
comp_idtype
1Class A-Manually movable personal lifts
2Class B self-propelled personal lifts
3Health check
4Building permit

 

Can you please help me with this.

 

Thanks

amitchandak
Super User
Super User

@aswanim, You need an independent table

Power BI Exclude Slicer value. Need of an Independent Table in Power BI: https://youtu.be/lOEW-YUrAbE

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.