Current Date BeastMode/ETL// Categorize Days to Months

I made a beastmode to substract the current date- a fixed date value which return in # of days. Now, I need to build a case to categorize the # days into months as I can't do it directly from the date configuration on the card. Do I require a magic ETL or a case can be build up on the same beast mode?
Thanks,
Jessica.
Best Answer
-
You could do something simple like divide the # of days by 30 to give you a month count.
There other option is to use PERIOD_DIFF() to get the # of months difference.
https://www.w3resource.com/mysql/date-and-time-functions/mysql-period_diff-function.php
At least at first glance, it sounds like either option should be feasible in a BeastMode.
Hope that helps,
ValiantSpur
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.1
Answers
-
You could do something simple like divide the # of days by 30 to give you a month count.
There other option is to use PERIOD_DIFF() to get the # of months difference.
https://www.w3resource.com/mysql/date-and-time-functions/mysql-period_diff-function.php
At least at first glance, it sounds like either option should be feasible in a BeastMode.
Hope that helps,
ValiantSpur
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.1 -
Thank you!!
0
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 666 Datasets
- 120 SQL DataFlows
- 2.3K Magic ETL
- 827 Beast Mode
- Visualize
- 2.6K Charting
- 90 App Studio
- 46 Variables
- Automate
- 198 Apps
- 489 APIs & Domo Developer
- 97 Workflows
- 24 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 118 Domo Everywhere
- 284 Scheduled Reports
- 11 Software Integrations
- Manage
- 145 Governance & Security
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 117 Community Announcements
- 5K Archive