The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi. I want to find the average of a running total over a given period.
I've got a column increasing and decreasing inventory quantity by +-XX for a range of products over time, so i've found the the total inventory over time by a running total.
The running total must start from the beginning of time to get the actual inventory, but i only want the average over a given period. When i try to calculate the average over any given period, it only includes the changes in that period, without the offset from all previous time. The average could therefore turn out to be i.e. -3 instead of 20.5.
So how do i determine the average including the offset from all previous dates?
User | Count |
---|---|
14 | |
12 | |
8 | |
6 | |
5 |
User | Count |
---|---|
29 | |
18 | |
13 | |
8 | |
5 |