Date question


I want to limit my data visualized to greater than today. I haven't been able to find a way to do that so I have to go in and change the date each day. Can this be done automatically?
Best Answer
-
Oh! You would drop this Beastmode into the filter location. You'd put the normal fields in the axis still.
1
Answers
-
This could be accomplished in a Beastmode. I'd use something like this:
CASE WHEN
`Date Field` (whatever your date field is called) > CURDATE()
THEN `Future` (or whatever you want to call this)
ELSE `Historical` (also called whatever you want)
END
You would just filter the card to "future" and the data would dynamically update for you. Beastmodes calculate on a view basis. So every time that you access it, this will render.
Let us know how that works for you. You can also check out the help center for future Beastmode help.
1 -
Tried the formula and this is the validation response:
Invalid Formula : A column in this calculation did not exist.1CASE WHEN
2`EstimatedCloseDate`>= CURDATE()
3THEN `Future`
4ELSE `Historical` END
50 -
Try using:
CASE WHEN `EstimatedCloseDate`> CURDATE()
THEN 'Future'
ELSE 'Historical'
END
The single quotes for Future and Historical instead of the backticks should fix it.
Let me know how that goes. Thanks.
1 -
Great, got it to work and display. It its accumulating all future amounts as one amount called Future. I would like it to show the future amounts per month instead. Do I need to create a beast mode for month?
0 -
Oh! You would drop this Beastmode into the filter location. You'd put the normal fields in the axis still.
1 -
Thank you. This was a big help.
1 -
Awesome!
Thank you again for participating in Dojo Day.
1
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Data Connections
- 1.3K Connectors
- 309 Workbench
- 17 Cloud Integrations
- Data & ETL
- 2.3K Magic ETL
- 120 SQL DataFlows
- 666 Datasets
- 827 Beast Mode
- Visualize & Apps
- 90 App Studio
- 198 Pro-code Components
- 2.6K Charting & Analyzer
- 46 Calculations & Variables
- AI & Data science
- 23 Domo AI & AI Chat
- 4 Managing AI
- 18 Jupyter Workspaces
- Automate
- 122 Workflows
- Alerts
- Distribute
- 118 Domo Everywhere
- 284 Reporting
- Manage
- 145 Governance & Security
- 489 APIs
- 11 Add-ins & Plugins
- 13 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 118 Community Announcements
- 5K Archive