Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
kylealpaugh
Contributor
Contributor

Avg of row above

I have a chart where i need to get the Mont to date avg I have the following expression

Rangeavg(Above(Sum({<Year={$(vCurYear)}>}$(vAmountField(Billing Net Value))), 0, RowNo()))/1000

This works but some of the days in the month like weekends have no sales and i only want to calcuate days that have sales.

kylealpaugh_1-1596116358166.png

I would like to show the second line in the avg per day column to be 2017 and not count rows that are 0.

 

Thanks

 

3 Replies
sunny_talwar

2017? How did you come up with that number from?

kylealpaugh
Contributor
Contributor
Author

miss typed meant to be 207

sunny_talwar

May be this

RangeAvg(Above(

If(Sum({<Year = {$(vCurYear)}>} $(vAmountField(Billing Net Value))) > 0, Sum({<Year = {$(vCurYear)}>} $(vAmountField(Billing Net Value))))

, 0, RowNo()))/1000