Hello,
I have a problem that I thought was reltively straight forward (as it is simple in Google Sheets) but is proving tricky. I have provided a simplified illustration of some data I’m working with where scores have been logged for a number of events. I want to be able to filter to just events where all people participated. In the example below the number of people is 3 but my issue is that this number could change.
| Date | EventID | Person | Score | IsFullParticipation? |
|---|---|---|---|---|
| 01/01/2025 | 1 | Person 1 | 8 | TRUE |
| 01/01/2025 | 1 | Person 2 | 5 | TRUE |
| 01/01/2025 | 1 | Person 3 | 7 | TRUE |
| 02/01/2025 | 2 | Person 1 | 3 | TRUE |
| 02/01/2025 | 2 | Person 2 | 4 | TRUE |
| 02/01/2025 | 2 | Person 3 | 3 | TRUE |
| 03/01/2025 | 3 | Person 1 | 2 | TRUE |
| 03/01/2025 | 3 | Person 2 | 3 | TRUE |
| 03/01/2025 | 3 | Person 3 | 5 | TRUE |
| 04/01/2025 | 4 | Person 1 | 6 | TRUE |
| 04/01/2025 | 4 | Person 2 | 7 | TRUE |
| 04/01/2025 | 4 | Person 3 | 5 | TRUE |
| 05/01/2025 | 5 | Person 1 | 2 | TRUE |
| 05/01/2025 | 5 | Person 2 | 3 | TRUE |
| 05/01/2025 | 5 | Person 3 | 4 | TRUE |
In Google Sheets this is simple as I’m using a ‘IsFullParticipation’ Boolean column involving ‘COUNTUNIQUE’ in the formula to calculcate the number of people involved in the ‘Person’ column. In the example below the number of people is 3 but if a row were added with ‘Person 4’, then that’s fine becuase my COUNTUNIQUE formula will work out that people is now 4. The full formula used in the IsFullParticipation column is:
=COUNTIF(Sample[EventID],B2)=COUNTUNIQUE(Sample[Person])
So for reasons I won’t go into, my source data is essentially as above but does not include the ‘IsFullParticipation’ column. In Looker Studio I’m trying to find a way to filter to where all participants were involved so I’m assuming a calculated column that recreates the ‘IsFullPartipation’ column as above if the key but I am struggling. I’ve tried a COUNTDISTINCT formula on the Person column but I’m either getting errors or it’s always returning 1 rather than 3 which makes we wonder if my approach is completely wrong here.
I feel like i’m missing something or overcomplicating this! Thanks for reading and appreciate any advice!