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.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 102 SQL DataFlows
- 626 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 754 Beast Mode
- 61 App Studio
- 41 Variables
- 693 Automate
- 178 Apps
- 456 APIs & Domo Developer
- 49 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 398 Distribute
- 115 Domo Everywhere
- 276 Scheduled Reports
- 7 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 11 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 110 Community Announcements
- 4.8K Archive