<?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 Rank Functions and KPI Displays in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rank-Functions-and-KPI-Displays/m-p/1591168#M43406</link>
    <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I've gone through several posts and tried options from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Rank-in-Textbox-as-KPI/m-p/823640" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Rank-in-Textbox-as-KPI/m-p/823640&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Adding-rank-based-on-1-dimension-in-the-script/m-p/1421976" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Adding-rank-based-on-1-dimension-in-the-script/m-p/1421976&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/KPI-objects-returning-a-rank-for-a-specific-dimension-value/td-p/1350322" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/KPI-objects-returning-a-rank-for-a-specific-dimension-value/td-p/1350322&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This last link was Sunny's and it is amazing!&amp;nbsp; But I must be missing something because I couldn't make it work in my situation.&amp;nbsp; He uses:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Only({$&amp;lt;Destination={"Australia"}&amp;gt;}Aggr(Rank(Sum(Selection)), Destination)), &lt;/STRONG&gt;I would need this to aggregate and rank by Product_Style_Code and Season - we're using filters and not specifying either of these fields in the expression.&lt;/P&gt;&lt;P&gt;I've attached a screenshot of the table the data lives in.&amp;nbsp; The user would like the data from the Filtered Rank column expressed in a KPI.&amp;nbsp; The column is an expression:&amp;nbsp;&amp;nbsp;RANK(TOTAL -AVG({$}RATE_THIS_DRESS))&lt;/P&gt;&lt;P&gt;Is there a correct way to use that expression in a KPI?&lt;/P&gt;&lt;P&gt;Right now we're hard coding the KPI box, but I'd like to move away from that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any ideas or suggestions you may have,&lt;/P&gt;&lt;P&gt;Cheryl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:36:24 GMT</pubDate>
    <dc:creator>crichter14</dc:creator>
    <dc:date>2024-11-16T05:36:24Z</dc:date>
    <item>
      <title>Rank Functions and KPI Displays</title>
      <link>https://community.qlik.com/t5/App-Development/Rank-Functions-and-KPI-Displays/m-p/1591168#M43406</link>
      <description>&lt;P&gt;Good morning,&lt;/P&gt;&lt;P&gt;I've gone through several posts and tried options from:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Rank-in-Textbox-as-KPI/m-p/823640" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Rank-in-Textbox-as-KPI/m-p/823640&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Scripting/Adding-rank-based-on-1-dimension-in-the-script/m-p/1421976" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Scripting/Adding-rank-based-on-1-dimension-in-the-script/m-p/1421976&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-Qlik-Sense/KPI-objects-returning-a-rank-for-a-specific-dimension-value/td-p/1350322" target="_blank"&gt;https://community.qlik.com/t5/New-to-Qlik-Sense/KPI-objects-returning-a-rank-for-a-specific-dimension-value/td-p/1350322&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This last link was Sunny's and it is amazing!&amp;nbsp; But I must be missing something because I couldn't make it work in my situation.&amp;nbsp; He uses:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Only({$&amp;lt;Destination={"Australia"}&amp;gt;}Aggr(Rank(Sum(Selection)), Destination)), &lt;/STRONG&gt;I would need this to aggregate and rank by Product_Style_Code and Season - we're using filters and not specifying either of these fields in the expression.&lt;/P&gt;&lt;P&gt;I've attached a screenshot of the table the data lives in.&amp;nbsp; The user would like the data from the Filtered Rank column expressed in a KPI.&amp;nbsp; The column is an expression:&amp;nbsp;&amp;nbsp;RANK(TOTAL -AVG({$}RATE_THIS_DRESS))&lt;/P&gt;&lt;P&gt;Is there a correct way to use that expression in a KPI?&lt;/P&gt;&lt;P&gt;Right now we're hard coding the KPI box, but I'd like to move away from that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any ideas or suggestions you may have,&lt;/P&gt;&lt;P&gt;Cheryl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:36:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rank-Functions-and-KPI-Displays/m-p/1591168#M43406</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2024-11-16T05:36:24Z</dc:date>
    </item>
  </channel>
</rss>

