<?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: max value out from 3 straight table columns in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124263#M888926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be like this,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Max values of three columns-231094.PNG" class="jive-image image-1" src="/legacyfs/online/136239_Max values of three columns-231094.PNG" style="height: 147px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Using this expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14727187700052361" jivemacro_uid="_14727187700052361"&gt;
&lt;P&gt;=Sum(IF(fabs([Scenario-3])&amp;gt;fabs([Scenario-1]) and fabs([Scenario-2]),[Scenario-3],&lt;/P&gt;
&lt;P&gt;IF(fabs([Scenario-1])&amp;gt;fabs([Scenario-2]) and fabs([Scenario-3]),[Scenario-1],&lt;/P&gt;
&lt;P&gt;IF(fabs([Scenario-2])&amp;gt;fabs([Scenario-1]) and fabs([Scenario-3]),[Scenario-2]))))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 08:34:08 GMT</pubDate>
    <dc:creator>HirisH_V7</dc:creator>
    <dc:date>2016-09-01T08:34:08Z</dc:date>
    <item>
      <title>max value out from 3 straight table columns</title>
      <link>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124258#M888921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have straight table with 3 columns with diff scenario values... i need to find out the Max value out of 3 values. its a max of absolute numbers however i need to retain the sign .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="313"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" width="72"&gt;Scenario-1&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="72"&gt;Scenario-1&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="72"&gt;Scenario-1&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="97"&gt;Max(Scenario)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;120&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-212&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-830&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-830&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;-388&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;990&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;113&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;990&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20" style="border-top: none;"&gt;-787&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;93&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;188&lt;/TD&gt;&lt;TD align="right" class="xl63" style="border-top: none; border-left: none;"&gt;-787&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&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/max-value-out-from-3-straight-table-columns/m-p/1124258#M888921</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: max value out from 3 straight table columns</title>
      <link>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124259#M888922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=FirstSortedValue(Senario,- Value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124259#M888922</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-09-01T07:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: max value out from 3 straight table columns</title>
      <link>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124260#M888923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps This.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=FirstSortedValue(Max(Expression), Dim)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124260#M888923</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-01T07:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: max value out from 3 straight table columns</title>
      <link>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124261#M888924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There may be cleaner ways to do this, but this should work: &lt;/P&gt;&lt;P&gt;NumMax(fabs(Column(1),fabs(Column(2),fabs(Column(3)) * &lt;/P&gt;&lt;P&gt;If(NumMax(Column(1),Column(2),Column(3)) = NumMax(fabs(Column(1),fabs(Column(2),fabs(Column(3)),1,-1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanation: First, we find the maximum absolute value.&lt;/P&gt;&lt;P&gt;Second, we check if this value is equal to the maximum non-absolute value. If it is, then it was a positive number (multiply by 1). If it isn't, then it was a negative number and we need to multiply by -1 to reverse the sign.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 08:17:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124261#M888924</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2016-09-01T08:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: max value out from 3 straight table columns</title>
      <link>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124262#M888925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Udaya,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This perhaps?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Scenario, Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, 120&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, -212&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, -830&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, -388&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 990&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, 113&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, -787&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 93&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, 188&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;FirstSortedValue(Value,-Fabs(Value))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;990 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;-830&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;990&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;-787&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 08:32:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124262#M888925</guid>
      <dc:creator>effinty2112</dc:creator>
      <dc:date>2016-09-01T08:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: max value out from 3 straight table columns</title>
      <link>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124263#M888926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;May be like this,&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Max values of three columns-231094.PNG" class="jive-image image-1" src="/legacyfs/online/136239_Max values of three columns-231094.PNG" style="height: 147px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Using this expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="java" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14727187700052361" jivemacro_uid="_14727187700052361"&gt;
&lt;P&gt;=Sum(IF(fabs([Scenario-3])&amp;gt;fabs([Scenario-1]) and fabs([Scenario-2]),[Scenario-3],&lt;/P&gt;
&lt;P&gt;IF(fabs([Scenario-1])&amp;gt;fabs([Scenario-2]) and fabs([Scenario-3]),[Scenario-1],&lt;/P&gt;
&lt;P&gt;IF(fabs([Scenario-2])&amp;gt;fabs([Scenario-1]) and fabs([Scenario-3]),[Scenario-2]))))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;Hirish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 08:34:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124263#M888926</guid>
      <dc:creator>HirisH_V7</dc:creator>
      <dc:date>2016-09-01T08:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: max value out from 3 straight table columns</title>
      <link>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124264#M888927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you everyone with valuable inputs. I had similar idea what Shoham had suggested, until we have clear solution i am going to make use of this expression. its working...thank you everyone!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:07:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-value-out-from-3-straight-table-columns/m-p/1124264#M888927</guid>
      <dc:creator />
      <dc:date>2016-09-01T13:07:04Z</dc:date>
    </item>
  </channel>
</rss>

