<?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 RANK ISSUE WHEN USING TWO DIMENSION VALUES in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70218#M607275</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem when using a rank function in a straight table. The thing is that I want to rank the first top 13, taking into consideration two dimension values (TRACKING,TAG).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem comes when there's a duplicate TAG but with different TRACKING. It seems like if my rank expression, it's only taking into consideration the top 13 TAG values (without caring the TRACKING dimension) to create the ranking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TAG 13.png" class="jive-image image-1" src="/legacyfs/online/197116_TAG 13.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in that case, appear the top 13 TAG values (Formacion and Jornada Formacion Anestesia are duplicated) but not the 13 top TRACKING,TAG values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIMENSIONS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACKING;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TAG&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPRESSIONS:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;COUNT TAGS =&amp;gt; IF(AGGR(RANK(COUNT(DISTINCT ID_VISITA),4),TRACKING,TAG)&amp;lt;=13,AGGR(COUNT(DISTINCT ID_VISITA),TRACKING,TAG))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any help would be appreciated&lt;/SPAN&gt;&lt;SPAN style="color: #32485f; font-size: 14px; font-family: Montserrat, Arial, 'sans serif';"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Mar 2018 09:00:50 GMT</pubDate>
    <dc:creator>wale_martins</dc:creator>
    <dc:date>2018-03-22T09:00:50Z</dc:date>
    <item>
      <title>RANK ISSUE WHEN USING TWO DIMENSION VALUES</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70218#M607275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem when using a rank function in a straight table. The thing is that I want to rank the first top 13, taking into consideration two dimension values (TRACKING,TAG).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem comes when there's a duplicate TAG but with different TRACKING. It seems like if my rank expression, it's only taking into consideration the top 13 TAG values (without caring the TRACKING dimension) to create the ranking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="TAG 13.png" class="jive-image image-1" src="/legacyfs/online/197116_TAG 13.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in that case, appear the top 13 TAG values (Formacion and Jornada Formacion Anestesia are duplicated) but not the 13 top TRACKING,TAG values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DIMENSIONS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TRACKING;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TAG&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXPRESSIONS:&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;COUNT TAGS =&amp;gt; IF(AGGR(RANK(COUNT(DISTINCT ID_VISITA),4),TRACKING,TAG)&amp;lt;=13,AGGR(COUNT(DISTINCT ID_VISITA),TRACKING,TAG))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Any help would be appreciated&lt;/SPAN&gt;&lt;SPAN style="color: #32485f; font-size: 14px; font-family: Montserrat, Arial, 'sans serif';"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wale&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 09:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70218#M607275</guid>
      <dc:creator>wale_martins</dc:creator>
      <dc:date>2018-03-22T09:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: RANK ISSUE WHEN USING TWO DIMENSION VALUES</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70219#M607276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Can you take both Tag &amp;amp; Tracking by concating as dimension, then use in AGGR formula as you've given then hide that dimension/column from Presentation tab.&lt;/P&gt;&lt;P&gt;Formula can be &lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;IF(AGGR(RANK(COUNT(DISTINCT ID_VISITA),4),TRACKING&amp;amp;TAG)&amp;lt;=13,AGGR(COUNT(DISTINCT ID_VISITA),TRACKING,TAG))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;2. Or I think you can try rank before aggr Rank(Aggr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 10:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70219#M607276</guid>
      <dc:creator>thevingo</dc:creator>
      <dc:date>2018-03-22T10:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: RANK ISSUE WHEN USING TWO DIMENSION VALUES</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70220#M607277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Govind,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I need both dimension values&amp;nbsp; as dimension (Filtering issue). Concating and adding TAG as an expression AND TRACKING as an expression it's not viable in that case...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. It doesn't work... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 10:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70220#M607277</guid>
      <dc:creator>wale_martins</dc:creator>
      <dc:date>2018-03-22T10:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: RANK ISSUE WHEN USING TWO DIMENSION VALUES</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70221#M607278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your Count seems to be a really small number... is it possible that they are all getting ranked the same and hence not getting picked?... would you be able to share a sample to look at this in detail?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 11:13:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70221#M607278</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-22T11:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: RANK ISSUE WHEN USING TWO DIMENSION VALUES</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70222#M607279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The problem appear when there is a duplicated TAG.... For example, If we do not take into consideration the TRACKING dimension, the rank is correct. It picks only 13 values... the problem appears when I try to add TRACKING as dimension and there is a repeated TAG....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 11:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70222#M607279</guid>
      <dc:creator>wale_martins</dc:creator>
      <dc:date>2018-03-22T11:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: RANK ISSUE WHEN USING TWO DIMENSION VALUES</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70223#M607280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this look right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197158_Capture.PNG" style="height: 269px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(AGGR(RANK(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; COUNT(DISTINCT ID_VISITA),4),TRACKING,TAG)&amp;lt;=13,AGGR(COUNT(DISTINCT ID_VISITA),TRACKING,TAG))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 11:49:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70223#M607280</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-22T11:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: RANK ISSUE WHEN USING TWO DIMENSION VALUES</title>
      <link>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70224#M607281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Genious!!!&amp;nbsp; I don't know how many hours I've wasted trying to do the trick!! 5 Sunny minutes and it's solve! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Mar 2018 12:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RANK-ISSUE-WHEN-USING-TWO-DIMENSION-VALUES/m-p/70224#M607281</guid>
      <dc:creator>wale_martins</dc:creator>
      <dc:date>2018-03-22T12:02:10Z</dc:date>
    </item>
  </channel>
</rss>

