Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
MarioNZ
Contributor II
Contributor II

more help with Rolling Balance logic

I would appreciate some assistance, as i keep getting stuck with calculation of rolling balances.

The following is employee data for hours worked on a Monday across several periods.

I need to calculate the MEDIAN and the AVERAGE across several periods, 4 , 13, 24, and 52

However, when applying the following calculation, i seem to get the same answer for all reference periods - 8.50 Median and 6.38 Average

RangeAvg(Above(Median([Monday (Worked)]), 0, 4))

RangeAvg(Above(Median([Monday (Worked)]), 0, 13))

RangeAvg(Above(Median([Monday (Worked)]), 0, 24))

RangeAvg(Above(Median([Monday (Worked)]), 0, 52))

 

RangeAvg(Above(Avg([Monday (Worked)]), 0, 4))

RangeAvg(Above(Avg([Monday (Worked)]), 0, 13))

RangeAvg(Above(Avg([Monday (Worked)]), 0, 24))

RangeAvg(Above(Avg([Monday (Worked)]), 0, 52))

I should be getting the following answers below:

# of pay periodsMonday (Worked)MedianAverage
10.0  
29.0  
38.5  
49.08.756.63
59.0  
68.3  
78.5  
89.0  
94.3  
1010.3  
1110.3  
128.8  
139.39.008.00
144.5  
150.0  
168.8  
179.0  
189.3  
199.0  
204.5  
214.0  
229.0  
239.3  
248.88.887.50
253.0  
263.0  
270.8  
282.0  
291.5  
303.5  
317.0  
329.0  
339.0  
348.8  
354.0  
368.5  
379.0  
389.0  
394.8  
400.0  
410.0  
428.0  
433.58.506.38
2 Replies
sunny_talwar

Is this what you need

image.png

Brett_Bleess
Former Employee
Former Employee

Mark, did Sunny's post help you get things working as you wished?  If so, please be sure to circle back here and click the Accept as Solution button on his reply to give him credit for the help.  If you used something else, it would be helpful to others to post that and mark that as the solution.  If you still require further assistance, provide an update of where you stand.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.