Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
mario-sarkis
Creator II
Creator II

Cumilative evolution

hey all,

if i want to show a line chart that shows a cumilative amount evolution by month-year

ex: jan-2016     5000

      Feb-2016.   4000

need to show on a line chart :

jan-2016.  5000

feb-2016.  9000

hope you can help

thank you

7 Replies
Chanty4u
MVP
MVP

hi,

rangesum(above(sum({$< yearmonth={'value'}>}filed),0,rowno()))

Chanty4u
MVP
MVP

or else

Select Full Accumulation in the expressions tab of the chart!

mario-sarkis
Creator II
Creator II
Author

‌is this work for the whole year ? since as i can see i have to put the value of yearmonth

?

sunny_talwar

Would you be accumulating it for just the year and then on January the accumulation resets? Is that your goal?

mario-sarkis
Creator II
Creator II
Author

‌hi sunny yes exactly is this possible? But i can still see it aa cumulative in the previous year?

sunny_talwar

I think this is possible, let me see if I can get a sample for you.

sunny_talwar

Something like this?

Capture.PNG

Sample Script used:

Table:

LOAD Date,

  Month(Date) as Month,

  Num(Month(Date)) as MonthNum,

  Year(Date) as Year,

  MonthName(Date) as MonthYear,

  Sales;

LOAD Date(MakeDate(2009, 12, 31) + RecNo()) as Date,

  Ceil(Rand() * 100) * 10 as Sales

AutoGenerate Today() - MakeDate(2009, 12, 31);

Expression: =RangeSum(Above(Sum(Sales), 0, MonthNum))

Dimension: MonthYear