Trying to calculate Rolling Averages/Sums over the previous year
Hey all,
I have been stumped trying to figure out how to create a specific calculation. Let's say I have a column that counts number of orders and one that counts dates of orders by month. I want a way to calculate the total count (or sum) over the previous 12 months specifically, and display these results on a line graph for the last year.
So for example, the line graph should run from May 2022-May2023. I want the data point for May 2022 to show the total count of all orders from May 2021-May 2022. The June 2022 point shows the total count of all orders from June 2021-June 2022, etc. up until we get to currently, May 2023. The final data point should then show all data from May 2022-May 2023. Is it possible to have this as a Beast Mode calculation and then be able to display on a rolling 12 month total count for each given month?
Best Answer
-
You'd have to do this in the dataflow -basically join the 12 prior monts to each month (Aka, April's date would have the prior 12 months appended to it and all have a "Report Date" of April, so in analyzer when you select April you'd have the 12 months there). If you don't want the ability to drill, you could aggregate this before appending it.
2
Answers
-
You'd have to do this in the dataflow -basically join the 12 prior monts to each month (Aka, April's date would have the prior 12 months appended to it and all have a "Report Date" of April, so in analyzer when you select April you'd have the 12 months there). If you don't want the ability to drill, you could aggregate this before appending it.
2
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
- 753 Beast Mode
- 61 App Studio
- 41 Variables
- 692 Automate
- 177 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