I have and “hours” table whose rows consist of the following relevant fields:
- An email address of an event participant
- Number of hours participation in an event
- Year of the event participation
There will be separate rows with the same email address for each event where hours are recorded.
I want to create a query (filter, group by,…) that answers this question. Which people (email address) participated in at least one event in both 2022 and 2023.
Following one suggestion, I
- Grouped the rows by email address
- Created a new field, called “yrs active” that is defined by the formula “arrayunique(year)”. On the email address group by line, it indicates the number of unique values found so I assumed I could apply formulas or filtering that operated on just those unique values.
- Created a second field, “In 2022 and 2023” defined by the formula, AND(FIND("2022", {Yrs Active}), FIND("2023", {Yrs Active}))thinking that at the group by level, if the unique values contained both 2022 and 2023, the logical formula would return True. But that did not work.
- I then tried filtering such that “yrs active” contains 2022 and 2023, but that resulted in 0 rows which qualified. But if I filter such that “yrs active” contains only 2022, then I get correct results. If I filter for 2022 or 2023, I get the correct selection.


