<?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 Function Addweeks() ??? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144841#M23648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to get the corresponding day 52 weeks ago, so if I have a Tuesday I need to get the corresponding Tuesday 52 weeks ago ...&lt;/P&gt;&lt;P&gt;Since there is no method addweeks(DATE, -52), how is the best way to solve this issue?&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;&amp;amp; thanks in advance&lt;BR /&gt;&lt;BR /&gt;Stefan WALTHER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 May 2009 13:10:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-25T13:10:32Z</dc:date>
    <item>
      <title>Function Addweeks() ???</title>
      <link>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144841#M23648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to get the corresponding day 52 weeks ago, so if I have a Tuesday I need to get the corresponding Tuesday 52 weeks ago ...&lt;/P&gt;&lt;P&gt;Since there is no method addweeks(DATE, -52), how is the best way to solve this issue?&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;&amp;amp; thanks in advance&lt;BR /&gt;&lt;BR /&gt;Stefan WALTHER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 13:10:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144841#M23648</guid>
      <dc:creator />
      <dc:date>2009-05-25T13:10:32Z</dc:date>
    </item>
    <item>
      <title>Function Addweeks() ???</title>
      <link>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144842#M23649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;Date(YourDate - (52*7)) as SameDayLastYear&lt;/CODE&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 15:33:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144842#M23649</guid>
      <dc:creator />
      <dc:date>2009-05-25T15:33:41Z</dc:date>
    </item>
    <item>
      <title>Function Addweeks() ???</title>
      <link>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144843#M23650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obviously there is no need for AddWeek function because a week is always exactly 7 days...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 21:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144843#M23650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-25T21:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Function Addweeks() ???</title>
      <link>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144844#M23651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can also add Day# in Year to your master calendar, obviously this will vary on leap years but works great.&amp;nbsp; I also add Business Day# in Year and you can even exclude business holidays&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2014 17:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/144844#M23651</guid>
      <dc:creator />
      <dc:date>2014-03-16T17:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Function Addweeks() ???</title>
      <link>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/2101952#M1224337</link>
      <description>&lt;P&gt;Hi There.&lt;/P&gt;
&lt;P&gt;The solution is to employ the 'AddMonths' Function(&lt;SPAN class="script_token"&gt;AddMonths(&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;startdate&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;n&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;[ , mode]&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt;) in your specific case.&lt;/P&gt;
&lt;P&gt;I.e. You are trying this...&amp;nbsp; &amp;gt;&amp;gt;&amp;nbsp; &amp;nbsp;&lt;SPAN&gt;addweeks(DATE, -52)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="script_token"&gt;Rather try this... &amp;gt;&amp;gt;&amp;nbsp;AddMonths(&lt;SPAN&gt;DATE&lt;/SPAN&gt;&lt;SPAN&gt;, -12&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:27:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Function-Addweeks/m-p/2101952#M1224337</guid>
      <dc:creator>DeanoC</dc:creator>
      <dc:date>2023-08-03T08:27:59Z</dc:date>
    </item>
  </channel>
</rss>

