<?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: Using Rank &amp; Advanced Aggregration in a text box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Rank-Advanced-Aggregration-in-a-text-box/m-p/436857#M162942</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, not sure if you dropped a bit of the expression.&lt;/P&gt;&lt;P&gt;You'll need to aggregate over the Customer_Name as dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(rank(sum({&amp;lt;Customer_Name=&amp;gt;} Sales / (Returns *.025)), Customer_Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 07:42:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-10-22T07:42:59Z</dc:date>
    <item>
      <title>Using Rank &amp; Advanced Aggregration in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-Advanced-Aggregration-in-a-text-box/m-p/436856#M162941</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 am familiar wit the Rank function, and I am also fairly used to the advanced aggregration function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I am now facing issues when trying to put the rank of a selected client into a list box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have customers and sales. I want a textbox to return the rank of a selected customer according to a specific metric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The two approaches are what I have attempted so far:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style=": ; font-size: 1;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;= &lt;/P&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;rank&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;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Customer_Name&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;Sales / (Returns *.025)))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;However the above is not returning the correct result. &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;I am passing the customer name into the set analysis because I want the rank to be evaluated for the full set of customers, not just the selected one (however I need to rank of the selected customer).&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;Any help most appreciated.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 07:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-Advanced-Aggregration-in-a-text-box/m-p/436856#M162941</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-22T07:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank &amp; Advanced Aggregration in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-Advanced-Aggregration-in-a-text-box/m-p/436857#M162942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, not sure if you dropped a bit of the expression.&lt;/P&gt;&lt;P&gt;You'll need to aggregate over the Customer_Name as dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(rank(sum({&amp;lt;Customer_Name=&amp;gt;} Sales / (Returns *.025)), Customer_Name)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 07:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-Advanced-Aggregration-in-a-text-box/m-p/436857#M162942</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-22T07:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Rank &amp; Advanced Aggregration in a text box</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Rank-Advanced-Aggregration-in-a-text-box/m-p/436858#M162943</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 hope i understand your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Listbox with Customer_Name. On the tab formula create &lt;/P&gt;&lt;P&gt;rank( sum ( {1} Sales / (Return *.025))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The listbox show the customernames. The rank function use now always all data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 11:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Rank-Advanced-Aggregration-in-a-text-box/m-p/436858#M162943</guid>
      <dc:creator />
      <dc:date>2012-10-22T11:57:35Z</dc:date>
    </item>
  </channel>
</rss>

