Creating a rolling standard deviation within magic ETL
I'd like to create rolling standard deviation within Magic ETL that uses the previous 90 rows (or previous 90 days) as the window. I was able to do this within MySQL before, however, I'd like to do this within Magic ETL.
For example if I have 100 rows of data each row should reference the previous 90 rows as the sample size for the standard deviation (ex. row 5 would reference previous 5 rows, row 10 prev 10 rows... then once it hits 90 it would reference 90 rows... 91 would be row 2 - 91)
Answers
-
I'm not sure how large your data set is, but I was able to accomplish this in Magic ETL in the following way…
My dataset has two columns, row count and number. In this case, number is just a random number between 1 and 100.
- Added a constant to my dataset and duplicated the tile
- Cross Join the two tiles on my Constant value
- by naming the second tile 'duplicate' the autofix feature of the join tile will append 'dupliacte.' to all of the duplicate rows of data
- The Filter tile is where I am setting the 90 row window. I use two formula rules:
- Then I use the Group by tile to create a formula and calculate the Standard deviation:
Hope this helps. This question has been bothering me for a long time because I couldn't figure out a solution.
1
Categories
- All Categories
- Product Ideas
- 2.1K Ideas Exchange
- Connect
- 1.3K Connectors
- 309 Workbench
- 7 Cloud Amplifier
- 10 Federated
- Transform
- 663 Datasets
- 119 SQL DataFlows
- 2.3K Magic ETL
- 823 Beast Mode
- Visualize
- 2.6K Charting
- 86 App Studio
- 46 Variables
- Automate
- 193 Apps
- 483 APIs & Domo Developer
- 87 Workflows
- 23 Code Engine
- AI and Machine Learning
- 23 AI Chat
- 4 AI Projects and Models
- 18 Jupyter Workspaces
- Distribute
- 117 Domo Everywhere
- 283 Scheduled Reports
- 11 Software Integrations
- Manage
- 143 Governance & Security
- 11 Domo Community Gallery
- 49 Product Releases
- 13 Domo University
- Community Forums
- 41 Getting Started
- 31 Community Member Introductions
- 116 Community Announcements
- 5K Archive