Weird/Random Question about the date filter.

I have a card that is a POP trendline and is comparing current year to the previous 2 years aggregating by month
You can see that in the current month (September) there is a drop off from August because it is an incomplete month. Is there a way to show the card in this same view but just not display an incomplete current month? Possibly by using the date filter or by writing a beast mode that could be used as a filter so the most recent data would be the complete previous month?
Best Answer
-
You could write a beast mode like this to exclude the current month
(CASE WHEN MONTH(`date`) = MONTH(CURDATE()) and YEAR(`date`) = YEAR(CURDATE()) then 'Exclude' Else 'Include' END)
Then just add this to your filters and choose Include
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.3
Answers
-
You could write a beast mode like this to exclude the current month
(CASE WHEN MONTH(`date`) = MONTH(CURDATE()) and YEAR(`date`) = YEAR(CURDATE()) then 'Exclude' Else 'Include' END)
Then just add this to your filters and choose Include
**Check out my Domo Tips & Tricks Videos
**Make sure toany users posts that helped you.
**Please mark as accepted the ones who solved your issue.3 -
I'm not good at Beast Modes. So, I personally would just set the date range in the top right corner to stop on August 31st if it's available. 😅
The downside is that you have to remember to adjust the range at the start of each month. 🤔
0 -
I’m going to add my two cents for a date offset dimension table. It will allow you to compare the same amount of days for the current month for the prior period avoiding the potential dip you can see when comparing the current incomplete month. I’ve done a prior write up about this here: https://dojo.domo.com/t5/Card-Building/show-percent-on-period-over-period-graph/m-p/50540/highlight/true#M7313
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**1
Categories
- All Categories
- 2K Product Ideas
- 2K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 311 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3.8K Transform
- 656 Datasets
- 115 SQL DataFlows
- 2.2K Magic ETL
- 813 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 81 App Studio
- 45 Variables
- 771 Automate
- 190 Apps
- 481 APIs & Domo Developer
- 77 Workflows
- 23 Code Engine
- 36 AI and Machine Learning
- 19 AI Chat
- AI Playground
- AI Projects and Models
- 17 Jupyter Workspaces
- 410 Distribute
- 120 Domo Everywhere
- 280 Scheduled Reports
- 10 Software Integrations
- 142 Manage
- 138 Governance & Security
- 8 Domo Community Gallery
- 48 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 114 Community Announcements
- 4.8K Archive