I am trying to get a count of trainees in my app, each trainee has a unique "Member ID". A trainee is defined as meeting one or more of the following criteria:
- has a value of "Submitted" or "Issued" in the "Status" column of the "Reimbursements - Approved" sheet
- has the current grant year (e.g., "GYr 4") in the "Mentee" column of the "Member Roster" sheet
- has the current grant year (e.g., "GYr 4") in the "Resident" column of the "Member Roster" sheet
I have the following 3 COUNT/DISTINCT/COLLECT statements which all work fine individually, but I need to find the count of distinct MEMBER IDs from the results of all 3 COLLECTs combined:
=COUNT(DISTINCT(COLLECT({REIMB APPROVED | Member ID}, {REIMB APPROVED | Status}, OR(@cell = "Submitted", @cell = "Issued"))))
=COUNT(DISTINCT(COLLECT({MEMBER ROSTER | Member ID}, {MEMBER ROSTER | Mentee}, [Current Grant Year]@row)))
=COUNT(DISTINCT(COLLECT({MEMBER ROSTER | Member ID}, {MEMBER ROSTER | Resident}, [Current Grant Year]@row)))
In SQL, I could use UNIONs to combine the results of all 3 COLLECTS, then select the distinct Member IDs from those combined results. Is something like this possible in Smartsheet?