<?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: TOP 10 values in descending order in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/TOP-10-values-in-descending-order/m-p/1792407#M62004</link>
    <description>&lt;P&gt;Thanks a lot! Will try this&lt;/P&gt;</description>
    <pubDate>Thu, 18 Mar 2021 04:46:02 GMT</pubDate>
    <dc:creator>aditi_haldule</dc:creator>
    <dc:date>2021-03-18T04:46:02Z</dc:date>
    <item>
      <title>TOP 10 values in descending order</title>
      <link>https://community.qlik.com/t5/App-Development/TOP-10-values-in-descending-order/m-p/1792062#M61958</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;I want to show a table showing top 10 account names with respect to the revenue generated by them.&lt;/P&gt;&lt;P&gt;so currently I'm showing a few columns in the table as- account name, revenue, region,etc.&lt;/P&gt;&lt;P&gt;I want to show only top 10 rows that generate the max revenue from these that too in the descending order. how do i do that?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 06:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TOP-10-values-in-descending-order/m-p/1792062#M61958</guid>
      <dc:creator>aditi_haldule</dc:creator>
      <dc:date>2021-03-17T06:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 values in descending order</title>
      <link>https://community.qlik.com/t5/App-Development/TOP-10-values-in-descending-order/m-p/1792248#M61990</link>
      <description>&lt;P&gt;You can create calculated dimension using Aggr() and Rank() functions to get top N revenue generating accounts.&lt;/P&gt;&lt;P&gt;Refer to this code template and disable "Include Null values" option&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Aggr(
	if(Rank(Total &amp;lt;Measure&amp;gt;) &amp;lt;= &amp;lt;Top n&amp;gt; , &amp;lt;Filter DIM&amp;gt;
    )
    ,&amp;lt;All DIM List&amp;gt;
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below are few examples for some real world scenarios&lt;/P&gt;&lt;P&gt;Simple case:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="php"&gt;Aggr(
	if(Rank(Total Sum([Total Sale Amount])) &amp;lt;=10 ,Customer
    )
    ,Customer, Region
)
&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Rank Simple.PNG" style="width: 939px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51333i9320BDBA5EE221A5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rank Simple.PNG" alt="Rank Simple.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Duplicate case:&lt;/P&gt;&lt;LI-CODE lang="php"&gt;=
Aggr(
	if(Rank(Total Sum([Total Sale Amount])) &amp;lt;=10 ,Customer
    )
    ,Customer, Region ,SalesRepresentative
)
&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Rank duplicate.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/51332iF189296FCCCFE137/image-size/large?v=v2&amp;amp;px=999" role="button" title="Rank duplicate.PNG" alt="Rank duplicate.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Mar 2021 15:40:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TOP-10-values-in-descending-order/m-p/1792248#M61990</guid>
      <dc:creator>PradeepK</dc:creator>
      <dc:date>2021-03-17T15:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: TOP 10 values in descending order</title>
      <link>https://community.qlik.com/t5/App-Development/TOP-10-values-in-descending-order/m-p/1792407#M62004</link>
      <description>&lt;P&gt;Thanks a lot! Will try this&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 04:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/TOP-10-values-in-descending-order/m-p/1792407#M62004</guid>
      <dc:creator>aditi_haldule</dc:creator>
      <dc:date>2021-03-18T04:46:02Z</dc:date>
    </item>
  </channel>
</rss>

