<?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: Sequential Rolling Weekly Growth over Last Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899625#M470688</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I think you should do is create an AsOf table with records that relate a week with the same week a year ago. The script below is just an example. I don't know how you handle the 365th and 4-yearly 366th day. Perhaps it's easier to generate an AsOf table in Excel and load it from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qualify *;&lt;/P&gt;&lt;P&gt;UnQualify wk_cnt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AsOf:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fiscal_yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prd_of_year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_of_prd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_of_yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_cnt as AsOf.wk_cnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_cnt - 52 as wk_cnt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'YearAgo' as ReportPeriod&lt;/P&gt;&lt;P&gt;RESIDENT Master;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(AsOf)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fiscal_yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prd_of_year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_of_prd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_of_yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_cnt as AsOf.wk_cnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_cnt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Current' as ReportPeriod&lt;/P&gt;&lt;P&gt;RESIDENT Master;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UnQualify * ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use a period field from the AsOf table as dimension and expressions like:&lt;/P&gt;&lt;P&gt;Current week: sum({&amp;lt;ReportPeriod ={'Current'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;Same week a year ago: sum({&amp;lt;ReportPeriod ={'YearAgo'}&amp;gt;}Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 16:36:23 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-05-08T16:36:23Z</dc:date>
    <item>
      <title>Sequential Rolling Weekly Growth over Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899622#M470685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create a year over year Growth calculation, but I keep having Nulls returned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have 13 periods in a year, so we can't use a standard calender to get year over year information.&amp;nbsp; In order to do Rolling charts, we have sequential weeks, periods, days, etc as part of the calender table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I can't get the Aggr function to return the Previous years weekly data on the same Records in the chart using the sequential columns. I can use the Aggr function to return prior year data within the same record when I am not using our the sequential column.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I've also tried using the Concat, but I just not sure if I am using it right. Can anyone point me to the correct Function or syntax to get this to work.&amp;nbsp; I have attached the QVW with a chart showing my null results when I am just trying to get the difference b/w the two years data.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 20:10:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899622#M470685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-07T20:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential Rolling Weekly Growth over Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899623#M470686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this document helps: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-4252" style="font-size: 13px; 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;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 09:24:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899623#M470686</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-08T09:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential Rolling Weekly Growth over Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899624#M470687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the response.&amp;nbsp; That document shows me how to calculate sequential rows within a table, I did review it prior creating this thread.&amp;nbsp; It is very informative, but I it isn't exactly what I am trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to accomplish is to calculate growth from one year to the next for specific matching weeks of the fiscal year.&amp;nbsp; Since we use a non traditional calender, the only way to show the last 12 weeks when there is a change in year is to have Sequential numbering of Weeks, Periods, Days, etc.&amp;nbsp;&amp;nbsp; Meaning when live the chart will be able to show the last 12 weeks even when the new year begins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in essence I need to show in my chart 12 weeks of data. But that data doesn't accumulate rows of data it is only showing me the results of the calculations.&amp;nbsp; I want to be able to compare Period 4 week 2 of 2014 to Period 4 week 2 of 2015 and so on.&amp;nbsp; If this happened to be the beginning of the fiscal year, I would be able to see Period 12 week 1 of 2014 through Period 1 week 4 of the 2015 which I could compare to Period 12 week 1 of 2013 through Period 1 week 4 of 2014.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 15:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899624#M470687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-08T15:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential Rolling Weekly Growth over Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899625#M470688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I think you should do is create an AsOf table with records that relate a week with the same week a year ago. The script below is just an example. I don't know how you handle the 365th and 4-yearly 366th day. Perhaps it's easier to generate an AsOf table in Excel and load it from that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qualify *;&lt;/P&gt;&lt;P&gt;UnQualify wk_cnt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AsOf:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fiscal_yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prd_of_year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_of_prd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_of_yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_cnt as AsOf.wk_cnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_cnt - 52 as wk_cnt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'YearAgo' as ReportPeriod&lt;/P&gt;&lt;P&gt;RESIDENT Master;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(AsOf)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fiscal_yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; prd_of_year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_of_prd,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_of_yr,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_cnt as AsOf.wk_cnt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wk_cnt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Current' as ReportPeriod&lt;/P&gt;&lt;P&gt;RESIDENT Master;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UnQualify * ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can then use a period field from the AsOf table as dimension and expressions like:&lt;/P&gt;&lt;P&gt;Current week: sum({&amp;lt;ReportPeriod ={'Current'}&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;Same week a year ago: sum({&amp;lt;ReportPeriod ={'YearAgo'}&amp;gt;}Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 16:36:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899625#M470688</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-05-08T16:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential Rolling Weekly Growth over Last Year</title>
      <link>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899626#M470689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks I will try to manufacture the AsOf table solution on Monday.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for how we handle the Extra day, every so many years Pizza Hut solves this by adding a 5th week to the 13th period.&amp;nbsp; Which of course will throw a monkey wrench into the works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 21:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sequential-Rolling-Weekly-Growth-over-Last-Year/m-p/899626#M470689</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-08T21:47:13Z</dc:date>
    </item>
  </channel>
</rss>

