<?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: Rank in Textbox as KPI in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823645#M666715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QL has shown you how to do this. Replace &lt;STRONG&gt;&lt;EM&gt;&amp;lt;Product={'B'}&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt; with your product information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Dec 2014 15:56:14 GMT</pubDate>
    <dc:creator>ThornOfCrowns</dc:creator>
    <dc:date>2014-12-12T15:56:14Z</dc:date>
    <item>
      <title>Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823640#M666704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Afternoon all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to use the Rank function in a textbox as a KPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. without the dimension - just as an expression. i only want to display the rank of a single product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example i have 20 products with sales volume. i want to display in a text box the rank that one particular product is at. I've got this working fine in a chart with a dimension - but i have no idea how to script this as a single expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so as a chart this works perfectly:&lt;/P&gt;&lt;P&gt;Dimension: Products&lt;/P&gt;&lt;P&gt;Expression: =rank(sum(Sales_Volume))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but how do i go about writing the expression to take into account the dimension?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 15:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823640#M666704</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-12-12T15:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823641#M666706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;=aggr(if(rank(sum(Sales))=1,Product),Product)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; 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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Neetha&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 15:37:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823641#M666706</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-12T15:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823642#M666708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks but that displays the number 1 product.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display the rank for a particular product which i'll hardcode into the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 15:43:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823642#M666708</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-12-12T15:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823643#M666710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In your case, you'll need to select the product you want to display. if you always need to see the rank for a particular product, then you need to place the product in the expression using set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P&gt;aggr(rank(TOTAL sum({1 &amp;lt;Product = {'B'}&amp;gt;} Sales)), Product)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find the solution in the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 15:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823643#M666710</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-12-12T15:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823644#M666712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks QL - works great. any tips on how i would hard code a particular product into the set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 15:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823644#M666712</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-12-12T15:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823645#M666715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QL has shown you how to do this. Replace &lt;STRONG&gt;&lt;EM&gt;&amp;lt;Product={'B'}&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt; with your product information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 15:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823645#M666715</guid>
      <dc:creator>ThornOfCrowns</dc:creator>
      <dc:date>2014-12-12T15:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823646#M666716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for this very useful post&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2014 15:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823646#M666716</guid>
      <dc:creator />
      <dc:date>2014-12-12T15:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823647#M666718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks James-&amp;nbsp; missed that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;never do anything tricky on a Friday &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, 12 Dec 2014 16:03:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/823647#M666718</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2014-12-12T16:03:46Z</dc:date>
    </item>
    <item>
      <title>Re: Rank in Textbox as KPI</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/1643866#M666719</link>
      <description>&lt;P&gt;Hi JV,&lt;/P&gt;&lt;P&gt;Thanks for the solution but its not working for me. I loaded your Test.qvw in my Qlik Sense Desktop.&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Product&lt;/TD&gt;&lt;TD&gt;Sum(Sales)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;180&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All expressions are giving me '1'&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;aggr(rank(TOTAL sum({1 &amp;lt;Product = {'A'}&amp;gt;} Sales)), Product) returns '1' (Expected '2')&lt;BR /&gt;aggr(rank(TOTAL sum({1 &amp;lt;Product = {'B'}&amp;gt;} Sales)), Product) returns '1'&amp;nbsp; (Expected '1')&lt;BR /&gt;aggr(rank(TOTAL sum({1 &amp;lt;Product = {'C'}&amp;gt;} Sales)), Product) returns '1' (Expected '4')&lt;BR /&gt;aggr(rank(TOTAL sum({1 &amp;lt;Product = {'D'}&amp;gt;} Sales)), Product) returns '1' (Expected '3')&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I doing something wrong? Your help is appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank You!&lt;BR /&gt;VS&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 16:01:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-in-Textbox-as-KPI/m-p/1643866#M666719</guid>
      <dc:creator>Vimarsh</dc:creator>
      <dc:date>2019-11-06T16:01:13Z</dc:date>
    </item>
  </channel>
</rss>

