<?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: Re: Nested aggregation/set analysis difficulty... in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515246#M1126903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. The formula works. However I am facing a new problem. When I apply the formula in the pivot table:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( if (RATE&amp;lt;= &lt;STRONG style="color: #ff0000;"&gt;aggr(Min(OLD_RATE),Material&lt;/STRONG&gt;),Material))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp; Count (Material)&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;the highlighted portion of the formula returns a single value (that is minimum value) of price for the material from table B (which is correct).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However when that same material is supplied by more than 1 vendor, that is entry for that material is coming twice in table A, then the minimum value is displayed/considered only once and for every further occurrence for that material a null is displayed/returned. In such cases the formula does not work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/50779_pastedImage_1.png" style="width: 620px; height: 219px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me to solve this issue...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2013 07:52:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-23T07:52:34Z</dc:date>
    <item>
      <title>Nested aggregation/set analysis difficulty...</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515244#M1126901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables:&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;Table A:&lt;/STRONG&gt;&lt;SPAN style="color: #575757;"&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;&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;&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; &lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;and&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;&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;&amp;nbsp;&amp;nbsp; &lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;Table B:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/50768_pastedImage_15.png" style="width: 620px; height: 628px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Table A is linked to Table B through 'Material'.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I have to calculate the individual rating of vendors in Table A:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;For individual Vendor, Rating = Count( if (RATE&amp;lt;=Min(OLD_RATE)),Material)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count (Material)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Since the formula requires nested aggregation, the pivot table throws the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I have to calculate this rating for all the vendors &lt;STRONG style="color: #ff0000;"&gt;only in front end (no reload is possible)&lt;/STRONG&gt;, as the entries in above 2 tables are selected through "date" filter entered by the user. (No input for vendor or material is made).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;I tried my had at set analysis but could not find a solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;Please provide the solution.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2013 13:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515244#M1126901</guid>
      <dc:creator />
      <dc:date>2013-12-21T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation/set analysis difficulty...</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515245#M1126902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Maybe this:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( if (RATE&amp;lt;= aggr(Min(OLD_RATE),Material)),Material)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count (Material)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Dec 2013 15:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515245#M1126902</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-21T15:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Nested aggregation/set analysis difficulty...</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515246#M1126903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much. The formula works. However I am facing a new problem. When I apply the formula in the pivot table:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( if (RATE&amp;lt;= &lt;STRONG style="color: #ff0000;"&gt;aggr(Min(OLD_RATE),Material&lt;/STRONG&gt;),Material))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp; Count (Material)&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;the highlighted portion of the formula returns a single value (that is minimum value) of price for the material from table B (which is correct).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;However when that same material is supplied by more than 1 vendor, that is entry for that material is coming twice in table A, then the minimum value is displayed/considered only once and for every further occurrence for that material a null is displayed/returned. In such cases the formula does not work.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;IMG alt="" class="jiveImage" src="https://community.qlik.com/legacyfs/online/50779_pastedImage_1.png" style="width: 620px; height: 219px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me to solve this issue...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 07:52:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515246#M1126903</guid>
      <dc:creator />
      <dc:date>2013-12-23T07:52:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Nested aggregation/set analysis difficulty...</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515247#M1126904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with NODISTINCT keyword, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Count( if (RATE&amp;lt;= &lt;STRONG style="color: #ff0000;"&gt;aggr( &lt;SPAN style="color: #ff00ff;"&gt;NODISTINCT&lt;/SPAN&gt; Min(OLD_RATE),Material&lt;/STRONG&gt;),Material))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&amp;nbsp;&amp;nbsp;&amp;nbsp; Count (Material)&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;nbsp;&amp;nbsp;&amp;nbsp; 100&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 08:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515247#M1126904</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-23T08:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Nested aggregation/set analysis difficulty...</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515248#M1126905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I absolutely love this community. For newbies in Qlikview like me, it is the ultimate source...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You guys Rock.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 08:47:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-aggregation-set-analysis-difficulty/m-p/515248#M1126905</guid>
      <dc:creator />
      <dc:date>2013-12-23T08:47:24Z</dc:date>
    </item>
  </channel>
</rss>

