Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Average Closing Stock

Hi Team,

I have a formula which will gives me closing stock till max date.

For example i need to calculate Average closing stock  for 100 days. My formula will gives me the stock on 100th days. Is there any way to calculate Day1 closing stock+day2 Closing stock+day 3 closing stock.....till 100th day.

Thanks in advance.

Regards,

Sadasiva

1 Reply
mbrdenmark
Contributor III
Contributor III

Hi Sada

Depending on your datastructure, you should take a look into the RangeAvg function in combination with Above().

RangeAvg ‒ QlikView

See the "example with expression" part in the above link.

So if you have a daily dimension, you should be able to use the following.

RangeAvg (Above(MyField,0,100))