Struggling with Beastmode formula

For some reason, the following BM formula is not working. I get a Calculation Error: This calculation contained a syntax error.
Can anyone advise on what I'm doing wrong here?
sum(case when `EVENT_NAME` like 'user_engagement' then `EVENT_PARAMS_ENGAGEMENT_TIME_SEC` end)
/
COUNT(DISTINCT case when `EVENT_NAME` like 'user_engagement' then `Unique Session ID` end)
end
Best Answers
-
Hi @NathanDorsch try removing the last "end" and see if that resolves the error.
2 -
@NathanDorsch You don't need your final "end". You only need an end when you're dealing with individual CASE WHEN statements.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**
2
Answers
-
Hi @NathanDorsch try removing the last "end" and see if that resolves the error.
2 -
@NathanDorsch You don't need your final "end". You only need an end when you're dealing with individual CASE WHEN statements.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**
2
Categories
- 10.5K All Categories
- 6 Connect
- 916 Connectors
- 250 Workbench
- 461 Transform
- 1.7K Magic ETL
- 69 SQL DataFlows
- 476 Datasets
- 189 Visualize
- 252 Beast Mode
- 2.1K Charting
- 11 Variables
- 16 Automate
- 354 APIs & Domo Developer
- 88 Apps
- 3 Workflows
- 20 Predict
- 5 Jupyter Workspaces
- 15 R & Python Tiles
- 246 Distribute
- 62 Domo Everywhere
- 243 Scheduled Reports
- 21 Manage
- 42 Governance & Security
- 171 Product Ideas
- 1.2K Ideas Exchange
- 11 Community Forums
- 27 Getting Started
- 14 Community Member Introductions
- 55 Community News
- 4.5K Archive