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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Plotting consecutive sum values in chart

CategoryDate

Value

A01-Oct-2016

2

A02-Oct-20163
A03-Oct-20161
A04-Oct-2016

5

A05-Oct-20164

The above sample data should be plotted in a Line Chart in way values sum up for each day. More like a Fibonacci series.

This should be my resultant table data

CategoryDate

Value

NewValue

A01-Oct-2016

2

2
A02-Oct-201635
A03-Oct-201616
A04-Oct-2016

5

11
A05-Oct-2016415

Is there a way to do this? Solutions for both at the script level or front end level (Using Expressions) would do the need.

Labels (1)
4 Replies
lakshmikandh
Specialist II
Specialist II

Anil_Babu_Samineni
MVP
MVP

Perhaps this

Capture.PNG

Using Straight Table

Take Dimension --> Category, Date

Expressions are

1) Sum(Value)

2) Rangesum(Below(Sum(Value),0),Above(Value,1,4))


And Second Expression, If you have more Category, Dates then for safety you can give Value like below


Rangesum(Below(Sum(Value),0),Above(Value,1,1000))


For Ref, PFA

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar
MVP
MVP

How long does accumulation restarts at the end of the month of end of the year? I am guessing it does restart for each category, right?

MarcoWedel
MVP
MVP

Hi,

one front end solution could be the chart-in-built accumulation option:

QlikCommunity_Thread_235879_Pic1.JPG

QlikCommunity_Thread_235879_Pic3.JPG

QlikCommunity_Thread_235879_Pic2.JPG

hope this helps

regards

Marco