<?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 Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/1054978#M931151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am new to Qlikview and struggling to use the rank function for the following data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Dimension with the following Fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PhaseDim (Dimension)&lt;/P&gt;&lt;P&gt;PhaseSetPiece&lt;/P&gt;&lt;P&gt;PhaseOpenPlay&lt;/P&gt;&lt;P&gt;PhaseUnstrucruredPlay&lt;/P&gt;&lt;P&gt;PhaseRuckSpeed&lt;/P&gt;&lt;P&gt;PhaseLineShape&lt;/P&gt;&lt;P&gt;PhaseAdvLineDefence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a straight table I have the following Dimenions&lt;/P&gt;&lt;P&gt;- Phase Dim&lt;/P&gt;&lt;P&gt;- =if(PhaseValue = 0 ,'',PhaseValue)&lt;/P&gt;&lt;P&gt;- =aggr(sum({$&amp;lt;DefencePhaseSort = {$(#vPHASENO1)}&amp;gt;} [DefenceTacklesMissed]),PhaseValue,PhaseDim)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have an expression extracting the max value from each field &lt;/P&gt;&lt;P&gt;=if(PhaseValue = 0 ,'',max(aggr(sum({$&amp;lt;DefencePhaseSort = {$(#vPHASENO1)}&amp;gt;} DefenceTacklesMissed),PhaseValue,PhaseDim)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to rank each field from highest to lowest so that I can apply a heatmap to the table&lt;/P&gt;&lt;P&gt;I keep on getting the same number returned for all field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/1054978#M931151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I am new to Qlikview and struggling to use the rank function for the following data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a Dimension with the following Fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PhaseDim (Dimension)&lt;/P&gt;&lt;P&gt;PhaseSetPiece&lt;/P&gt;&lt;P&gt;PhaseOpenPlay&lt;/P&gt;&lt;P&gt;PhaseUnstrucruredPlay&lt;/P&gt;&lt;P&gt;PhaseRuckSpeed&lt;/P&gt;&lt;P&gt;PhaseLineShape&lt;/P&gt;&lt;P&gt;PhaseAdvLineDefence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a straight table I have the following Dimenions&lt;/P&gt;&lt;P&gt;- Phase Dim&lt;/P&gt;&lt;P&gt;- =if(PhaseValue = 0 ,'',PhaseValue)&lt;/P&gt;&lt;P&gt;- =aggr(sum({$&amp;lt;DefencePhaseSort = {$(#vPHASENO1)}&amp;gt;} [DefenceTacklesMissed]),PhaseValue,PhaseDim)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then have an expression extracting the max value from each field &lt;/P&gt;&lt;P&gt;=if(PhaseValue = 0 ,'',max(aggr(sum({$&amp;lt;DefencePhaseSort = {$(#vPHASENO1)}&amp;gt;} DefenceTacklesMissed),PhaseValue,PhaseDim)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to rank each field from highest to lowest so that I can apply a heatmap to the table&lt;/P&gt;&lt;P&gt;I keep on getting the same number returned for all field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/1054978#M931151</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rank Function</title>
      <link>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/1054979#M931152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using more than one dimension and you want to rank across all lines in a straight table, you need to use the TOTAL qualifier in rank() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Rank(TOTAL .....)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using a pivot table and you want to rank across all columns (horizontal ranking) you need to use HRank() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this does not help, please post a small sample QVW that demonstrate your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2016 22:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rank-Function/m-p/1054979#M931152</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-11T22:17:53Z</dc:date>
    </item>
  </channel>
</rss>

