<?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 Inventory count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inventory-count/m-p/856513#M999612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm running into something I just can't wrap my head around how to get it to work. What I am building (or at least trying to) is a chart with shops who have done their inventory counts. Unfortunately each shop has a different number of past inventories. What I want to create is a chart with the most recent count for each shop per item counted. so something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item 1]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item 2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item 3]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [etc]&lt;/P&gt;&lt;P&gt;Shop 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;Shop 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop 1 might have max(inventory_number)=24&lt;/P&gt;&lt;P&gt;Shop 2 might have max(inventory_number)=46&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each item I want to show the result of the lastest count. I was thinking of adding an expression (max(inventory_number)) and then using that expression in a set analysis, but that returned only 1 shop to me, the one with the highest inventory_number, not a result per shop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone get me on the way to solving this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 14:24:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-09T14:24:20Z</dc:date>
    <item>
      <title>Inventory count</title>
      <link>https://community.qlik.com/t5/QlikView/Inventory-count/m-p/856513#M999612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi! I'm running into something I just can't wrap my head around how to get it to work. What I am building (or at least trying to) is a chart with shops who have done their inventory counts. Unfortunately each shop has a different number of past inventories. What I want to create is a chart with the most recent count for each shop per item counted. so something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item 1]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item 2]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Item 3]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [etc]&lt;/P&gt;&lt;P&gt;Shop 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;Shop 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shop 1 might have max(inventory_number)=24&lt;/P&gt;&lt;P&gt;Shop 2 might have max(inventory_number)=46&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each item I want to show the result of the lastest count. I was thinking of adding an expression (max(inventory_number)) and then using that expression in a set analysis, but that returned only 1 shop to me, the one with the highest inventory_number, not a result per shop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone get me on the way to solving this?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 14:24:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inventory-count/m-p/856513#M999612</guid>
      <dc:creator />
      <dc:date>2015-06-09T14:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Inventory count</title>
      <link>https://community.qlik.com/t5/QlikView/Inventory-count/m-p/856514#M999613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gregoor, set analisys is calculated before the table, so it won't work row by row. Maybe using Aggr() does the trick:&lt;/P&gt;&lt;P&gt;Aggr(If(inventory_number=max(inventory_number), ItemCountField), ShopField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or:&lt;/P&gt;&lt;P&gt;Aggr(If(inventory_number=max(inventory_number), ItemCountField), ShopField, ItemField)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If ItemCountField has more than one value for a shop-item-inventory_number, you'll need to encolse Aggr() and/or ItemCountField in an aggretion function like Sum(), Avg()...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 14:30:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inventory-count/m-p/856514#M999613</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-09T14:30:02Z</dc:date>
    </item>
  </channel>
</rss>

