Beast mode adding two columns with conditions
I'm having trouble adding two columns with in a conditional case. The following works fine:
SUM(`paid_total`) + SUM(`booked_total`)
But then when I try to add any sort of condition, it fails: "An issue has occurred during processing. We are unable to complete the request at this time."
case when `payment_number` >= 1 then SUM(`paid_total`) + SUM(`booked_total`) else 0 end
I've tried wrapping the whole statement in a SUM as it suggests to do in the docs, but that also doesn't work.
SUM( case when `payment_number` >= 1 then SUM(`paid_total`) + SUM(`booked_total`) else 0 end )
Any thoughts here? I've exhausted every other help page on this topic I could find in the Dojo, to no avail.
- 10.7K All Categories
- 13 Getting Started in the Community
- 41 Beastmode & Analytics
- 2.1K Data Platform & Data Science
- 59 Domo Everywhere
- 2.7K Charting
- 2.5K Ideas Exchange
- 1.3K Connectors
- 362 Workbench
- 303 Use Cases & Best Practices
- 503 APIs
- 120 Apps
- 48 News
- 753 Onboarding
- 1.2K 日本支部
- Private Company Board