<?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 Aggr within set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448662#M562955</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some plants taking products from factories. Factories have different production slots(buck) for producing products. Now I have to show in a chart&lt;/P&gt;&lt;P&gt;Plant,Factory, product and production value of max buck/slot. &lt;/P&gt;&lt;P&gt;I am using &lt;STRONG&gt;Aggr(Max(buck),Factory,product) &lt;/STRONG&gt;in a set analysis, but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached qvw file that describes the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be highly appreceated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Feb 2013 09:28:28 GMT</pubDate>
    <dc:creator>somenathroy</dc:creator>
    <dc:date>2013-02-19T09:28:28Z</dc:date>
    <item>
      <title>Aggr within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448662#M562955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some plants taking products from factories. Factories have different production slots(buck) for producing products. Now I have to show in a chart&lt;/P&gt;&lt;P&gt;Plant,Factory, product and production value of max buck/slot. &lt;/P&gt;&lt;P&gt;I am using &lt;STRONG&gt;Aggr(Max(buck),Factory,product) &lt;/STRONG&gt;in a set analysis, but it does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the attached qvw file that describes the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be highly appreceated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 09:28:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448662#M562955</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-02-19T09:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448663#M562956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try FirstSortedValue(prod_val,-buck). This will work as long as there's only one maximum buck value per plant-factory-product combination.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Feb 2013 12:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448663#M562956</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-19T12:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448664#M562957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. &lt;/P&gt;&lt;P&gt;In our requirement, each factory can have multiple buck/slots(e.g 1,2,3,4,..,n) for production. Plants take products from Factories. Thus we can say&amp;nbsp; &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;plant-factory-produc&lt;/SPAN&gt;t combination have multiple bucks.&lt;/P&gt;&lt;P&gt;The attached image shows the table structure.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="33727" class="jive-image-thumbnail jive-image" onclick="" alt="table_structure.png" src="https://community.qlik.com/legacyfs/online/33727_table_structure.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;keyprod : factory + product&lt;/P&gt;&lt;P&gt;keyfact : plant + product&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls suggest if you think any better table model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 04:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448664#M562957</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-02-21T04:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448665#M562958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do some calculations in the script to find the max prod_val of the max buck. See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 10:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448665#M562958</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-21T10:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr within set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448666#M562959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your solution. But still I am facing the problem if I have to show : &lt;/P&gt;&lt;P&gt;production(max(buck)) ,&amp;nbsp; production(max(buck) - 1) and production(max(buck) - 2). &lt;/P&gt;&lt;P&gt;Actually in our real scenario script level calculation would not be acceptable as script level max prod_val calculation grouping over lots of dimensions would be very difficult (in terms of time and also expression writting).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2013 11:31:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-within-set-analysis/m-p/448666#M562959</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-02-21T11:31:54Z</dc:date>
    </item>
  </channel>
</rss>

