<?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: Get the Max per Row and its Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-the-Max-per-Row-and-its-Date/m-p/800898#M1048378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load RowNo() as NO, * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID, XK, XTD, YK, YTD, ZK, ZTD&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100, 0.12, 18/09/2013 17:28, 0.25, 10/09/2013 13:25, 0.08, 28/09/2013 22:10&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100, 0.23, 18/10/2013 17:35, 1.38, 27/10/2013 7:53, 0.17, 12/10/2013 1:38&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100, 0.22, 19/11/2013 17:18, 0.20, 05/11/2013 7:39, 0.10, 17/11/2013 18:17&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Straight Table&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dimension&lt;/P&gt;&lt;P&gt;NO&lt;BR /&gt;ID&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;RangeMax(XK,YK,ZK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;IF(RangeMax(XK,YK,ZK) = XK, XTD, &lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(RangeMax(XK,YK,ZK) = YK, YTD, ZTD)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to presentation tab and select NO and Hide this column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Nov 2014 15:04:50 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2014-11-10T15:04:50Z</dc:date>
    <item>
      <title>Get the Max per Row and its Date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-Max-per-Row-and-its-Date/m-p/800897#M1048376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="99" style="width: 491px; height: 3px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="40"&gt;ID&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="28"&gt;&lt;STRONG&gt;X&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;K&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="95"&gt;&lt;STRONG&gt;X&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;TD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="28"&gt;&lt;STRONG&gt;Y&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;K&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="95"&gt;&lt;STRONG&gt;Y&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;TD&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="28"&gt;&lt;STRONG&gt;Z&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;K&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="95"&gt;&lt;STRONG&gt;Z&lt;/STRONG&gt;&lt;SPAN style="text-decoration: underline;"&gt;TD&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="40"&gt;100&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;0,12&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;18/09/2013 17:28&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;0,25&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;10/09/2013 13:25&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;0,08&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;28/09/2013 22:10&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="40"&gt;100&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;0,23&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;18/10/2013 17:35&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;1,38&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;27/10/2013 7:53&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;0,17&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;12/10/2013 1:38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20" style="border-top: none;" width="40"&gt;100&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;0,22&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;19/11/2013 17:18&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;0,20&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;05/11/2013 7:39&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="28"&gt;0,10&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;17/11/2013 18:17&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ID: Identifier&lt;/LI&gt;&lt;LI&gt;XD/YK/ZK: Power&lt;/LI&gt;&lt;LI&gt;XTD/YTD/ZTD: Time (HH:MM) and Date (DD/MM/YYYY) for the related Power.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So XK is related to XTD, YK is related to YTD and ZK is related to ZTD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is to get the &lt;STRONG&gt;max value&lt;/STRONG&gt; between XK, YK and ZK &lt;SPAN style="text-decoration: underline;"&gt;for each row&lt;/SPAN&gt; and also return the &lt;STRONG&gt;date&lt;/STRONG&gt; for the corresponding Power.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example I should get:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="99" style="width: 187px; height: 28px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="28"&gt;ID&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="32"&gt;MAX&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="107"&gt;DATE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;" width="28"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="32"&gt;0,25&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;" width="107"&gt;10/09/2013 13:25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;" width="28"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="32"&gt;1,38&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;" width="107"&gt;27/10/2013 7:53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" style="border-top: none;" width="28"&gt;100&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;" width="32"&gt;0,22&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;" width="107"&gt;19/11/2013 17:18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know how could I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd prefer doing this in the script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 14:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-Max-per-Row-and-its-Date/m-p/800897#M1048376</guid>
      <dc:creator />
      <dc:date>2014-11-10T14:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Max per Row and its Date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-Max-per-Row-and-its-Date/m-p/800898#M1048378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load RowNo() as NO, * Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID, XK, XTD, YK, YTD, ZK, ZTD&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100, 0.12, 18/09/2013 17:28, 0.25, 10/09/2013 13:25, 0.08, 28/09/2013 22:10&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100, 0.23, 18/10/2013 17:35, 1.38, 27/10/2013 7:53, 0.17, 12/10/2013 1:38&lt;/P&gt;&lt;P&gt;&amp;nbsp; 100, 0.22, 19/11/2013 17:18, 0.20, 05/11/2013 7:39, 0.10, 17/11/2013 18:17&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a Straight Table&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dimension&lt;/P&gt;&lt;P&gt;NO&lt;BR /&gt;ID&lt;/P&gt;&lt;P&gt;Expressions&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;RangeMax(XK,YK,ZK)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;IF(RangeMax(XK,YK,ZK) = XK, XTD, &lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(RangeMax(XK,YK,ZK) = YK, YTD, ZTD)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to presentation tab and select NO and Hide this column&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 15:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-Max-per-Row-and-its-Date/m-p/800898#M1048378</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-11-10T15:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Get the Max per Row and its Date</title>
      <link>https://community.qlik.com/t5/QlikView/Get-the-Max-per-Row-and-its-Date/m-p/800899#M1048379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great! Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 15:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-the-Max-per-Row-and-its-Date/m-p/800899#M1048379</guid>
      <dc:creator />
      <dc:date>2014-11-10T15:55:53Z</dc:date>
    </item>
  </channel>
</rss>

