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

How to calculate the evolution of a given week over same week of the previous year

Hello all

I worked with qlikview some years ago but I'm stuck with the calculation of evolution calculation

I m working with week at the following format: YYYY/WW

I prepared the following sample (which is a simplified example of the dataset I use everyday:

DATE_SWeekYearWeek_NPerimeterVolumeTO
2014/101020148FR32533643,36
2014/111120149FR25352839,2
2014/1212201410FR22532523,36
2015/1010201560FR34873905,44
2015/1111201561FR27693101,28
2015/1212201562FR24872785,44
2014/101020148EN35774006,24
2014/111120149EN28593202,08
2014/1212201410EN25772886,24
2015/1010201560EN38114268,32
2015/1111201561EN30933464,16
2015/1212201562EN28113148,32

My problem is that I want to calculate and plot the evolution of Volume or TO vs previous year

I tried using a set analysis with variable Year = Year-1 or Week_N = Week_N - 52 (Week_N, is used to number the week from 2012)

In my chart X axis is DATE_S

Here below, the formulas I tried:

=sum(Volume) / Sum({$ <Year ={$(=Year-1)}> } Volume)

or

=sum(Volume) / Sum({$ <Year ={$(=vYearM1)}> } Volume) where vYearM1 = Year -1

I tried the same with Week_N - 52 .. but it doesn't work anymore,

Thanks all for your help

Jonathan

1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached example.


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

See attached example.


talk is cheap, supply exceeds demand
Not applicable
Author

I can't see the attached file ?

Gysbert_Wassenaar

I can:

comm181878.png

Try again. If you still can't see it we'll mention the issue to the administrators.


talk is cheap, supply exceeds demand
Not applicable
Author

it's ok, I was just in my notification where I can read the answer but where I con't see Attached file. Thank you! I will look at it.