Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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))