The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
I am trying to create a measure (or a calculated column) that is a flag for when an employee does not hold a specific certification. For instance, I have a certification called "Workplace First Aid Course" I have assigned this to many employees but I want to identify those that do not have that certification assigned to them at all. Whenever I try to do this the data in my table seems to repeat other unrelated fields such as teams and locations, i.e the flag itself will work ok (displaying 0 for does have it and 1 for does not) but I cant use any filters and the table displays all of our locations and teams repeat for each individual record. For reference this is the DAX I currently have:
Missing Certification Flag =
VAR SelectedCertification = SELECTEDVALUE('Certifications Data'[Certification Name])
RETURN
IF (
ISBLANK (
CALCULATE (
COUNTROWS('Certifications Data'),
'Certifications Data'[Certification Name] = SelectedCertification,
'Certifications Data'[EmployeeID] = MAX('Employees'[EmployeeID]),
ALLSELECTED('Certifications Data')
)
),
1,
0
)
Hi Bhanu,
Will I have to do this for each certification individually?
Thanks,
@CBCKV , Try using below mentioned measure
Missing Certification Flag =
VAR SelectedCertification = "Workplace First Aid Course" -- Replace with your specific certification name
RETURN
IF (
ISBLANK (
CALCULATE (
COUNTROWS('Certifications Data'),
'Certifications Data'[Certification Name] = SelectedCertification,
'Certifications Data'[EmployeeID] = MAX('Employees'[EmployeeID])
)
),
1,
0
)
Proud to be a Super User! |
|
User | Count |
---|---|
15 | |
12 | |
7 | |
6 | |
5 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |