Forum Discussion
Anonymous
6 years agoNot applicable
Help With Missing Timesheet Counts
Hello everyone, I need some help with a Missing Timesheet report that I'm doing for my company. Basically, I have 2 tables that have a 1-to-many relationship: Employee List - table of employee ...
- 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
marceloVVR
6 years agoHelper I
So, if it's a calculation using a value as a filter,
try:
Measure = CALCULATE(COUNT(table[Column]),FILTER(table,[Approval]="Pending"))
Anonymous
6 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!