Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Skip the ticket, Chat with Qlik Support instead for instant assistance.
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate Target Rate Based on Previous Year\Record


I have a table with a Year field and Avg Amount field. I need to create a field that will Calculate A Target Amount based on the previous Year Avg.  For example, my data starts with Year 2012 and My Avg(Amount) is 40, Since there no previous record there is no target rate.  However for the next Year -2013, my Avg(Amount) is 45, my target rate is to be with in 90% of 2012 Amount average, which would be 36 (Or not to diminish more than 10% following year).

The table below hopefully puts thing into perspective.

201240Null (since its first Year) or could be 40
20134536  (40  * 0.9)
20145040.5  (45 * 0.9)
20154545 (50 * 0.9)
20163740.5  (45 * 0.9)

Please help.

Thank you,

1 Solution

Accepted Solutions

May be like this

Above(Avg(Amount)) * 0.90

View solution in original post

2 Replies

May be like this

Above(Avg(Amount)) * 0.90

Not applicable

I also found that


also works.

Thank you