Identify percent of people attending current event
I am currently trying to gauge how many consistent event attendees are attending our upcoming show. For context, we have 2 events every year and every registration for an event is on a separate record which I have categorized by year between 2021-2024. I am trying to roll this up into a table that gives us a percentage of how many previous events they have attended and if they are attending 2024 or not. If they have attended 60% (3/5) or higher of our previous events, and have not registered for this one - we want to reach out and find out why.
I have the data that I need but I am not sure how to group my table my member ID.
This is what my raw data looks like and how I want my table to look.
However, I can't get the member IDs to group when I try to incorporate 2024 registrations. Normally I would add a distinct member id count beast mode and it groups them but when I add this beast mode:
CASE when Year
like '%2024%' then 'Registered' else 'Not Registered' END
It creates a table like this:
Member ID | Member Name | Weight | Registered for this current show? |
---|---|---|---|
ABC | Member 1 | 0% | Not Registered |
DEF | Member 2 | 0% | Not Registered |
JKL | Member 3 | 20% | Not Registered |
JKL | Member 3 | 0% | Registered |
MNO | Member 4 | 100% | Not Registered |
MNO | Member 4 | 0% | Registered |
STU | Member 5 | 80% | Not Registered |
STU | Member 5 | 0% | Registered |
QRS | Member 6 | 60% | Not Registered |
QRS | Member 6 | 0% | Registered |
How do I make it stop pulling up duplicate records to say they are registered for 2024?
Best Answer
-
You need to give your "registered" vs. "not registered" column a way to aggregate, otherwise it doesn't know how to collapse the different values. I think this should work (it's basically just wrapping your beastmode in a SUM and another CASE statement)
case
when sum(case whenYear
like '%2024%' then 1 else 0 end) > 0
then 'Registered'
Else 'Not Registered'
ENDPlease 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
2
Answers
-
You need to give your "registered" vs. "not registered" column a way to aggregate, otherwise it doesn't know how to collapse the different values. I think this should work (it's basically just wrapping your beastmode in a SUM and another CASE statement)
case
when sum(case whenYear
like '%2024%' then 1 else 0 end) > 0
then 'Registered'
Else 'Not Registered'
ENDPlease 💡/💖/👍/😊 this post if you read it and found it helpful.
Please accept the answer if it solved your problem.
2 -
@DavidChurchman That worked perfectly, thank you so much!!
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 737 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive