Assigning the same value to different days of the week
Hi All,
I am using the following Beast mode (Goal) to assign the same value to Monday ,tuesday, wednesday and thursday for different plants..Can you please let me know if the below is fine..
- Case when `Plant` ='Celes' and dayofweek(`orderdate`) in (2,3,4,5) then '50'
- when `Plant` ='menes' and dayofweek(`orderdate`) in (2,3,4,5) then '90'
- end
Best Answer
-
Instead of keeping this logic within a beast mode I'd recommend using another dataset (Excel upload, Webform etc) with each of the different plant types and their goal for the day of the week and then use an ETL to left join your dataset to the goal dataset and then using a coalesce in a formula tile to set a default goal if one isn't found in your goal dataset.
The concern with your beast mode is that it's hard to maintain and what happens for Sundays for Celes plants?
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Answers
-
Instead of keeping this logic within a beast mode I'd recommend using another dataset (Excel upload, Webform etc) with each of the different plant types and their goal for the day of the week and then use an ETL to left join your dataset to the goal dataset and then using a coalesce in a formula tile to set a default goal if one isn't found in your goal dataset.
The concern with your beast mode is that it's hard to maintain and what happens for Sundays for Celes plants?
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0
Categories
- All Categories
- 1.2K Product Ideas
- 1.2K Ideas Exchange
- 1.3K Connect
- 1K Connectors
- 267 Workbench
- Cloud Amplifier
- 3 Federated
- 2.5K Transform
- 78 SQL DataFlows
- 524 Datasets
- 1.9K Magic ETL
- 2.9K Visualize
- 2.2K Charting
- 433 Beast Mode
- 22 Variables
- 507 Automate
- 113 Apps
- 386 APIs & Domo Developer
- 8 Workflows
- 25 Predict
- 9 Jupyter Workspaces
- 16 R & Python Tiles
- 331 Distribute
- 76 Domo Everywhere
- 255 Scheduled Reports
- 65 Manage
- 65 Governance & Security
- 1 Product Release Questions
- Community Forums
- 39 Getting Started
- 25 Community Member Introductions
- 67 Community Announcements
- 4.8K Archive