<?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 AVG last 2 weeks IF current week is 0 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/AVG-last-2-weeks-IF-current-week-is-0/m-p/194648#M55465</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;I am trying to get the average of last 2 WW if the current WW is empty.&lt;/P&gt;&lt;P&gt;My code currently only return the current WW if have value&lt;/P&gt;&lt;P&gt;If(sum({$&amp;lt;[Oper Code]={'800.20'}&amp;gt;}[Qty Out])&amp;gt;0, sum({$&amp;lt;[Oper Code]={'800.20'}&amp;gt;}[Qty Out]) / sum({$&amp;lt;[Oper Code]={'800.20'}&amp;gt;}[Qty In]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3433_sourceID:3433" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jan 2011 18:33:47 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-31T18:33:47Z</dc:date>
    <item>
      <title>AVG last 2 weeks IF current week is 0</title>
      <link>https://community.qlik.com/t5/QlikView/AVG-last-2-weeks-IF-current-week-is-0/m-p/194648#M55465</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;I am trying to get the average of last 2 WW if the current WW is empty.&lt;/P&gt;&lt;P&gt;My code currently only return the current WW if have value&lt;/P&gt;&lt;P&gt;If(sum({$&amp;lt;[Oper Code]={'800.20'}&amp;gt;}[Qty Out])&amp;gt;0, sum({$&amp;lt;[Oper Code]={'800.20'}&amp;gt;}[Qty Out]) / sum({$&amp;lt;[Oper Code]={'800.20'}&amp;gt;}[Qty In]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-3433_sourceID:3433" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 18:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/AVG-last-2-weeks-IF-current-week-is-0/m-p/194648#M55465</guid>
      <dc:creator />
      <dc:date>2011-01-31T18:33:47Z</dc:date>
    </item>
  </channel>
</rss>

