<?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 To Display Rank of a product in KPI in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/To-Display-Rank-of-a-product-in-KPI/m-p/1992220#M82101</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a table with Country, products, sales% of Products and Rank of each product based on sales and country.&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 208pt;" border="0" width="276" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="69" height="19" class="xl63" style="height: 14.5pt; width: 52pt;"&gt;Country&lt;/TD&gt;
&lt;TD width="69" class="xl63" style="border-left: none; width: 52pt;"&gt;Product&lt;/TD&gt;
&lt;TD width="69" class="xl63" style="border-left: none; width: 52pt;"&gt;Sales %&lt;/TD&gt;
&lt;TD width="69" class="xl63" style="border-left: none; width: 52pt;"&gt;Rank&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;XX&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;ABC&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0.60%&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;34&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;YY&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EFG&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0.40%&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;49&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;ZZ&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;HIJ&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0.30%&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;54&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to display the Rank of particular Product "EFG" in a KPI. I am using the same formula in KPI as used in table. But I always get Rank value as 1 in KPI (I think it is comparing against the same product hence 1). I want to display the actual Rank which is 49 in KPI as in the table.&lt;/P&gt;
&lt;P&gt;I am calculating the Sales% as :&lt;/P&gt;
&lt;P&gt;vSales = num(SUM({$&amp;lt;[MonthYear] = {'$(vCurrentMonth)'}, Product &amp;gt;} $(=[Sales]))&lt;BR /&gt;/&lt;BR /&gt;SUM(TOTAL {$&amp;lt;[MonthYear] = {'$(vCurrentMonth)'}, Product &amp;gt;} $(=[Sales])),'0,0000%')&lt;/P&gt;
&lt;P&gt;I am calculating the Rank as :&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RANK = Aggr(Rank($(vSales),4,1),Country,Product)&lt;/P&gt;
&lt;P&gt;Any suggestions on this.&lt;/P&gt;
&lt;P&gt;Thanks in Advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 10:11:03 GMT</pubDate>
    <dc:creator>Rosh_2893</dc:creator>
    <dc:date>2022-10-13T10:11:03Z</dc:date>
    <item>
      <title>To Display Rank of a product in KPI</title>
      <link>https://community.qlik.com/t5/App-Development/To-Display-Rank-of-a-product-in-KPI/m-p/1992220#M82101</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have a table with Country, products, sales% of Products and Rank of each product based on sales and country.&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 208pt;" border="0" width="276" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="69" height="19" class="xl63" style="height: 14.5pt; width: 52pt;"&gt;Country&lt;/TD&gt;
&lt;TD width="69" class="xl63" style="border-left: none; width: 52pt;"&gt;Product&lt;/TD&gt;
&lt;TD width="69" class="xl63" style="border-left: none; width: 52pt;"&gt;Sales %&lt;/TD&gt;
&lt;TD width="69" class="xl63" style="border-left: none; width: 52pt;"&gt;Rank&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;XX&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;ABC&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0.60%&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;34&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;YY&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;EFG&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0.40%&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;49&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD height="19" class="xl63" style="height: 14.5pt; border-top: none;"&gt;ZZ&lt;/TD&gt;
&lt;TD class="xl63" style="border-top: none; border-left: none;"&gt;HIJ&lt;/TD&gt;
&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;0.30%&lt;/TD&gt;
&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;54&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to display the Rank of particular Product "EFG" in a KPI. I am using the same formula in KPI as used in table. But I always get Rank value as 1 in KPI (I think it is comparing against the same product hence 1). I want to display the actual Rank which is 49 in KPI as in the table.&lt;/P&gt;
&lt;P&gt;I am calculating the Sales% as :&lt;/P&gt;
&lt;P&gt;vSales = num(SUM({$&amp;lt;[MonthYear] = {'$(vCurrentMonth)'}, Product &amp;gt;} $(=[Sales]))&lt;BR /&gt;/&lt;BR /&gt;SUM(TOTAL {$&amp;lt;[MonthYear] = {'$(vCurrentMonth)'}, Product &amp;gt;} $(=[Sales])),'0,0000%')&lt;/P&gt;
&lt;P&gt;I am calculating the Rank as :&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RANK = Aggr(Rank($(vSales),4,1),Country,Product)&lt;/P&gt;
&lt;P&gt;Any suggestions on this.&lt;/P&gt;
&lt;P&gt;Thanks in Advance&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 10:11:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/To-Display-Rank-of-a-product-in-KPI/m-p/1992220#M82101</guid>
      <dc:creator>Rosh_2893</dc:creator>
      <dc:date>2022-10-13T10:11:03Z</dc:date>
    </item>
  </channel>
</rss>

