<?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: Re: Include 2 ranks in a 2 dimensions table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644788#M1086449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uuupps, sorry, I have another problem. I experiment the same problem again because instead of a field, [Margen Explotación] is the calculation of two fields. Do you know how to take in consideration this case also? See new version of the document you sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help and sorry for inconveniences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Jun 2014 17:10:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-09T17:10:57Z</dc:date>
    <item>
      <title>Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644785#M1086446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Q-Community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m experiencing few problems trying to show two different rankings in the same table. The first ranking I want to show is on the value “Margen Explotación”, and I’d like to make a “global” order (first dimension = ID_BRANCH). Here, I mean I’d like to compare all the branches. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second ranking would be a ranking by group (second dimension = ID_CLUSTER).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be more concrete, as an example, I’d like to see the branch 52 is the 9&lt;SUP&gt;th&lt;/SUP&gt; in terms of “Margen Explotación” (according to the first dimension), and the 3&lt;SUP&gt;rd&lt;/SUP&gt; of his Cluster (according to the second dimension).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 16:14:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644785#M1086446</guid>
      <dc:creator />
      <dc:date>2014-06-09T16:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644786#M1086447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached qvw.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 16:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644786#M1086447</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-09T16:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644787#M1086448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Gysbert ! Quick and efficient &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 16:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644787#M1086448</guid>
      <dc:creator />
      <dc:date>2014-06-09T16:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644788#M1086449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uuupps, sorry, I have another problem. I experiment the same problem again because instead of a field, [Margen Explotación] is the calculation of two fields. Do you know how to take in consideration this case also? See new version of the document you sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help and sorry for inconveniences.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 17:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644788#M1086449</guid>
      <dc:creator />
      <dc:date>2014-06-09T17:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644789#M1086450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replace [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Margen Explotación]&lt;/SPAN&gt; with rangesum(Ingresos,-Gastos) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 17:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644789#M1086450</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-09T17:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644790#M1086451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've tried with &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;sum(aggr(rank(rangesum(Ingresos,-Gastos)),ID_BRANCH)), and it's OK. However, the second one does not give me the expected result:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- sum(aggr(NODISTINCT rank(total sum(rangesum(Ingresos,-Gastos))),CÓDIGO_CLUSTER)), &amp;gt;&amp;gt;&amp;gt;&amp;nbsp; it shows me the results from 1 to 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- sum(aggr(NODISTINCT rank(total (rangesum(Ingresos,-Gastos))),CÓDIGO_CLUSTER)) &amp;gt;&amp;gt;&amp;gt;&amp;nbsp; show always 4,5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know where I'm failing with the expression? Thanks a lot !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 17:34:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644790#M1086451</guid>
      <dc:creator />
      <dc:date>2014-06-09T17:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644791#M1086452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A very very last question ! If I rename Ingresos expression "ABC" and Gastos expression "DEF", and calculate Margen Explotación = ABC-DEF, neither the first ranking expression works. Would you have a solution in that case also?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vincent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 17:39:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644791#M1086452</guid>
      <dc:creator />
      <dc:date>2014-06-09T17:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644792#M1086453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Check the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 17:48:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644792#M1086453</guid>
      <dc:creator>venkatg6759</dc:creator>
      <dc:date>2014-06-09T17:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644793#M1086454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/venkatg6759"&gt;venkatg6759&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, but in that case it doesn't work as expected. Using ABC and DEF instead of [Margen Explotación], results are 54,5 and 4,5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 17:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644793#M1086454</guid>
      <dc:creator />
      <dc:date>2014-06-09T17:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Include 2 ranks in a 2 dimensions table</title>
      <link>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644794#M1086455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-link-profile-small" data-containerid="-1" data-containertype="-1" data-objectid="112752" data-objecttype="3" href="https://community.qlik.com/people/venkatg6759" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;venkatg6759&lt;/A&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an answer to your question I received in my inbox, yes, there's a reason I try to use the label. The label in my original file is calculated with the following formula: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- INGRESOS = SUM({&amp;lt;TIPO_GASTO={'INGRESOS'}, CONTADORMES_GASTO={$(vMaxContador)}, AÑO_GASTO=&amp;gt;}IMPORTE_GASTO)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;- GASTOS = SUM({&amp;lt;TIPO_GASTO=-{'INGRESOS'}, CONTADORMES_GASTO={$(vMaxContador)}, AÑO_GASTO=&amp;gt;}IMPORTE_GASTO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;But, when using both of the formula, it doesn't take in consideration the&amp;nbsp; GASTOS formula and range the branches only by INGRESOS.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;RANK(RANGESUM(SUM({&amp;lt;TIPO_GASTO={'INGRESOS'}, CONTADORMES_GASTO={$(vMaxContador)}, AÑO_GASTO=&amp;gt;}IMPORTE_GASTO)),-(SUM({&amp;lt;TIPO_GASTO=-{'INGRESOS'}, CONTADORMES_GASTO={$(vMaxContador)}, AÑO_GASTO=&amp;gt;}IMPORTE_GASTO)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 18:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Include-2-ranks-in-a-2-dimensions-table/m-p/644794#M1086455</guid>
      <dc:creator />
      <dc:date>2014-06-09T18:22:00Z</dc:date>
    </item>
  </channel>
</rss>

