<?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 Creating a Top/Bottom 5 list, with smileys in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-Top-Bottom-5-list-with-smileys/m-p/587326#M217838</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'm trying to create a list with both top 5 and bottom 5, it works fine with this code in expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(rank(sum(Fortjeneste),4)&amp;lt;=5 or rank(-sum(Fortjeneste),4)&amp;lt;=5, sum(Fortjeneste),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I add a column with smileys, I lose some of the function from the code above, it now starts to return all sellers in that group, but the value from 'Fortjeneste' is 0 for all except from the top/bottom 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smileys code in expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum(Fortjeneste)&amp;gt;600000,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/smiley1_g.png',&lt;/P&gt;&lt;P&gt;if(sum(Fortjeneste)&amp;gt;400001,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/smiley2.png',&lt;/P&gt;&lt;P&gt;if(sum(Fortjeneste)&amp;lt;400000,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/smiley3_r.png')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does this code affect the if(rank((sum...... code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Espen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 09:45:44 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-02T09:45:44Z</dc:date>
    <item>
      <title>Creating a Top/Bottom 5 list, with smileys</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Top-Bottom-5-list-with-smileys/m-p/587326#M217838</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'm trying to create a list with both top 5 and bottom 5, it works fine with this code in expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(rank(sum(Fortjeneste),4)&amp;lt;=5 or rank(-sum(Fortjeneste),4)&amp;lt;=5, sum(Fortjeneste),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I add a column with smileys, I lose some of the function from the code above, it now starts to return all sellers in that group, but the value from 'Fortjeneste' is 0 for all except from the top/bottom 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Smileys code in expressions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(sum(Fortjeneste)&amp;gt;600000,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/smiley1_g.png',&lt;/P&gt;&lt;P&gt;if(sum(Fortjeneste)&amp;gt;400001,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/smiley2.png',&lt;/P&gt;&lt;P&gt;if(sum(Fortjeneste)&amp;lt;400000,'qmem://&amp;lt;bundled&amp;gt;/BuiltIn/smiley3_r.png')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does this code affect the if(rank((sum...... code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Espen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 09:45:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Top-Bottom-5-list-with-smileys/m-p/587326#M217838</guid>
      <dc:creator />
      <dc:date>2014-05-02T09:45:44Z</dc:date>
    </item>
  </channel>
</rss>

