Calculate Average and Standard Deviation with missing dates in time series
When calculating the average usage and standard deviation for a list of parts based over a time series the results are not what is expected. The problem is not having a complete list of dates for each part number. I would need to generate the missing dates for each item number with a value of zero for the equations to work correctly. See attachment for better explanation. I am unsure of how to accomplish this in Domo.
Best Answer
-
In Domo, you could use the SQL function IFNULL(), and configure it something like this IFNULL(`Quantity`,0) so that if the Quantity is NULL then it will be replaced with a 0.
-----
I work for Domo.
**Say "Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as "Accepted Solution"1
Answers
-
Hi @buzz_boom - This is a great question, and a common challenge. To work around this in Domo, we have a "calendar" dataset that you can leverage to join against to fill in the days that are not included in your dataset. To get this calendar dataset set up in your Domo instance, you can simply Buzz "@DomoSupport" and request it.
Let me know if you would like any other pointers on the joining itself.
-----
I work for Domo.
**Say "Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as "Accepted Solution"0 -
Thank you for the quick response. I have a calendar that I am matching against to smooth the data already. By smooth I mean I push Saturday and Sunday usage to the previous Friday. Could you you tell me how I should be joining the data?
My first step is to join by usage table with my calendar table by the date fields. On the calendar table there is a field called "Report Date" which performs the smoothing of weekends to Fridays. So in my example 10/29 and 10/30 would be pushed TO 10/28. See updated attachment. In Excel when this calculation is done we do a pivot table and then replace blanks with 0. I would assume a similar operation in available in Domo.
0 -
In Domo, you could use the SQL function IFNULL(), and configure it something like this IFNULL(`Quantity`,0) so that if the Quantity is NULL then it will be replaced with a 0.
-----
I work for Domo.
**Say "Thanks" by clicking the thumbs up in the post that helped you.
**Please mark the post that solves your problem as "Accepted Solution"1 -
@buzz_boom, did any of the above replies help you out?
0 -
Hi LizWR and AdamT,
I was going to help answer this question to see if this Calendar Dataset will resolve this problem as I'm facing something simular.
However, this Post is pretty old (2016), just checking if anything has changed since then. Do we still need to buzz support for this Calendar ? I checked the Data Connectors area I got a handful of Domo-related Connectors, but nothing on Calendars ... though Google Calender showed up when just searching on "calenders".
0 -
Gotta love it when you answer your own questions.
Domo Dimension Connector: updated May 22, 2020
Has a Calendar option and a whole bunch of goodies.
Here's the link for anyone who has gone down this rabbit hole and stuck with it.
Cheers!
0
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