Date Filter for last day/week/month
Best Answer
-
For everyon's knowledge, you can do this by going into the calendar type card, going to Presets View in Chart Properties and selecting "Show Presets Only".
This will do the job. Cheers
1
Answers
-
At first glance I thought this was pretty straightforward. Then I started writing my solution and realized an issue. For today and yesterday you can just write a calculated field statement like this:
case when `date_field`=curdate() then 'today'
when `date_field`=curdate()-1 then 'yesterday' end
however, the issue I discovered is that you would want to include yesterday and today in the 'last one week' category.
if you are just looking at one card, I know that you can click on the date and quickly adjust the date window the card is looking at but I am not sure if that is possible from a dashboard layout. This might be a feature request.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman0 -
Hello.
I was watching a video on Youtube, in which a guy creates a "last 3 months" filter. Although I could not completely understand what he did, do you think using this feature (highlighted in the video) I can make my filter?
https://www.youtube.com/watch?v=qc5JqGWtlu8&feature=youtu.be
Hamza
0 -
For everyon's knowledge, you can do this by going into the calendar type card, going to Presets View in Chart Properties and selecting "Show Presets Only".
This will do the job. Cheers
1
Categories
- All Categories
- 1.2K Product Ideas
- 1.2K Ideas Exchange
- 1.3K Connect
- 1.1K Connectors
- 273 Workbench
- 2 Cloud Amplifier
- 3 Federated
- 2.7K Transform
- 78 SQL DataFlows
- 525 Datasets
- 2.1K Magic ETL
- 2.9K Visualize
- 2.2K Charting
- 434 Beast Mode
- 22 Variables
- 510 Automate
- 114 Apps
- 388 APIs & Domo Developer
- 8 Workflows
- 26 Predict
- 10 Jupyter Workspaces
- 16 R & Python Tiles
- 332 Distribute
- 77 Domo Everywhere
- 255 Scheduled Reports
- 66 Manage
- 66 Governance & Security
- 1 Product Release Questions
- Community Forums
- 40 Getting Started
- 26 Community Member Introductions
- 68 Community Announcements
- 4.8K Archive