Forum Discussion
Help With Missing Timesheet Counts
- Anonymous6 years ago
Hi Anonymous ,
Please update the formula of measure "Missing count" as below:
Missing Count = VAR _selections = ALLSELECTED ( 'Timesheet Hours'[Period Name] ) VAR _countofPeriod = COUNTROWS ( _selections ) RETURN CALCULATE ( DISTINCTCOUNT ( 'Employee List'[Employee Name] ), 'Employee List'[Timesheet Required] = "Yes" ) * _countofPeriod - CALCULATE ( COUNT ( 'Timesheet Hours'[Period Name] ), 'Employee List'[Timesheet Required] = "Yes", FILTER ( ALL ( 'Timesheet Hours' ), 'Timesheet Hours'[Period Name] IN _selections ) )Best Regards
Rena
I apologize if I'm not explaining it well. So as seen in the picture in my original post, I like that I am now able to see the employees that are missing, pending, or approved. I'm trying to get to where I can see the count of those that are "Missing", "Approved", or "Pending" as seen in this screenshot I found (In progress timesheets would be equivalent to my pending):
Thanks!
So, if it's a calculation using a value as a filter,
try:
Measure = CALCULATE(COUNT(table[Column]),FILTER(table,[Approval]="Pending"))
- Anonymous6 years agoNot applicable
marceloVVR Thank you for your reply! I was able to get this to work too! I'm awaiting reply from the other person helping with this before I accept one of the replies as the solution. Thanks again!