<?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: sales if statement based on variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/sales-if-statement-based-on-variable/m-p/536135#M479969</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'm not sure, maybe something like this?&lt;/P&gt;&lt;P&gt;sum(if([Year Week]&amp;gt;=&lt;/P&gt;&lt;P&gt;weekyear(today()-(7 * $(OrderVeckor)))&amp;amp;num(week(today()-(7 * $(OrderVeckor))),00)&lt;/P&gt;&lt;P&gt;,[Order Quantity],0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you calculate this value, script or expression?&lt;/P&gt;&lt;P&gt;If you could attach the qvw, it is better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 16:03:27 GMT</pubDate>
    <dc:creator>bbi_mba_76</dc:creator>
    <dc:date>2013-12-30T16:03:27Z</dc:date>
    <item>
      <title>sales if statement based on variable</title>
      <link>https://community.qlik.com/t5/QlikView/sales-if-statement-based-on-variable/m-p/536134#M479968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i have the following statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if([Year Week]=weekyear(today()-7)&amp;amp;num(week(today()-((7 * $(OrderVeckor))&lt;/P&gt;&lt;P&gt;)),00),[Order Quantity],0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(OrderVeckor) = 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;201346 - 201401&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wish to calculate the Orderquantity for the last 7 weeks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my statement however is wrongly formulated, any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 15:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-if-statement-based-on-variable/m-p/536134#M479968</guid>
      <dc:creator />
      <dc:date>2013-12-30T15:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: sales if statement based on variable</title>
      <link>https://community.qlik.com/t5/QlikView/sales-if-statement-based-on-variable/m-p/536135#M479969</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'm not sure, maybe something like this?&lt;/P&gt;&lt;P&gt;sum(if([Year Week]&amp;gt;=&lt;/P&gt;&lt;P&gt;weekyear(today()-(7 * $(OrderVeckor)))&amp;amp;num(week(today()-(7 * $(OrderVeckor))),00)&lt;/P&gt;&lt;P&gt;,[Order Quantity],0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where are you calculate this value, script or expression?&lt;/P&gt;&lt;P&gt;If you could attach the qvw, it is better&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 16:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/sales-if-statement-based-on-variable/m-p/536135#M479969</guid>
      <dc:creator>bbi_mba_76</dc:creator>
      <dc:date>2013-12-30T16:03:27Z</dc:date>
    </item>
  </channel>
</rss>

