<?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 How to show highest total as KPI? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606718#M1117581</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;I have Students as dimension and their marks total as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Students&lt;/P&gt;&lt;P&gt;expression: Sum(Marks)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need to show the KPI of which student has highest total. Please let me know is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used below. Is this correct expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Total&amp;gt;0,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Feb 2014 12:58:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-19T12:58:59Z</dc:date>
    <item>
      <title>How to show highest total as KPI?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606718#M1117581</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;I have Students as dimension and their marks total as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: Students&lt;/P&gt;&lt;P&gt;expression: Sum(Marks)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would need to show the KPI of which student has highest total. Please let me know is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used below. Is this correct expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Total&amp;gt;0,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 12:58:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606718#M1117581</guid>
      <dc:creator />
      <dc:date>2014-02-19T12:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to show highest total as KPI?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606719#M1117582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please upload your sample file ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606719#M1117582</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-19T13:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to show highest total as KPI?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606720#M1117583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606720#M1117583</guid>
      <dc:creator />
      <dc:date>2014-02-19T13:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to show highest total as KPI?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606721#M1117584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your KPI expressions as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Rank(Aggr(SUM(Marks),Student))= 1,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:15:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606721#M1117584</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-02-19T13:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to show highest total as KPI?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606722#M1117585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amelia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To return the maximum total marks by student, within the table you could use the expression&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;max(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Marks&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Student&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I've wrapped the sum(Marks) in an Aggr function by student, using the total to work it out across the whole table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Putting this expression in an if statement and comparing with their marks would enable you to mark out the student with the greatest mark:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if( &lt;/SPAN&gt;max&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;total&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Marks&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Student&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;nbsp; = sum(Marks),'Highest Student','Not highest student')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Erica&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:15:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606722#M1117585</guid>
      <dc:creator />
      <dc:date>2014-02-19T13:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to show highest total as KPI?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606723#M1117586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amelia,&lt;/P&gt;&lt;P&gt;here is my Suggestion for your expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Rank(Sum(Marks)) = 1 ,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_g.png','qmem://&amp;lt;bundled&amp;gt;/BuiltIn/led_r.png')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606723#M1117586</guid>
      <dc:creator />
      <dc:date>2014-02-19T13:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to show highest total as KPI?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606724#M1117587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks and that's right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2014 13:26:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-highest-total-as-KPI/m-p/606724#M1117587</guid>
      <dc:creator />
      <dc:date>2014-02-19T13:26:15Z</dc:date>
    </item>
  </channel>
</rss>

