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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How Can I calculate percentage Change in Graph?

Hi community, 

I have a line graph with values of a field on various dates.  How can I calculate the percentage change on the dates from the previous date instead?  The dates are the month.  Example:  I have a value of 500 for the stock in march and 600 in april.  I want the percentage change of 600-500/500 or 20% for April in the line graph rather than 600.

Any ideas?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try something like

=sum(Stock)/above(sum(Stock)) -1

i.e. reference the expression value in the context of the previous dimension value using above() function.

View solution in original post

1 Reply
swuehl
MVP
MVP

Try something like

=sum(Stock)/above(sum(Stock)) -1

i.e. reference the expression value in the context of the previous dimension value using above() function.