<?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 Previous week in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Previous-week/m-p/413247#M491518</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone help me with this expression. I want to sum quantity. This quantity is summed for previous week. I can't seem to find the mistake. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;$(=max(Year) - $(=if(max(Week) = 1, 1, 0)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;$(=max(Week) + $(=if(max(Week) = 1, 51, 0)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;}&lt;BR /&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;DateType&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;={'Sales'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Any help is welcome&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Gr. Sandeep&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 13:17:42 GMT</pubDate>
    <dc:creator>shahamel</dc:creator>
    <dc:date>2012-09-17T13:17:42Z</dc:date>
    <item>
      <title>Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-week/m-p/413247#M491518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone help me with this expression. I want to sum quantity. This quantity is summed for previous week. I can't seem to find the mistake. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;$(=max(Year) - $(=if(max(Week) = 1, 1, 0)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Week&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 12pt;"&gt;$(=max(Week) + $(=if(max(Week) = 1, 51, 0)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 12pt;"&gt;}&lt;BR /&gt;&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;DateType&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;={'Sales'}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;Quantity&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Any help is welcome&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Gr. Sandeep&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 13:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-week/m-p/413247#M491518</guid>
      <dc:creator>shahamel</dc:creator>
      <dc:date>2012-09-17T13:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-week/m-p/413248#M491519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Do you have date num field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if so, you can use like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =sum({&amp;lt;DateType={'Sales'}, DateFieldNum = {'$(=Max(DateFieldNum,-7))'}&amp;gt;}Quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 13:25:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-week/m-p/413248#M491519</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-09-17T13:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Previous week</title>
      <link>https://community.qlik.com/t5/QlikView/Previous-week/m-p/413249#M491520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not quite what i was looking for, but you are almost there. I am trying to use your idea &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. If i am succesfull i will let you know. Otherwise i will give the approriate expression if i am able to find it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Gr. Sandeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 14:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Previous-week/m-p/413249#M491520</guid>
      <dc:creator>shahamel</dc:creator>
      <dc:date>2012-09-17T14:20:27Z</dc:date>
    </item>
  </channel>
</rss>

