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.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 684 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 46 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 123 Manage
- 120 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