Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nevilledhamsiri
Specialist
Specialist

Running average needs to be specific for each Branch code

 

Hi Guys,

Could you please guide me to fix the running average (Net claims) for each BR Code separately. In other words after seven months the total row should carry the average total &  for the next Branch it should start again from the Jan figure of the said Branch etc.

Thanks

Neville 

1 Solution

Accepted Solutions
sunny_talwar

This

Sum(Aggr(
	RangeAvg(
		Above(
			Sum({<DESCRIPTION = {'NET CLAIM'}>} MONTH_ACT)
		, 0, RowNo())
	)
, BR_CODE, TRN_MONTH))

View solution in original post

4 Replies
sunny_talwar

Try this

RangeAvg(
	Above(
		Sum({<DESCRIPTION = {'NET CLAIM'}>} MONTH_ACT)
	, 0, RowNo())
)
nevilledhamsiri
Specialist
Specialist
Author

Thanks sunny, That is fine. Also will you suggest how I get the total row arranged in total average. Right now it is in blank. If Aggr to bring in how the string to be arranged. Eg  AS Total should be Rs 3,003,852

Thanks

sunny_talwar

This

Sum(Aggr(
	RangeAvg(
		Above(
			Sum({<DESCRIPTION = {'NET CLAIM'}>} MONTH_ACT)
		, 0, RowNo())
	)
, BR_CODE, TRN_MONTH))
nevilledhamsiri
Specialist
Specialist
Author

Thank you very much. It provided what I looked forward to

Neville