<?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 Performers; Set Analysis and Aggr Question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726815#M260537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use below alternative...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=1"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=2"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=3"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=4"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=5"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or uses below in case of same SUM(Values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=1"}&amp;gt;} Name) &lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=2"}&amp;gt;} Name)&amp;nbsp; &lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=3"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=4"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=5"}&amp;gt;} Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 15:35:39 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-07-07T15:35:39Z</dc:date>
    <item>
      <title>Top Performers; Set Analysis and Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726814#M260536</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;BR /&gt;Question if I may, I'm using this expression to generate text boxes which have actions to select in field.&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;=aggr(if(rank( sum( [Value]),3)=1,Name),Name) &lt;/P&gt;&lt;P&gt; &lt;BR /&gt;I have 5 boxes for the 5 best performers for value. It works fine, I click the text box which makes a 'Select in Field' for Name.&lt;/P&gt;&lt;P&gt;Once there the ranking doesn't work for anything higher than 1 because the data is filtered.&lt;/P&gt;&lt;P&gt;I've tried a looking at various combinations of set analysis to remove the Name field selection so the boxes stay intact:&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;=aggr(if(rank( sum( {&amp;lt;Name=&amp;gt;} [Value]),3)=1,Name),Name) &lt;/P&gt;&lt;P&gt;or even &lt;/P&gt;&lt;P&gt;=aggr(if(rank( sum( {1} [Value]),3)=1,Name),Name) &lt;/P&gt;&lt;P&gt; &lt;BR /&gt;I've also tried putting the whole lot in an only() with Section access and tried applying TOTAL to the functions that I can. I can't for the life of me understand why I can't remove the [Name] selection .&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Can anyonehelp?&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Richard&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;See Post: &lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-5187"&gt;http://community.qlik.com/docs/DOC-5187&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 15:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726814#M260536</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-07-07T15:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Top Performers; Set Analysis and Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726815#M260537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use below alternative...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=1"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=2"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=3"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=4"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value))=5"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or uses below in case of same SUM(Values)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=1"}&amp;gt;} Name) &lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=2"}&amp;gt;} Name)&amp;nbsp; &lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=3"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=4"}&amp;gt;} Name)&lt;/P&gt;&lt;P&gt;Only({1&amp;lt;Name={"=Rank(SUM({1}Value),4)=5"}&amp;gt;} Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 15:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726815#M260537</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-07-07T15:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Top Performers; Set Analysis and Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726816#M260538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manich. I used your suggestion and modified to&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Rank(sum({&amp;lt;Name=&amp;gt;}[Value]),4)=1"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Rank(sum({&amp;lt;Name=&amp;gt;}[Value]),4)=2"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Rank(sum({&amp;lt;Name=&amp;gt;}[Value]),4)=3"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Rank(sum({&amp;lt;Name=&amp;gt;}[Value]),4)=4"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Only&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"=Rank(sum({&amp;lt;Name=&amp;gt;}[Value]),4)=5"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to ensure when Name was selected it was disregarded in the expression but other selections were possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks for your prompt reply&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 07:50:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726816#M260538</guid>
      <dc:creator>richard_pearce6</dc:creator>
      <dc:date>2014-07-08T07:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Top Performers; Set Analysis and Aggr Question</title>
      <link>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726817#M260539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi I'm struggling with identifying a top performer and don't seem to be able to make it work.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm using the current statement to identify the total count of NPS surveys:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Count({$&amp;lt;Period_seq={$(=max(Period_seq))},Department = {'CE'}&amp;gt;} NPS)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to identify which Agent has the highest score - with the result being the name of the Agent.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2017 09:52:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-Performers-Set-Analysis-and-Aggr-Question/m-p/726817#M260539</guid>
      <dc:creator />
      <dc:date>2017-02-10T09:52:27Z</dc:date>
    </item>
  </channel>
</rss>

