<?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: Text Objects with rank info not working as expected. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892261#M654607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Henric, that works great and the example output helped me understand why better than the help file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jul 2015 09:41:25 GMT</pubDate>
    <dc:creator>pgriffiths</dc:creator>
    <dc:date>2015-07-20T09:41:25Z</dc:date>
    <item>
      <title>Text Objects with rank info not working as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892258#M654604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to display rank information on restricted application installs in text objects instead of a straight table.&lt;/P&gt;&lt;P&gt;Each box needs to display the next ranked item.&lt;/P&gt;&lt;P&gt;I have the following sort of working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Rank3: '&lt;/P&gt;&lt;P&gt;&amp;amp;only(if(aggr(Rank(sum(ApplicationRestricted)), ApplicationName)=3, ApplicationName))&lt;/P&gt;&lt;P&gt;&amp;amp;' '&amp;amp;only(if(aggr(Rank(sum(ApplicationRestricted)), ApplicationName)=3, Aggr(sum(ApplicationRestricted), ApplicationName)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This would output something like&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Rank1: Dropbox 104&lt;/LI&gt;&lt;LI&gt;Rank2: Evernote 87&lt;/LI&gt;&lt;LI&gt;Rank3: Box Sync 7&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem I am having is when it gets down to items with the same amount, in my case, items with just 1 install each, the script stops working and outputs nothing.&lt;/P&gt;&lt;P&gt;I was expecting the other text objects to still display like the following but instead they are blank.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Rank4: Transmission 1&lt;/LI&gt;&lt;LI&gt;Rank5: BitTorrent 1&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wanting to display each item in descending order, much like I would with a straight table but using Text Objects to display the data.&lt;/P&gt;&lt;P&gt;Anyone got any idea how to fix this or on a different approach?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 16:16:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892258#M654604</guid>
      <dc:creator>pgriffiths</dc:creator>
      <dc:date>2015-07-16T16:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Text Objects with rank info not working as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892259#M654605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to look at the 2nd and 3rd parameter of the Rank function. The second defines which rank should be used for multiple identical values, and the 3rd how the result should be formatted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You probably want Num(Rank(..., 4))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Ranks.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/93114_Ranks.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 16:31:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892259#M654605</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2015-07-16T16:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Text Objects with rank info not working as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892260#M654606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peterjohn,&lt;/P&gt;&lt;P&gt;Only() function returns Null when Field (or Expression) has many values.&lt;/P&gt;&lt;P&gt;Try to use Sum(DISTINCT....) and Rank(expression,0,1)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2015 16:34:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892260#M654606</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-07-16T16:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Text Objects with rank info not working as expected.</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892261#M654607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Henric, that works great and the example output helped me understand why better than the help file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2015 09:41:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Objects-with-rank-info-not-working-as-expected/m-p/892261#M654607</guid>
      <dc:creator>pgriffiths</dc:creator>
      <dc:date>2015-07-20T09:41:25Z</dc:date>
    </item>
  </channel>
</rss>

