<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to calculate the evolution of a given week over same week of the previous year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003250#M969302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see the attached file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Sep 2015 10:51:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-23T10:51:05Z</dc:date>
    <item>
      <title>How to calculate the evolution of a given week over same week of the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003248#M969300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I worked with qlikview some years ago but I'm stuck with the calculation of evolution calculation&lt;/P&gt;&lt;P&gt;I m working with week at the following format: YYYY/WW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prepared the following sample (which is a simplified example of the dataset I use everyday:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="560"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="80"&gt;DATE_S&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Week&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Year&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Week_N&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Perimeter&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="80"&gt;Volume&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="80"&gt;TO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2014/10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;FR&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3253&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-left: none;"&gt;3643,36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2014/11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;FR&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2535&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2839,2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2014/12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;FR&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2253&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2523,36&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2015/10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;FR&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3487&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3905,44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2015/11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;FR&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2769&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3101,28&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2015/12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;62&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;FR&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2487&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2785,44&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2014/10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;8&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EN&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3577&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4006,24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2014/11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;9&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EN&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2859&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3202,08&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2014/12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EN&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2577&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2886,24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2015/10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EN&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3811&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;4268,32&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2015/11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;11&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;61&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EN&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3093&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3464,16&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" style="border-top: none;"&gt;2015/12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;12&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2015&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;62&lt;/TD&gt;&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EN&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;2811&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;3148,32&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I want to calculate and plot the evolution of Volume or TO vs previous year&lt;/P&gt;&lt;P&gt;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)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my chart X axis is DATE_S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here below, the formulas I tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(Volume) / Sum({$ &amp;lt;Year ={$(=Year-1)}&amp;gt; } Volume)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=sum(Volume) / Sum({$ &amp;lt;Year ={$(=vYearM1)}&amp;gt; } Volume) where vYearM1 = Year -1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the same with Week_N - 52 .. but it doesn't work anymore, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks all for your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 21:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003248#M969300</guid>
      <dc:creator />
      <dc:date>2015-09-22T21:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the evolution of a given week over same week of the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003249#M969301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 09:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003249#M969301</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-23T09:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the evolution of a given week over same week of the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003250#M969302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't see the attached file ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 10:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003250#M969302</guid>
      <dc:creator />
      <dc:date>2015-09-23T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the evolution of a given week over same week of the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003251#M969303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="comm181878.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99803_comm181878.png" style="height: 365px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Try again. If you still can't see it we'll mention the issue to the administrators.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 10:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003251#M969303</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-09-23T10:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the evolution of a given week over same week of the previous year</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003252#M969304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2015 12:06:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-calculate-the-evolution-of-a-given-week-over-same-week-of/m-p/1003252#M969304</guid>
      <dc:creator />
      <dc:date>2015-09-23T12:06:29Z</dc:date>
    </item>
  </channel>
</rss>

