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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
inigoelv
Creator
Creator

COMPARE WITH MAX PREVIOUS 3 YEARS

Hello:

I am interested to know THE EXPRESSION to calcul the Maximun value of the last three years.

I have the folowing table:

Product200020012002200320042006
A200900150400500300
B23567456378234789

I would like to know the % of every year comparing the maximun value of the last 3 years.

In the example:

2002:

A=150/900

B=456/567

2006:

A=300/500

B=789/456

Thanks in advance

1 Solution

Accepted Solutions
Not applicable

You have to use the following expression: Sum(Value) / RangeMax(Before(Sum(Value), 1, 3))

Attached you have an example.

JG

View solution in original post

1 Reply
Not applicable

You have to use the following expression: Sum(Value) / RangeMax(Before(Sum(Value), 1, 3))

Attached you have an example.

JG