Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Remco
Contributor III
Contributor III

Find increment in log table per row

Hi all,

I have this nicely working, the logaritmic trend based on actual values. The trend is calculated as following:

(linest_m(total <COUNTRYCODE, FUELTYPE> aggr(SUM(AVGPERF * NUMUNITS) / SUM(NUMUNITS),COUNTRYCODE, FUELTYPE, STEP),log(STEP)) * Log(STEP))
+ linest_b(total <COUNTRYCODE, FUELTYPE> aggr(SUM(AVGPERF * NUMUNITS) / SUM(NUMUNITS),COUNTRYCODE, FUELTYPE, STEP),log(STEP))

 

Remco_0-1670344624779.png

Where STEP is related to the year. But now I am searching for the yearly increment of the trend, see screenshot as example, what I need is the output as in column 'Increment'.

It must be in the expression, not in the load statement. In Excel it is just taking the value from a year minus the value of the previous year. I can easily get the cumulative increment but I need the yearly increment. Any idea how to get this?

Thanks!

Labels (1)
1 Reply
Mario_De_Felipe
Luminary
Luminary

Try: RangeSum([Trend],-above[Trend])