<?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: Aggregation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416698#M485066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will only give me the count of variants each week.&lt;/P&gt;&lt;P&gt;What I need is the count of variants that have 0 stock, but belong to a product that DOES have stock (in other variants)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 May 2013 12:08:47 GMT</pubDate>
    <dc:creator>johnso2080</dc:creator>
    <dc:date>2013-05-01T12:08:47Z</dc:date>
    <item>
      <title>Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416696#M485064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get a count of how many product variants are out of stock on a given week.&lt;/P&gt;&lt;P&gt;However, I only want to include variants that belong to a product that DOES have stock (in other variants) in the same week...&lt;/P&gt;&lt;P&gt;An example table would be..&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="40160" class="jive-image" height="294" alt="tbl.JPG" src="https://community.qlik.com/legacyfs/online/40160_tbl.JPG" width="220" /&gt;&lt;/P&gt;&lt;P&gt;I would expect the results to be..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="40161" class="jive-image-thumbnail jive-image" onclick="" alt="result.JPG" src="https://community.qlik.com/legacyfs/online/40161_result.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Hope this makes sense. Any advice would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 11:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416696#M485064</guid>
      <dc:creator>johnso2080</dc:creator>
      <dc:date>2013-05-01T11:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416697#M485065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;DIMENSION--&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;week&lt;/P&gt;&lt;P&gt;=IF(product='A' OR product='C' OR product='E',product)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;stock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE-- SELECT THE SECOND DIMENSION AND CHECK ON SUPRESS NULL VALUE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPRESSION--&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;if(stock=0, count(varient))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then output like this&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="505"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;week&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;PRODUCT&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;stock&lt;/TD&gt;&lt;TD class="xl65" width="211"&gt;varient&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;A&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;C&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;E&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEE ATTACHEMENT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 11:32:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416697#M485065</guid>
      <dc:creator />
      <dc:date>2013-05-01T11:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416698#M485066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will only give me the count of variants each week.&lt;/P&gt;&lt;P&gt;What I need is the count of variants that have 0 stock, but belong to a product that DOES have stock (in other variants)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is clear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 12:08:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416698#M485066</guid>
      <dc:creator>johnso2080</dc:creator>
      <dc:date>2013-05-01T12:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416699#M485067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;Aggr(count({$&amp;lt;Stock={'0'}&amp;gt;}Variant),Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(Count( {$&amp;lt;Stock = E({$&amp;lt;Stock={'0'}&amp;gt;})&amp;gt;}Product),Product)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 12:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416699#M485067</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-05-01T12:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416700#M485068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's getting close, but not quite worked how I wanted. I've attached the example. It gives me 2 in week 1, but this should be 3...? Any ideas..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 May 2013 13:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggregation/m-p/416700#M485068</guid>
      <dc:creator>johnso2080</dc:creator>
      <dc:date>2013-05-01T13:26:10Z</dc:date>
    </item>
  </channel>
</rss>

