<?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: Expression to find which expression is highest and lowest / dimension. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329073#M496731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; And here is a QVW example of what I mean, where I am using nested if to solve what I need. But in the "real world", I need to compare 10-20 different expressions per dimension, so a solution with nested if is not preferable...there really must be an easier way...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Nov 2011 14:16:32 GMT</pubDate>
    <dc:creator>RSvebeck</dc:creator>
    <dc:date>2011-11-18T14:16:32Z</dc:date>
    <item>
      <title>Expression to find which expression is highest and lowest / dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329072#M496730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have a table with one single dimension and 4 advanced expressions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This is the result in a table:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="color: #33cccc; font-family: courier new,courier;"&gt;Item Expr1 Expr2 Expr3 Expr4&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #33cccc; font-family: courier new,courier;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #33cccc; font-family: courier new,courier;"&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp; 50&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #33cccc; font-family: courier new,courier;"&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; -5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Now - I want a 5th and a 6th expression that gives me which the value of the 4 "main" expression that returns the highest and lowest values.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Expected result:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG style="color: #33cccc; font-family: courier new,courier;"&gt;Item Expr1 Expr2 Expr3 Expr4 Highest Lowest&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN style="color: #33cccc; font-family: courier new,courier;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp; 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #33cccc; font-family: courier new,courier;"&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color: #33cccc; font-family: courier new,courier;"&gt;C&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -5&amp;nbsp;&amp;nbsp;&amp;nbsp; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The expressions 1-4 are complicated and based on set analysis, so I would prefere to be able to refer the max and min expressions to the expression aliases like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="color: #800000; font-family: courier new,courier;"&gt;&lt;STRONG style="color: #33cccc;"&gt;Highest &lt;/STRONG&gt;= getmymaxvalue([Expr1],[Expr2],[Expr3],[Expr4])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I need to be able to present this in a table chart (not a pivot) so I can not use the hrank function, I guess...?&lt;BR /&gt;...And I would prefere not to use nested if's... &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Is it possible?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Robert Svebeck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 12:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329072#M496730</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2011-11-18T12:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to find which expression is highest and lowest / dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329073#M496731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; And here is a QVW example of what I mean, where I am using nested if to solve what I need. But in the "real world", I need to compare 10-20 different expressions per dimension, so a solution with nested if is not preferable...there really must be an easier way...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 14:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329073#M496731</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2011-11-18T14:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to find which expression is highest and lowest / dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329074#M496732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Robert Svebeck wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier; color: #800000;"&gt;&lt;STRONG style="color: #33cccc;"&gt;Highest &lt;/STRONG&gt;= getmymaxvalue([Expr1],[Expr2],[Expr3],[Expr4])&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're SO close.&amp;nbsp; You want the rangemax() and rangemin() functions, and you can refer to either the column labels or numbers, whichever is more convenient for you.&amp;nbsp; So either of these should work (and do in your example):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;rangemax(Expr1,Expr2,Expr3,Expr4)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;rangemax(column(1),column(2),column(3),column(4))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 22:25:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329074#M496732</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-11-18T22:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to find which expression is highest and lowest / dimension.</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329075#M496733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thank you Sir, just what I was looking for. //Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 09:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-to-find-which-expression-is-highest-and-lowest/m-p/329075#M496733</guid>
      <dc:creator>RSvebeck</dc:creator>
      <dc:date>2011-11-21T09:23:54Z</dc:date>
    </item>
  </channel>
</rss>

