Filter multiple months by specific days of the month
Hi - I'm looking for a way to take a card with a date range of the previous 13 months and have the ability to filter it for certain days of the month so I've got more of an apples-to-apples comparison. Ex., if today is July 15th then I want to filter the exact days to include so that other months on the card only show data for the first 15 days. Ideally I'd just be able to set the days I wanted to show either via a range or radio button selection.
I'm not seeing an out-of-the-box way to do this. Thanks!
Best Answers
-
You can actually do this quite easily with beast mode to ensure that you are only showing the same amount in each month.
(CASE when DAYOFMONTH(`date`) <= DAYOFMONTH(CURRENT_DATE()) THEN 'Include' ELSE 'Exclude' END)
You can then drag this beast mode into your filters and filter on Include. You can let your date range be whatever time period you want, and this beast mode will filter out dates that are past whatever day in the month it is for previous months.
Hope this helps.
**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.2 -
Thanks to you both. These didn't get me where I needed to be HOWEVER they did provide enough info/context to figure it out. As it turns out it was even simpler and only required the DAYOFMONTH ('datecolumn'). Then I setup the beast mode as a range filter and it's perfect.
1
Answers
-
0
-
they only thing out of the box that would handle this correctly is doing a year to date selection. What I recommend is to configure your own date offset dataset to do a more apples to apples comparison. I’ve written up on this method before https://dojo.domo.com/main/discussion/53481/a-more-flexible-way-to-do-period-over-period-comparisons#latest
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1 -
You can actually do this quite easily with beast mode to ensure that you are only showing the same amount in each month.
(CASE when DAYOFMONTH(`date`) <= DAYOFMONTH(CURRENT_DATE()) THEN 'Include' ELSE 'Exclude' END)
You can then drag this beast mode into your filters and filter on Include. You can let your date range be whatever time period you want, and this beast mode will filter out dates that are past whatever day in the month it is for previous months.
Hope this helps.
**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.2 -
Thanks to you both. These didn't get me where I needed to be HOWEVER they did provide enough info/context to figure it out. As it turns out it was even simpler and only required the DAYOFMONTH ('datecolumn'). Then I setup the beast mode as a range filter and it's perfect.
1
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 101 SQL DataFlows
- 622 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 746 Beast Mode
- 58 App Studio
- 41 Variables
- 686 Automate
- 176 Apps
- 453 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 395 Distribute
- 113 Domo Everywhere
- 276 Scheduled Reports
- 6 Software Integrations
- 125 Manage
- 122 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