<?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: subtract weeks in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/subtract-weeks/m-p/1891794#M73484</link>
    <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Week(WeekName(yourmaxdate,-12))&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 05:16:11 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2022-02-11T05:16:11Z</dc:date>
    <item>
      <title>subtract weeks</title>
      <link>https://community.qlik.com/t5/App-Development/subtract-weeks/m-p/1891758#M73481</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi all, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have the following problem: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I need to subtract weeks, and I would like to know if it is possible.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;For example, I have loaded a qvd of transactions, where I do a max(date).&lt;BR /&gt;Then, with the peek function, obtain a variable with the maximum date.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then I load another QVD, where I do a max(week) and I do a where date = variable created previously.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So I have a variable with the maximum week of the qvd loaded.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I do all this because I need to bring information from 12 weeks back from the maximum week.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So my idea is to subtract 12 weeks back.&amp;nbsp;But I can't get to week 47 (currently the maximum week is 7).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I don't know if someone could help me with this problem or maybe you have another better idea to do this.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 00:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/subtract-weeks/m-p/1891758#M73481</guid>
      <dc:creator>ArielNF93</dc:creator>
      <dc:date>2022-02-11T00:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: subtract weeks</title>
      <link>https://community.qlik.com/t5/App-Development/subtract-weeks/m-p/1891794#M73484</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Week(WeekName(yourmaxdate,-12))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 05:16:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/subtract-weeks/m-p/1891794#M73484</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2022-02-11T05:16:11Z</dc:date>
    </item>
  </channel>
</rss>

