Forum Discussion
Calculation with the missing the attendance data
- 1 year ago
Hi,
PBI file attached.
Hope this helps.
- 1 year ago
You are welcome. Please mark my previous reply as Answer.
Create following measures. Create a Date table (Calendar table and link to table2 on date). Also for Logistic Department I see them show as 50% in final output. In the sample provided they never swiped card only IT and Facilities.
Total Staff = CALCULATE(COUNTROWS('Table'))
Not Meet Target =
VAR BadgeCount = CALCULATE(COUNTROWS(Table2))
VAR Met = IF(BadgeCount>7,1,0)
RETURN
If(MET=0,[Total Staff],[Total Staff]-MET)
MET % = DIVIDE([Not Meet Target]-[Total Staff],[Total Staff],0)
Hi Bmejia,
Thanks for your response.
It worked based on the sample data provided. However, when I pulled in more data, I noticed different results.
For example: The Change Management department has 9 staff members, but only 2 met the target in June & July. The measurement result, however, is showing 8 instead of 7 in both months. I can't figure out what is the problem.