<?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: Two level of aggregation: Require help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290091#M516925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Mar 2017 09:10:26 GMT</pubDate>
    <dc:creator>rahulpawarb</dc:creator>
    <dc:date>2017-03-03T09:10:26Z</dc:date>
    <item>
      <title>Two level of aggregation: Require help</title>
      <link>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290086#M516920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I need to get Top 5 OtherBrandOwned and for those 5 top brands what are the Top 1 OtherModelOwned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data something like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154939" alt="Image1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154939_Image1.JPG" style="height: 193px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154952" alt="Image4.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/154952_Image4.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154949" alt="Image3.JPG" class="jive-image image-2" height="44" src="https://community.qlik.com/legacyfs/online/154949_Image3.JPG" style="height: 43.5px; width: 870px;" width="870" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;A3 Purchased - 3903&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am using text boxes to calculate these as we also need ratio of each value by Car Purchased -&amp;nbsp; A3/A4/A6 etc.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I am able to get Top 5 &lt;SPAN style="font-size: 13.3333px;"&gt;OtherBrandOwned &lt;/SPAN&gt;by using Rank() with Aggr() as shown above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I am unable to get Top 1 Models for each of these Brands correctly.&lt;/P&gt;&lt;P&gt;For 4th Brand - Hyundai, I am getting model as 'Innova' which is incorrect.It should be Hyundai and Verna.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;F&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;or 5th Brand - Maruti, &lt;SPAN style="font-size: 13.3333px;"&gt; I am getting model as&lt;/SPAN&gt; 'Verna' &lt;SPAN style="font-size: 13.3333px;"&gt;which is incorrect.It should be &lt;SPAN style="font-size: 13.3333px;"&gt;Maruti&lt;/SPAN&gt;&lt;/SPAN&gt; and Swift.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to customize the expression to get correct values for top 1 model. Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Nidhi Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 05:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290086#M516920</guid>
      <dc:creator />
      <dc:date>2017-03-02T05:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Two level of aggregation: Require help</title>
      <link>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290087#M516921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nidhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please share the application with sample data? This will help us to provide you required inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 05:12:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290087#M516921</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-03-02T05:12:02Z</dc:date>
    </item>
    <item>
      <title>Re: Two level of aggregation: Require help</title>
      <link>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290088#M516922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attaching sample qv file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 06:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290088#M516922</guid>
      <dc:creator />
      <dc:date>2017-03-02T06:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Two level of aggregation: Require help</title>
      <link>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290089#M516923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nidhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for sharing the application with sample data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To fix this issue I have created variables to hold VehicleBrandName at various levels considering VehicleModelName and used those variables in the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer updated application file attached herewith.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 10:36:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290089#M516923</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-03-02T10:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Two level of aggregation: Require help</title>
      <link>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290090#M516924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;It was a challenge for me to put aggr() inside an aggr() function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Your solution is spot on !! &lt;SPAN style="font-size: 10pt;"&gt;Thanks &lt;/SPAN&gt;&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, 03 Mar 2017 08:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290090#M516924</guid>
      <dc:creator />
      <dc:date>2017-03-03T08:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Two level of aggregation: Require help</title>
      <link>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290091#M516925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 09:10:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-level-of-aggregation-Require-help/m-p/1290091#M516925</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-03-03T09:10:26Z</dc:date>
    </item>
  </channel>
</rss>

