Date Filter Calculated Field
I want to create a filter card to be applied over the Domo Page, where the filter card shows 2 checkboxes/radio-buttons with values:
'Last 7 Days' and Lat 30 Days'
On selecting any of those boxes/buttons, the data for the rest of the page should get filtered accordingly.
(Selecting 'Last 7 Days' check box should show only data for last 7 days, and likewise for 'Last 30 days')
I know we can add the date filter on the page filters at the top and in beta there is a feature of preset date filter too.
But I would want to have this dynamic filter on the page.
Is it feasible ?
Any help would be appreciated.
Best Answer
-
The simplest way to do this would be to add a numeric filter to the page because of the way most data is bucketed. Since data from the past 7 days is also from the past 30 days, we aren't able to cleanly bucket the data the way a radio button requires without duplicating rows.
To make the filter work, you will have to use an ETL to create a field for the difference between your date column and the current date. Then click the filter icon on the top right of the page you want, click "Add Filter", then select the column you created for number of days. Be sure to click "Save Filters" to populate the filter every time you open the page.
Then you can adjust the number of days filter based on the time period you want to consider (e.g. Less than or equal to 7 for "Last 7 Days").
1
Answers
-
The simplest way to do this would be to add a numeric filter to the page because of the way most data is bucketed. Since data from the past 7 days is also from the past 30 days, we aren't able to cleanly bucket the data the way a radio button requires without duplicating rows.
To make the filter work, you will have to use an ETL to create a field for the difference between your date column and the current date. Then click the filter icon on the top right of the page you want, click "Add Filter", then select the column you created for number of days. Be sure to click "Save Filters" to populate the filter every time you open the page.
Then you can adjust the number of days filter based on the time period you want to consider (e.g. Less than or equal to 7 for "Last 7 Days").
1 -
Thank you.
I agree that this is the only available option until the preset date filters are available to be applied on the dashboards.
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 294 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 97 SQL DataFlows
- 607 Datasets
- 2.1K Magic ETL
- 3.8K Visualize
- 2.4K Charting
- 707 Beast Mode
- 49 App Studio
- 39 Variables
- 667 Automate
- 170 Apps
- 446 APIs & Domo Developer
- 44 Workflows
- 7 DomoAI
- 33 Predict
- 13 Jupyter Workspaces
- 20 R & Python Tiles
- 391 Distribute
- 111 Domo Everywhere
- 274 Scheduled Reports
- 6 Software Integrations
- 115 Manage
- 112 Governance & Security
- Domo Community Gallery
- 31 Product Releases
- 9 Domo University
- 5.3K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 103 Community Announcements
- 4.8K Archive