Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

r_sam-sin
New Contributor

Cumulative Calculations per year

Hi Guys,


I want to make the following calculation in Qlik. Do you recommend to do this in the script or front end?

(Value_T + Value_T-1)/2/12*multiplier_T


This calculation has to be done when ID and client in Period T and T-1 are equal. And if there is no comparable combination in the previous period the Value has to be set at 0.


Question.PNG

Next,

I want that the calculation restarts every year. Therefor I am using the following formula:

Sum(Aggr(

Rangesum(Above((Sum(Value) + Above(Sum(Value)))/2/12*Multiplier,0,rowno())),

Date, (Date Month, (Numeric, Ascending))))

Thanks in advance

1 Reply
MVP
MVP

Re: Cumulative Calculations per year

One option is to use The As-Of Table