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.
1
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.
1 -
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.8K Product Ideas
- 1.8K Ideas Exchange
- 1.6K Connect
- 1.2K Connectors
- 302 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 2.9K Transform
- 104 SQL DataFlows
- 633 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 760 Beast Mode
- 62 App Studio
- 42 Variables
- 699 Automate
- 181 Apps
- 457 APIs & Domo Developer
- 51 Workflows
- 10 DomoAI
- 38 Predict
- 16 Jupyter Workspaces
- 22 R & Python Tiles
- 401 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 8 Software Integrations
- 130 Manage
- 127 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive