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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Saravanan024
Contributor II
Contributor II

Cumulative Trend - Line chart

I’m using below expression in line chart to show year on year trend line.  Where as the January data for the current year is including sums from previous years, 

Dimension – Month & Year

Measure - Aggr(RangeSum(Above(sum(Quantity_Consumed), 0, RowNo(total))),Year,Month)

Required assistance in modifying the above expression. 

Labels (2)
2 Replies
Saravanan024
Contributor II
Contributor II
Author

Appreciate your assistance - Thanks 

stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @Saravanan024 

I tend not to use the RangeSum function, as you don't get full control. Instead I build an accumulated dimension into the load script. In your case you would have a table that links January to itself, February to itself and January etc.

This blog post talks about this technique, you will need to adapt it to your scenario though:

https://www.quickintelligence.co.uk/qlikview-accumulate-values/

Hope that helps,

Steve