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.
Hi!
I have 2 tables Employee and Audits
Relationship one to many from Emp to Audits
I wanted to count the Employees that are not yet audited.
I was able to achieve this by using a calculated column in Employee that returns true when Emp is not on audits table i used lookup value and count from there.
Is there a way to do this just by using measure and not using calculated columns?
Thanks in advance!!
Solved! Go to Solution.
Hi @Anonymous ,
Create two measures like this:
For counting total audits:
Audit Count = CALCULATE(COUNTX(Audit,COUNT(Audit[Employee ID])))
Staff Not Audited = CALCULATE(COUNTX(FILTER(Employee,ISBLANK([Audit Count])),COUNT(Employee[Employee ID])))
Please accept this as a solution if your question has been answered !!
Appreciate a Kudos 😀
Hi @Anonymous ,
Create two measures like this:
For counting total audits:
Audit Count = CALCULATE(COUNTX(Audit,COUNT(Audit[Employee ID])))
Staff Not Audited = CALCULATE(COUNTX(FILTER(Employee,ISBLANK([Audit Count])),COUNT(Employee[Employee ID])))
Please accept this as a solution if your question has been answered !!
Appreciate a Kudos 😀
HI @jaideepnema
Yeah it worked!
Thank you!
i have a follow up question tho.
is it still needed to wrap them with Calculate?
i tried without calculate and they both still worked.
ya ya... you can also create these measures without calculate also 😀
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
26 | |
19 | |
14 | |
10 |
User | Count |
---|---|
58 | |
50 | |
44 | |
19 | |
18 |