Limited date options
1. Year to Date and Current year seem to yield same results. Is this a bug?
2. Common period measure of MAT (moving annual total) and MQT (moving quarterly total) seems to be missing.
3. Can system recognise what is the latest completed month, instead of admin manually adjusting period when new monthly data arrives?
Best Answer
-
1. Year to Date and Current Year will be the same results if your data set does not have any future dates in it. If you have data points from July and August, etc. and you select "Current Year" they will show up in the results. If you select "Year to Date" they will not be in the results.
2. Moving Annual Total - We usually use the "Last 365 Days" option to get a "rolling 12 month" view of sales, etc.
3. I set up a beast mode to filter out the current months data. Something like this:
CASE WHEN YEAR(`Invoice_Date`)=YEAR(CURDATE())
AND MONTH(`Invoice_Date`)=MONTH(CURDATE())
THEN 'true' else 'false'
END
You can then put this field in your "filters" section and select to only look at the "false" results. This will then automatically include June dates once we get to July 1st.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman1
Answers
-
Year to Date and Current Year should return the same as they're the same time period.
Moving Annual and Moving Quarterly can be done by choosing Last 12 Months (or Last 4 Quarters or Last 1 Year or Last 365 Days), same for moving quarterly. There are many ways to return the same time period.
If you want the last completed month, just use the Previous Month as your default time period.
Hope that helps,
ValiantSpur
**Please mark "Accept as Solution" if this post solves your problem
**Say "Thanks" by clicking the "heart" in the post that helped you.1 -
1. Year to Date and Current Year will be the same results if your data set does not have any future dates in it. If you have data points from July and August, etc. and you select "Current Year" they will show up in the results. If you select "Year to Date" they will not be in the results.
2. Moving Annual Total - We usually use the "Last 365 Days" option to get a "rolling 12 month" view of sales, etc.
3. I set up a beast mode to filter out the current months data. Something like this:
CASE WHEN YEAR(`Invoice_Date`)=YEAR(CURDATE())
AND MONTH(`Invoice_Date`)=MONTH(CURDATE())
THEN 'true' else 'false'
END
You can then put this field in your "filters" section and select to only look at the "false" results. This will then automatically include June dates once we get to July 1st.
“There is a superhero in all of us, we just need the courage to put on the cape.” -Superman1 -
Thank you for your excellent solution. Regarding beast filtering out current month, how would you modify the code if I also wanted to filter out previous month? Thanks again. Andrew
0
Categories
- All Categories
- 1.7K Product Ideas
- 1.7K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 292 Workbench
- 4 Cloud Amplifier
- 8 Federated
- 2.8K Transform
- 95 SQL DataFlows
- 602 Datasets
- 2.1K Magic ETL
- 3.7K Visualize
- 2.4K Charting
- 694 Beast Mode
- 43 App Studio
- 39 Variables
- 658 Automate
- 170 Apps
- 441 APIs & Domo Developer
- 42 Workflows
- 5 DomoAI
- 32 Predict
- 12 Jupyter Workspaces
- 20 R & Python Tiles
- 386 Distribute
- 111 Domo Everywhere
- 269 Scheduled Reports
- 6 Software Integrations
- 113 Manage
- 110 Governance & Security
- 8 Domo University
- 30 Product Releases
- Community Forums
- 39 Getting Started
- 29 Community Member Introductions
- 98 Community Announcements
- Domo Community Gallery
- 4.8K Archive