<?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: Aggr + Set Analysis in Product's Stock Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-in-Product-s-Stock-Calculation/m-p/731331#M474354</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;- put a set analysis in the expression STORE=:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(nodistinct max({&amp;lt;STORE=&amp;gt;} TOTAL STOCK), CATEGORY, STORE, PRICE RANGE) + Aggr(nodistinct InputSum({&amp;lt;STORE=&amp;gt;} SEND), CATEGORY, STORE, PRICE RANGE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Sep 2014 12:39:39 GMT</pubDate>
    <dc:creator>yvesqlik</dc:creator>
    <dc:date>2014-09-18T12:39:39Z</dc:date>
    <item>
      <title>Aggr + Set Analysis in Product's Stock Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-in-Product-s-Stock-Calculation/m-p/731330#M474353</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 working on a report wich should show stock information.&lt;/P&gt;&lt;P&gt;It contains Information about &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;Stores, Price Range, and a Grouping attribute based on the product category.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;The idea is that you can input how many units of a Product you need to send to a Store.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;One of the aggregations i'm trying to calculates is the total of products Aggregated by Category, Store and PriceRange.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The problem is that it only works properly when I select a Store. When there are no Selections, it doesn't show the right numbers.&lt;/P&gt;&lt;P&gt;I'm using the next expression (as I need it to repeat the aggregated stock values in every row):&lt;/P&gt;&lt;P&gt;aggr(nodistinct max(TOTAL STOCK), CATEGORY, STORE, PRICE RANGE) + Aggr(nodistinct InputSum(SEND), CATEGORY, STORE, PRICE RANGE).&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Agustín.-&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 12:29:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-in-Product-s-Stock-Calculation/m-p/731330#M474353</guid>
      <dc:creator />
      <dc:date>2014-09-18T12:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr + Set Analysis in Product's Stock Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-in-Product-s-Stock-Calculation/m-p/731331#M474354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;- put a set analysis in the expression STORE=:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(nodistinct max({&amp;lt;STORE=&amp;gt;} TOTAL STOCK), CATEGORY, STORE, PRICE RANGE) + Aggr(nodistinct InputSum({&amp;lt;STORE=&amp;gt;} SEND), CATEGORY, STORE, PRICE RANGE)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Sep 2014 12:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Set-Analysis-in-Product-s-Stock-Calculation/m-p/731331#M474354</guid>
      <dc:creator>yvesqlik</dc:creator>
      <dc:date>2014-09-18T12:39:39Z</dc:date>
    </item>
  </channel>
</rss>

