Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

how to compair values

Hi, very new to qlik!

I'm looking for the way to compair values between two years.

I have a table with the area of parcels in 2006 and 2016 and I want to know how much the sum of the area for each zone has changed

area

areazoneparcelyear
20xa2016
30xa2006
60yb2016
40yb2006
10xc2016
10xc2006

Could you tell me how to write the function to get " sum(area zone x 2016)- sum (area zone x 2006) " per parcel. and to be able to use this as a mesurement  (if that is the right translation)

Thank you so much, i feel if I get this i'll be able to do so much more and I'm having a hard time finding it in the help recources.

1 Solution

Accepted Solutions
beck_bakytbek
Master
Master

Hi Marloes,

try this:

Sum({<Year ={'2016'}, Zone = {"x"}>}Area) - Sum({<Year ={'2006'}, Zone = {"x"}>}Area)

beck

View solution in original post

4 Replies
beck_bakytbek
Master
Master

Hi Marloes,

try this:

Sum({<Year ={'2016'}, Zone = {"x"}>}Area) - Sum({<Year ={'2006'}, Zone = {"x"}>}Area)

beck

OmarBenSalem

Beck's answer is correct.

You can also check this thread in which I tried to explain set analysis in an easy way:

YTD, MTD issue

Anonymous
Not applicable
Author

hi, I was too fast with saying it was the right answer, wel it was the right answer for my question but I now realise that I want to have the 'zone' to be a variable.

In such a way that i can use it as a variable to give my kml file nice colours.

am I making sense?

Anonymous
Not applicable
Author

found it, just had to delete the Zone = {"x"} from the formulla.

thanks you thank you!!