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: 
luttik
Contributor II
Contributor II

Change / Delta in timeseries with multiple lines.

I have a line-graph depicting a timeline with multiple lines (i.e. in the data menu I have Date as Group, Fase as line, and sum(size) as "height of line"). What I want to have is a graph with the same metrics but the delta of size (i.e. for every day the amount that size has increased/decreased).

For one line this works with sum(size) - above(sum(size)) but for multiple lines above seems to reference the other line (i.e. Fase) instead of the previous date.

 

I hope you can help

1 Solution

Accepted Solutions
luttik
Contributor II
Contributor II
Author

I fixed my own problem this is the statement:

aggr(sum(size) - above(sum(size)), fase, date)

 

For me the issue wat stat the aggregation looks like it should be aggregated by date first and then the fase, but it seems to be the other way around.

View solution in original post

1 Reply
luttik
Contributor II
Contributor II
Author

I fixed my own problem this is the statement:

aggr(sum(size) - above(sum(size)), fase, date)

 

For me the issue wat stat the aggregation looks like it should be aggregated by date first and then the fase, but it seems to be the other way around.