Hi! Happy Monday!
I'm trying to create a beast mode in which I'm counting the distinct sum of registration IDs regardless of the number of products that are attached to that registration ID except when the product name contains 'Guest.'
So if a person registers for multiple sessions all of those are under the same registration ID and should be counted as one. Except their guest should count as a second registrant count.
I included a chart to illustrate what I mean:
Registration ID | Guest/Spouse Registration | Leaders | Registration | Women and Allies | Mutual Community | Total Needed |
---|
1234 | 1 | 1 | 1 | | | 2 |
1235 | | 1 | 1 | 1 | 1 | 1 |
1236 | 2 | | 1 | | | 3 |
1237 | 1 | 1 | 1 | 1 | | 2 |
| | | | | | |
I've tried a few different formulas but keep getting a formula error. I placed the formulas I tried below:
case when Product Name
= 'Leaders' or (Product Name
='Registration') or (Product Name
='Women and Allies ') OR (Product Name
= 'Mutual Community') then COUNT(DISTINCT Registration Id
) ELSE
case when Product Name
= 'Guest/Spouse Registration' then COUNT(Registration Id
) END
case when Product Name
= 'Leaders' then COUNT(DISTINCT Registration Id
) ELSE
when Product Name
= 'Guest/Spouse Registration' then COUNT(Registration Id
) END
COUNT(DISTINCT case when Product Name
not like '%Guest%' then Registration Id
else COUNT(Product Name
)end)
Thank you in advance!