Hi all,
In my power apps, i use dataverse as datasources, my table structures like this:
1. table staff (contact staff information i.e. name...)
2. table staff payroll (monthly payroll record for each staff)
3. table roster ( daily record of each staff payroll with the duty status)
4. table duty code (each code status is on duty or off duty)
I would like to get the total of rows count for each staff on that staff payroll month onduty days (duty code is onduty= yes)
I managed to show in the gallery for the total numbers of days in that table roster (31 is total days for Oct) using this formula : CountRows(Filter('Staff Rosters',PayrollID=ThisItem.PayrollID))
However, I am not able to get total of onduty days using this formula :CountRows(Filter('Staff Rosters',PayrollID=ThisItem.PayrollID, DutyCode=Filter('Staff Roster Types',OnDuty=true)))
