<?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 How to get the max value in an array ? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-get-the-max-value-in-an-array/m-p/1078510#M919823</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'm newbie in Qlik and I'm trying to understand some basic concepts of Qlikview. &lt;/P&gt;&lt;P&gt;I have a table with record number and a random number assigned to it. So it is like;&lt;/P&gt;&lt;P&gt;1 5&lt;/P&gt;&lt;P&gt;2 2&lt;/P&gt;&lt;P&gt;3 7&lt;/P&gt;&lt;P&gt;4 9 ... so on.&lt;/P&gt;&lt;P&gt;I want to get max value of record number on the left column so that I can use it in another calculation on the script. I'm using something like ;&lt;/P&gt;&lt;P&gt;let maxtry = max([trial time]);&lt;/P&gt;&lt;P&gt;But this expression returns null on the script. All helps appreciated .&lt;/P&gt;&lt;P&gt;PS : I've tried to use this expression on a text box and I can show the maximum value of this array in this box. I still don't understand why is it working on text expression side and not working on script side.&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>How to get the max value in an array ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-max-value-in-an-array/m-p/1078510#M919823</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'm newbie in Qlik and I'm trying to understand some basic concepts of Qlikview. &lt;/P&gt;&lt;P&gt;I have a table with record number and a random number assigned to it. So it is like;&lt;/P&gt;&lt;P&gt;1 5&lt;/P&gt;&lt;P&gt;2 2&lt;/P&gt;&lt;P&gt;3 7&lt;/P&gt;&lt;P&gt;4 9 ... so on.&lt;/P&gt;&lt;P&gt;I want to get max value of record number on the left column so that I can use it in another calculation on the script. I'm using something like ;&lt;/P&gt;&lt;P&gt;let maxtry = max([trial time]);&lt;/P&gt;&lt;P&gt;But this expression returns null on the script. All helps appreciated .&lt;/P&gt;&lt;P&gt;PS : I've tried to use this expression on a text box and I can show the maximum value of this array in this box. I still don't understand why is it working on text expression side and not working on script side.&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/How-to-get-the-max-value-in-an-array/m-p/1078510#M919823</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the max value in an array ?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-get-the-max-value-in-an-array/m-p/1078511#M919824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to add another load in between to find the max value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD SNo,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TrialTime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Source&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MaxTrialTime:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Max(TrialTime) as MaxTrialTime&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Table;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET maxtry = Peek('&lt;SPAN style="font-size: 13.3333px;"&gt;MaxTrialTime');&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table &lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;MaxTrialTime;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 May 2016 14:56:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-get-the-max-value-in-an-array/m-p/1078511#M919824</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-05T14:56:15Z</dc:date>
    </item>
  </channel>
</rss>

