In Beast Mode

I need a formula where I can add the "Spot" and "Fixed" columns but only filtering values that are like "GET". How could I do?
Best Answers
-
If you are looking for anything "like" GET then you can use the following beastmode and then apply it as a filter:
CASE WHEN UPPER(`yourField`) LIKE '%GET%' THEN 'In' ELSE 'Out' ENDIf you want only rows where the field is equal to GET then you would use:
CASE WHEN UPPER(`yourField`) = 'GET' THEN 'In' ELSE 'Out' END
If I solved your problem, please select "yes" above
1 -
If I'm understanding you correctly, you want to add 2 numeric columns (Spot & Fixed) when another unnamed column is equal to the value "GET". If that is true.
CASE WHEN
Unnamed Column
= "GET" thenSpot
+Fixed
ENDIf you want to aggregate up, you can either do that in your card settings, or in the beast mode itself.
SUM(CASE WHEN
Unnamed Column
= "GET" thenSpot
+Fixed
END)David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**1
Answers
-
If you are looking for anything "like" GET then you can use the following beastmode and then apply it as a filter:
CASE WHEN UPPER(`yourField`) LIKE '%GET%' THEN 'In' ELSE 'Out' ENDIf you want only rows where the field is equal to GET then you would use:
CASE WHEN UPPER(`yourField`) = 'GET' THEN 'In' ELSE 'Out' END
If I solved your problem, please select "yes" above
1 -
If I'm understanding you correctly, you want to add 2 numeric columns (Spot & Fixed) when another unnamed column is equal to the value "GET". If that is true.
CASE WHEN
Unnamed Column
= "GET" thenSpot
+Fixed
ENDIf you want to aggregate up, you can either do that in your card settings, or in the beast mode itself.
SUM(CASE WHEN
Unnamed Column
= "GET" thenSpot
+Fixed
END)David Cunningham
** Was this post helpful? Click Agree 😀, Like 👍️, or Awesome ❤️ below **
** Did this solve your problem? Accept it as a solution! ✔️**1 -
Thank you very much, it worked!
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 663 Datasets
- 119 SQL DataFlows
- 2.3K Magic ETL
- 823 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 194 Apps
- 483 APIs & Domo Developer
- 88 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 118 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive