<?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: Year on Year Pct Change Timeseries Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Pct-Change-Timeseries-Chart/m-p/541007#M202206</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis calculates on set per chart, not a set per row. What you need to do is change the data model so each date is linked with the date a year earlier. This can be done with an AsOf table. See this document for some examples: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;. As I said in your case you want to relate each date with the same date a year earlier. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to use the addyears function instead of subtracting 365 since that can trip you up with leap years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2013 17:09:28 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-12-06T17:09:28Z</dc:date>
    <item>
      <title>Year on Year Pct Change Timeseries Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Pct-Change-Timeseries-Chart/m-p/541006#M202205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set of time series data for exports. I want to create a line chart which shows year on year % change as a time series. This will ideally be % change on a daily basis. So the timeseries will show today vs 1 year ago, then yesterday vs a year ago yesterday and so on as a time series so we can see how the YoY% changes over time. I guess I need to use some sort of set analysis. The formula will be:&lt;/P&gt;&lt;P&gt;(Exports / Exports 1 year ago) - 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis I am using for exports 1 year ago is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DayIndex&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=max(DayIndex)-365)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DepartedPeriod&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; = &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Exports&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This gives me one datapoint for one year ago from my latest datapoint which even then doesn't look right. I have created day and week indices. I would be happy with year on year on a weekly basis on a daily basis does not work.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 16:48:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-on-Year-Pct-Change-Timeseries-Chart/m-p/541006#M202205</guid>
      <dc:creator />
      <dc:date>2013-12-06T16:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Year on Year Pct Change Timeseries Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Year-on-Year-Pct-Change-Timeseries-Chart/m-p/541007#M202206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Set analysis calculates on set per chart, not a set per row. What you need to do is change the data model so each date is linked with the date a year earlier. This can be done with an AsOf table. See this document for some examples: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3778c7;"&gt;Calculating rolling n-period totals, averages or other aggregations&lt;/A&gt;. As I said in your case you want to relate each date with the same date a year earlier. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might want to use the addyears function instead of subtracting 365 since that can trip you up with leap years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 17:09:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-on-Year-Pct-Change-Timeseries-Chart/m-p/541007#M202206</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-06T17:09:28Z</dc:date>
    </item>
  </channel>
</rss>

