Beast Mode - Multiple functions
I've created a beast mode which is correct to add 2 working days to a date.
However I want then be able to group this new date into calendar weeks. I used WeekofYear Beast Mode which came out as valid but when I graph this then drill into the week is the first date for the week is Thursday not Monday.
I assume that based on how I did this I can't have 1 beast mode and then use that beast mode for the DataSet Field and I need to make 1 beast mode.
Any ideas how to do this?
What I have with the beast mode used as a data set inside another beast moade
WEEKOFYEAR(DATE(DATE_ADD(`estimated arrival at pod date`, INTERVAL (FLOOR(4/5) * 7 + CASE WHEN MOD(4,5) + DAYOFWEEK(`estimated arrival at pod date`) >= 7 THEN 2 - FLOOR(DAYOFWEEK(`estimated arrival at pod date`)/7) ELSE 0 END + MOD(4,5)) DAY)))
Best Answer
-
If I am understanding you correctly, I think you have two options:
- In your main card, use the beast mode that returns your desired date. In Analyzer, set the Date Range filter to use this date field and then set it to graph by week. This will display the week of year for you in the card. When you drill, it will still be using this date field and should display the correct day for you.
- If you don't like how it displays the week in the first option, use your weekofyear beast mode and put that in the x-axis. When you drill, you need to configure the card in the drill path to use a different beast mode, one that returns an actual date, and put that in the x-axis. You can't use your beast mode that returns the weekofyear as a date field because it just returns an integer, so you need to make sure that you are using a beast mode that returns the desired date and use that field in your card.
Hope this helps.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1
Answers
-
If I am understanding you correctly, I think you have two options:
- In your main card, use the beast mode that returns your desired date. In Analyzer, set the Date Range filter to use this date field and then set it to graph by week. This will display the week of year for you in the card. When you drill, it will still be using this date field and should display the correct day for you.
- If you don't like how it displays the week in the first option, use your weekofyear beast mode and put that in the x-axis. When you drill, you need to configure the card in the drill path to use a different beast mode, one that returns an actual date, and put that in the x-axis. You can't use your beast mode that returns the weekofyear as a date field because it just returns an integer, so you need to make sure that you are using a beast mode that returns the desired date and use that field in your card.
Hope this helps.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
Thanks Mark, I followed point 1. I didn't need the second beast mode, I just needed the graph setting in the date filter.
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 302 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 104 SQL DataFlows
- 633 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 760 Beast Mode
- 62 App Studio
- 42 Variables
- 699 Automate
- 181 Apps
- 457 APIs & Domo Developer
- 51 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 401 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 8 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive