<?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: find max value of a field in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898187#M74141</link>
    <description>&lt;P&gt;you need to make a teporary table for this:&lt;BR /&gt;temp: Load Max(RowID) as max_RowId resident table;&lt;BR /&gt;Then you can give this value in your variable with Peek():&lt;BR /&gt;let lastrow = Peek('max_RowId',-1);&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 10:58:10 GMT</pubDate>
    <dc:creator>chris_djih</dc:creator>
    <dc:date>2022-02-28T10:58:10Z</dc:date>
    <item>
      <title>find max value of a field</title>
      <link>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898184#M74140</link>
      <description>&lt;P&gt;How could I capture the maximum value of a field into a variable in order to use it into a loop&lt;/P&gt;
&lt;P&gt;Something like this:&lt;/P&gt;
&lt;P&gt;set lastrow=max(RowID);&lt;/P&gt;
&lt;P&gt;for&amp;nbsp; n=1 to lastrow&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 10:54:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898184#M74140</guid>
      <dc:creator>lmenendez_grupo_pinero</dc:creator>
      <dc:date>2022-02-28T10:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: find max value of a field</title>
      <link>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898187#M74141</link>
      <description>&lt;P&gt;you need to make a teporary table for this:&lt;BR /&gt;temp: Load Max(RowID) as max_RowId resident table;&lt;BR /&gt;Then you can give this value in your variable with Peek():&lt;BR /&gt;let lastrow = Peek('max_RowId',-1);&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 10:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898187#M74141</guid>
      <dc:creator>chris_djih</dc:creator>
      <dc:date>2022-02-28T10:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: find max value of a field</title>
      <link>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898199#M74143</link>
      <description>&lt;P&gt;If you want to loop on the rows of Table1 and get for every row the value of Field1&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Field1&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;10&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;FOR r=0 TO NoOfRows('Table1')-1&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LET vField1 = PEEK('Field1', $(r), 'Table1');&lt;BR /&gt;&amp;nbsp; &amp;nbsp; TRACE $(r) $(vField1);&lt;BR /&gt;NEXT&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 11:06:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898199#M74143</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2022-02-28T11:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: find max value of a field</title>
      <link>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898203#M74144</link>
      <description>&lt;P&gt;IF you want to get the max value of Field1 and loop from 1 to max value of Field1&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Field1&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;10&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;TMP:&lt;BR /&gt;LOAD MAX(Field1) AS Field1Max RESIDENT Table1;&lt;BR /&gt;LET vMax = Peek('Field1Max');&lt;/P&gt;
&lt;P&gt;FOR i=1 TO $(vMax)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;TRACE $(i);&lt;BR /&gt;NEXT&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 11:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898203#M74144</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2022-02-28T11:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: find max value of a field</title>
      <link>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898204#M74145</link>
      <description>&lt;P&gt;Thank for your usefull and quikly help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 11:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/find-max-value-of-a-field/m-p/1898204#M74145</guid>
      <dc:creator>lmenendez_grupo_pinero</dc:creator>
      <dc:date>2022-02-28T11:09:10Z</dc:date>
    </item>
  </channel>
</rss>

