<?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: Previous YearWeek of the current date in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-YearWeek-of-the-current-date-in-script/m-p/1012374#M343390</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your issue correctly, the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;weekstart(Timekey, -1) should do the trick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2015 22:06:18 GMT</pubDate>
    <dc:creator>vlad_komarov</dc:creator>
    <dc:date>2015-11-17T22:06:18Z</dc:date>
    <item>
      <title>Previous YearWeek of the current date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-YearWeek-of-the-current-date-in-script/m-p/1012373#M343389</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 am trying to filter data to fetch only records from the previous year week of the current date. Till now I managed to do it hard coded at following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WeekYear(Timekey) &amp;amp; right('00' &amp;amp; week(weekstart(Timekey)),2) = '201544'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to swap '201544' to a function that return the previous yearweek of the current date without hardcoding the value. I cannot find anything regarding how this can be done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 09:27:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-YearWeek-of-the-current-date-in-script/m-p/1012373#M343389</guid>
      <dc:creator />
      <dc:date>2015-11-03T09:27:32Z</dc:date>
    </item>
    <item>
      <title>Re: Previous YearWeek of the current date in script</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-YearWeek-of-the-current-date-in-script/m-p/1012374#M343390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand your issue correctly, the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;weekstart(Timekey, -1) should do the trick.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2015 22:06:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-YearWeek-of-the-current-date-in-script/m-p/1012374#M343390</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2015-11-17T22:06:18Z</dc:date>
    </item>
  </channel>
</rss>

