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#M3643Jae Wilson
Check out my π₯ Domo Training YouTube Channel π¨βπ»
**Say "Thanks" by clicking the β€οΈ in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0
Categories
- 11K All Categories
- 5 Private Company Board
- 2 APAC User Group
- 12 Welcome
- 43 Domo News
- 9.9K Using Domo
- 2K Dataflows
- 2.5K Card Building
- 2.2K Ideas Exchange
- 1.2K Connectors
- 349 Workbench
- 267 Domo Best Practices
- 12 Domo Certification
- 474 Domo Developer
- 51 Domo Everywhere
- 111 Apps
- 728 New to Domo
- 85 Dojo
- Domopalooza
- 1.1K ζ₯ζ¬ζ―ι¨
- 4 ιε ΄-ζ₯ζ¬ζ―ι¨γΈγγγγ
- 30 γη₯γγ
- 65 Kowaza
- 303 δ»²ιγ«ηΈθ«
- 664 γ²γγγε ±ζ