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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create new column cumulated

Hi to all, anybody knows how to create a new cumulated column ?

I tried to explain I have day stock and I want to create a new column that is the total stock as algebric sum

DateDay Stock
TOTAL StockHow to calulate
01/01/201011
02/01/201023= today stock + prevous stock
03/01/201036= today stock + prevous stock
04/01/2010410= today stock + prevous stock
05/01/2010-19= today stock + prevous stock

If I select 4/1/2010 I want to see day stock = 4 Total Stock = 10

Thanks
Andrea

1 Reply
Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

Andrea,

if you want to perform this calculation in the load script look at functions "PEEK" and "PREVIOUS".

If you want to perform this in a chart, look at the "Accumulation" option for Chart Expressions, or at functions "Above" and "Before"

Ask me about Qlik Sense Expert Class!