<?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: Finding two min values within the aggr class. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296885#M828606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want this logic in script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Jun 2017 16:56:02 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2017-06-29T16:56:02Z</dc:date>
    <item>
      <title>Finding two min values within the aggr class.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296884#M828604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Hi All,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question: Below is the input table having following 3 fields.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168388_pastedImage_1.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I have to show min sum value, aggregated based on the Class field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="" class="jive-image image-4" src="https://community.qlik.com/legacyfs/online/168499_pastedImage_3.png" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;From the Class which is giving min sum value, i have to find out two min values showing the country name along with the value.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I had worked on the Straight table and achieved to get the following result.However it is also showing the values for other class also.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;IMG alt="" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/168434_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Later, I tried to implement it on text box which is showing the class name having min sum values .However it is showing value from other class also.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/168435_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;I want to show following result. &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt;"&gt;Please guide me how do we achieve this.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/168506_pastedImage_8.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296884#M828604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding two min values within the aggr class.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296885#M828606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want this logic in script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 16:56:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296885#M828606</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-29T16:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Finding two min values within the aggr class.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296886#M828607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about v222??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296886#M828607</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-29T17:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Finding two min values within the aggr class.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296887#M828609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(Class,aggr(sum(Value),Class)) &amp;amp; chr(10) &amp;amp;&lt;/P&gt;&lt;P&gt;min({&amp;lt;Class={"$(=FirstSortedValue(Class,aggr(sum(Value),Class)))"}&amp;gt;}Value) &amp;amp; ' ' &amp;amp;&lt;/P&gt;&lt;P&gt;FirstSortedValue(Country, aggr(min({&amp;lt;Class={"$(=FirstSortedValue(Class,aggr(sum(Value),Class)))"}&amp;gt;}Value) ,Class,Country))&amp;amp; chr(10) &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(aggr(min({&amp;lt;Class={"$(=FirstSortedValue(Class,aggr(sum(Value),Class)))"}&amp;gt;}Value),Class,Country) ,&lt;/P&gt;&lt;P&gt;aggr(min({&amp;lt;Class={"$(=FirstSortedValue(Class,aggr(sum(Value),Class)))"}&amp;gt;}Value),Class,Country),2) &amp;amp; ' ' &amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue(Country,aggr(min({&amp;lt;Class={"$(=FirstSortedValue(Class,aggr(sum(Value),Class)))"}&amp;gt;}Value),Class,Country),2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/168609_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Jun 2017 17:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296887#M828609</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-29T17:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Finding two min values within the aggr class.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296888#M828611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@kushal chawda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the solution. Its working as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 05:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296888#M828611</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-30T05:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: Finding two min values within the aggr class.</title>
      <link>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296889#M828613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad to help &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jun 2017 09:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Finding-two-min-values-within-the-aggr-class/m-p/1296889#M828613</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-06-30T09:01:48Z</dc:date>
    </item>
  </channel>
</rss>

