Beastmode- Use date range as a calculation
We are a restaurant company and like to look at "Items sold per day Calculation".
It is a pretty straightforward beastmode to get that. (Total Quantity) / (Count distinct date of business * count distinct stores).
However, if the item does not sell in a day then it is not accounted for.Β
Example, we sell 4 of 'Product A' on Day 1, 0 of Product A on Day 2. The calculation would show the item sold per day as 4 rather than 2.
Β
A couple of thoughts I've had but wont work. Cross joining our items table to dateofbusiness/stores so 0's can be accounted for.... won't work, dataset is already HUGE
Using a max(dateofbusiness)-min(dateofbusiness) to get the number of days. Again, may be closer but still not ideal.
Β
The ideal solution would be to have a denomitor that equals "Number of Days being Analyzed" that works with the date range.
Comments
-
Have you deteremined a good way to calculate this? We are also looking towards a similiar issue. I would rather not "hard code" or force concrete date ranges
1 -
I have not come up with a solution. Was hoping this thread could get some "likes" to have DOMO look into it.
1 -
Having the exact same issue. Looking for average over all days, but only returning average based on days that have activity.
0 -
? where's the duplicate question button? ?Β
https://dojo.domo.com/t5/Data-Sources-and-Connectors/Available-work-day/m-p/50697#M3643
Jae Wilson
Check out my Domo Training YouTube Channel
**Say "Thanks" by clicking the heart in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0
Categories
- 10.6K All Categories
- APAC User Group
- 12 Welcome
- 36 Domo News
- 9.6K Using Domo
- 1.9K Dataflows
- 2.4K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 338 Workbench
- 250 Domo Best Practices
- 11 Domo Certification
- 460 Domo Developer
- 47 Domo Everywhere
- 100 Apps
- 703 New to Domo
- 84 Dojo
- Domopalooza
- 1.1K ζ₯ζ¬ζ―ι¨
- 4 ιε ΄-ζ₯ζ¬ζ―ι¨γΈγγγγ
- 22 γη₯γγ
- 62 Kowaza
- 295 δ»²ιγ«ηΈθ«
- 649 γ²γγγε ±ζ