Calculating the cumulative sum of a value for a given time window
I am trying to calculate the cummulative monthly sum of a specific value but with the caveat that said value only exists for a particular time window. There will be an associated startDate and an associated endDate for each value. An example data table detailing an example data set is given here:
A table detailing the resulting calculated cummulative sum is given here:
And the resulting plot I would be looking for is given here:
Having reproduced this propblem in Excel. (N.B. that I have used quarters as an example, but I would need the granularity to be monthly).
May I please have advice on how best to accomplish this within Domo. I don't believe that this should be hard but I am really struggling. Would you recomend using the MySQL Magic ETL to create a new data series or can I do this within the analyser window by making use of filters (for example)?
Thank you in advance.
Regards,
Matthew
Comments
-
Hi,
Is anyone able to help with this request?
Thanks,
0 -
Hello!
You can create this referenced chart by making a beast mode calculation that contains the following:
CASE
WHEN `startDate` LIKE '%1Q17%'
THEN 'Quarter 1'
WHEN `startDate` LIKE '%2Q17%'
THEN 'Quarter 2'
*(...etc)
ELSE 'Quarter 0'
END
You can then have your 'value' as the Y Axis, with a SUM to represent the total values for each quarter or date range.
0
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
- 812 Beast Mode
- 3.3K Visualize
- 2.5K Charting
- 80 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