<?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 Populate field based on rank expression in Qlik Learning Discussions</title>
    <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Populate-field-based-on-rank-expression/m-p/780780#M2052</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking to set the value of one field based on the output of a rank expression. For example, if I have total sales by sales person, and I rank those sales from highest to lowest, I want to populate a field (SalesLevel) based on that ranking. The top three would be "Gold Level", the next seven would be "Silver Level", the next 10 would be "Bronze Level"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2015 18:23:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-02-10T18:23:09Z</dc:date>
    <item>
      <title>Populate field based on rank expression</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Populate-field-based-on-rank-expression/m-p/780780#M2052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking to set the value of one field based on the output of a rank expression. For example, if I have total sales by sales person, and I rank those sales from highest to lowest, I want to populate a field (SalesLevel) based on that ranking. The top three would be "Gold Level", the next seven would be "Silver Level", the next 10 would be "Bronze Level"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 18:23:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Populate-field-based-on-rank-expression/m-p/780780#M2052</guid>
      <dc:creator />
      <dc:date>2015-02-10T18:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: Populate field based on rank expression</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Populate-field-based-on-rank-expression/m-p/780781#M2053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe, in a chart with salesperson as dim, this expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rank(sum(Sales),4)&amp;lt;=3, 'Gold',&lt;/P&gt;&lt;P&gt;if(rank(sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sales&lt;/SPAN&gt;),4)&amp;lt;=10, 'Silver',&lt;/P&gt;&lt;P&gt;if(rank(sum(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Sales&lt;/SPAN&gt;),4)&amp;lt;=20, 'Bronze',&lt;/P&gt;&lt;P&gt;'nothing'&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 18:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Populate-field-based-on-rank-expression/m-p/780781#M2053</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-02-10T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Populate field based on rank expression</title>
      <link>https://community.qlik.com/t5/Qlik-Learning-Discussions/Populate-field-based-on-rank-expression/m-p/780782#M2054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That gives me what I was looking for. Thank you for your quick response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 18:52:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Learning-Discussions/Populate-field-based-on-rank-expression/m-p/780782#M2054</guid>
      <dc:creator />
      <dc:date>2015-02-10T18:52:23Z</dc:date>
    </item>
  </channel>
</rss>

