Formula/Beast Mode Help
Hello,
I'm stuck with how to write a Beast Mode/Formula that looks at two different dates.
Here's the example:
Employee 1: First Date Field = 12/02/2020 And their Email Date Field = 12/06/2020
Employee 2: First Date Field = 12/02/2020 And their Email Date Field= 12/23/2020
I want the Beast Mode to return 'True' if the Email Date Field happens within 8 days from their First Date Field, else 'False'. I'm thinking that this should be a simple formula but yet, here I am.
Having said that, Employee 1 would be 'True' and Employee 2 is 'False'.
Thank you!
Best Answer
-
You will want to use a case statement and the datediff function. It would look like this:
CASE WHEN DATEDIFF(EmailDate,FirstDate) <= 8 THEN 'True' ELSE 'False' END
This should do it for you.
**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
-
You will want to use a case statement and the datediff function. It would look like this:
CASE WHEN DATEDIFF(EmailDate,FirstDate) <= 8 THEN 'True' ELSE 'False' END
This should do it for you.
**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 -
Great! Thank you, I don't know why I didn't think to look for a datediff formula.
1 -
@grandele glad it worked for you. If you can mark my answer as the accepted solution, it will help others in the community. Have a great day!
**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.0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.8K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 35 Predict
- 14 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 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