<?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: Week vs. Previous Week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471572#M487055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works perfectly! Many thanks Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Feb 2013 15:13:53 GMT</pubDate>
    <dc:creator>danielle_v</dc:creator>
    <dc:date>2013-02-26T15:13:53Z</dc:date>
    <item>
      <title>Week vs. Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471566#M487049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm putting together a report where I need to look at the selected week/year and be able to compare this to the previous week, the week before that etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment, I have 2 calendar objects - one for year and one for week. The user will select the year and the week in order to view the results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine, apart from over the start of a new year. If I select week 1 2013 for example, I would want the previous week expression to show week 52 2012. However thsi does not seem to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried creating a week-year filed in my script, but can';t seem to get anything to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471566#M487049</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2013-02-26T12:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Week vs. Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471567#M487050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a serial week field with this:&lt;/P&gt;&lt;P&gt;AutoNumber(weekyear(Date) &amp;amp;'|' &amp;amp; week(Date) as WeekSerial&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:09:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471567#M487050</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-26T12:09:12Z</dc:date>
    </item>
    <item>
      <title>Re: Week vs. Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471568#M487051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you please post set analysis for previous week?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 12:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471568#M487051</guid>
      <dc:creator>azimabadi</dc:creator>
      <dc:date>2013-02-26T12:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Week vs. Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471569#M487052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert - I have just tried this and I get numbers rather that week/years - for example week 10 2013 is showing in my list box as 394. Is it possible to show these as week/years in the list box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Peyman - The set analysis will be something like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ceil(sum({$&amp;lt;Cal_WeekYear = {Cal_WeekYear - 1}&amp;gt;} SalesValue))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if I selected week 10 2013 in my calendar, I would want the above expression to show the sum of SalesValue for week 9 2013. (if I had selected week 1 2013 in my calendar, I would want the expression for previous week to show the sum of SalesValue for week 52 2012).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 13:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471569#M487052</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2013-02-26T13:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Week vs. Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471570#M487053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Danielle,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to use the serial weeknumber field in the set analysis expressions and week and year fields for making the selections. sum({&amp;lt;Cal_WeekYear=, Cal_Year=, WeekSerial={$(=max(WeekSerial)-1)}&amp;gt;} SalesValue) will return the right result when you select week 1 in 2013, i.e. the sales of the last week of 2012.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 13:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471570#M487053</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-26T13:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Week vs. Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471571#M487054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how looks Cal_WeekYear like? is it something like "201301" or "2013-01" for first week of 2013?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471571#M487054</guid>
      <dc:creator>azimabadi</dc:creator>
      <dc:date>2013-02-26T15:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Week vs. Previous Week</title>
      <link>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471572#M487055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works perfectly! Many thanks Gysbert!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2013 15:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Week-vs-Previous-Week/m-p/471572#M487055</guid>
      <dc:creator>danielle_v</dc:creator>
      <dc:date>2013-02-26T15:13:53Z</dc:date>
    </item>
  </channel>
</rss>

