Hi @Bob ,
You can use expressions to implement this report, but it is more troublesome. In comparison, it is more convenient to use sql query. You can use this query statement to create another dataset:
select (select count(*) from casetest where role ='student' ) as StudentTotalCount,
(select count(*) from casetest where role = 'student' and status = 1) as StudentVaccinateCount,
(select count(*) from casetest where role ='staff') as StaffTotalCount,
(select count(*) from casetest where role = 'staff' and status = 1) as StaffVaccinateCount
here is my table
Best Regards,
Isabella
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.