Can there be multiple "THEN" statements?
Here is my formula that is currently working!
(CASE
WHEN SKULabs Cost
>= 25 AND SKULabs Cost
<= 50 AND line_items_product_id
THEN '25-50 Bucket' ELSE 'not 25-50'
END
)
I'd like to add at 'Qty On Hand' > 1 in this formula but I'm unsure of where / or if there can be 2 "THEN" statements.
I'd like to be able to subtotal my Beast Modes, but they don't seem to subtotal when "subtotal is applied. So, I'd also like to add a subtotal in the Beast Mode as well, but again, I'm unsure of where to place it.
Thank you in advance your time and assistance!
Best Answer
-
@Laura_M1 Yes, you can add as many conditions as you want as long as each one is preceded by "WHEN" like this:
case when A then B when XYZ then 123 when blue then red … else 'Other' end
You can find more about Case statements in the Logical functions section of this Knowledge Base article:
1
Answers
-
@Laura_M1 Yes, you can add as many conditions as you want as long as each one is preceded by "WHEN" like this:
case when A then B when XYZ then 123 when blue then red … else 'Other' end
You can find more about Case statements in the Logical functions section of this Knowledge Base article:
1 -
Also can you show an example of how you are trying to subtotal your beast modes, along with the formula you're using?
0 -
Thank you!
Currently I'm just using the Chart PropertiesWe don't currently have any Beast Modes with Subtotals - is a way to subtotal them without a formula?
Ideally we'd love to have 1 column that shows Inventory OH and then all of our pricing buckets laid out. Of our options we can choose from, Beast Modes & Measures, I cannot see inventory next to the pricing buckets Either the Pricing Buckets show data or the inventory shows data; not both at the same time.0 -
Thank you MichelleH!
Apologies on the delay in response. We are getting ready for a tradeshow and I'll be leaving shortly. I will circle back to this next week! Have a great weekend!0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 618 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 739 Beast Mode
- 58 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 395 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 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