<?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 Value for maximum time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314657#M822920</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 have one table like this into 10 excel files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIME&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/P&gt;&lt;P&gt;10:50&amp;nbsp;&amp;nbsp;&amp;nbsp; 154&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;09:20&amp;nbsp;&amp;nbsp;&amp;nbsp; 986&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;08:13&amp;nbsp;&amp;nbsp;&amp;nbsp; 1456&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;08:05&amp;nbsp;&amp;nbsp;&amp;nbsp; 3423&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;11:25&amp;nbsp;&amp;nbsp;&amp;nbsp; 342&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to make one table that for every file has the value based on max time. Like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_NAME&amp;nbsp; VALUE&amp;nbsp; DATE&lt;/P&gt;&lt;P&gt;DATA1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 342&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;DATA2 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do this in my load script. I tried the following script, it works but i'm sure it's not the best practice. i got 10 synthetic keys. How it can be avoided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_NAME:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD distinct FILE_NAME&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for vRow = 1 to NoOfRows('FILE_NAME')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let filename = Peek('FILE_NAME',vRow-1,'FILE_NAME');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD '$(filename)' as FILE_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load '$(filename)' as FILE_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(TIME) as MAXTIME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TABLE_DATA&lt;/P&gt;&lt;P&gt;Group By FILE_NAME, DATE;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;'$(filename)' as FILE_NAME,&lt;/P&gt;&lt;P&gt;TIME as MAXTIME,&lt;/P&gt;&lt;P&gt;VALUE&lt;/P&gt;&lt;P&gt;Resident TABLE_DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TABLE_DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next vRow;&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>Value for maximum time</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314657#M822920</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 have one table like this into 10 excel files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIME&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/P&gt;&lt;P&gt;10:50&amp;nbsp;&amp;nbsp;&amp;nbsp; 154&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;09:20&amp;nbsp;&amp;nbsp;&amp;nbsp; 986&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;08:13&amp;nbsp;&amp;nbsp;&amp;nbsp; 1456&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;08:05&amp;nbsp;&amp;nbsp;&amp;nbsp; 3423&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;11:25&amp;nbsp;&amp;nbsp;&amp;nbsp; 342&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to make one table that for every file has the value based on max time. Like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_NAME&amp;nbsp; VALUE&amp;nbsp; DATE&lt;/P&gt;&lt;P&gt;DATA1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 342&amp;nbsp;&amp;nbsp;&amp;nbsp; 29/07/2017&lt;/P&gt;&lt;P&gt;DATA2 ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do this in my load script. I tried the following script, it works but i'm sure it's not the best practice. i got 10 synthetic keys. How it can be avoided?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=======================&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_NAME:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD distinct FILE_NAME&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for vRow = 1 to NoOfRows('FILE_NAME')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let filename = Peek('FILE_NAME',vRow-1,'FILE_NAME');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD '$(filename)' as FILE_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load '$(filename)' as FILE_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATE,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(TIME) as MAXTIME&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident TABLE_DATA&lt;/P&gt;&lt;P&gt;Group By FILE_NAME, DATE;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;'$(filename)' as FILE_NAME,&lt;/P&gt;&lt;P&gt;TIME as MAXTIME,&lt;/P&gt;&lt;P&gt;VALUE&lt;/P&gt;&lt;P&gt;Resident TABLE_DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table TABLE_DATA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next vRow;&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/Value-for-maximum-time/m-p/1314657#M822920</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Value for maximum time</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314658#M822921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try this ways&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Final_Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;TIME,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;VALUE,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;DATE,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;STRONG&gt;Filebasename() as Filename&lt;/STRONG&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;From Location;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Concatenate(&lt;STRONG style="font-size: 13.3333px;"&gt;Final_Table&lt;/STRONG&gt;)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;TIME,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;VALUE,&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;DATE&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Filebasename() as Filename&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;From Location;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;MaxTab:&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Left Join(&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Final_Table&lt;/STRONG&gt;&lt;/EM&gt;)&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Load&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Filename,&lt;/EM&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Max(TIME) as MAXTIME&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Resident &lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Final_Table;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Note:- You can load it later this tables.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;EM style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Anand&lt;/EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 09:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314658#M822921</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2017-07-31T09:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Value for maximum time</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314659#M822922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15014925333922136" jivemacro_uid="_15014925333922136"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FileBaseName() AS FileName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/P&gt;
&lt;P&gt;FROM *.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;INNER JOIN&lt;/P&gt;
&lt;P&gt;LOAD FileName,&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; Max(VALUE) AS VALUE&lt;/P&gt;
&lt;P&gt;Resident Data&lt;/P&gt;
&lt;P&gt;Group By FileName;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Consideration: All .xlsx files are available at same location.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul Pawar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 09:16:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314659#M822922</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-07-31T09:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: Value for maximum time</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314660#M822923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FILE_DATA:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD distinct FILE_NAME as &lt;SPAN style="font-size: 13.3333px;"&gt;FILE_NAME1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for i=1 to FieldValueCount('FILE_NAME');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let vFileName = FieldValue('FILE_NAME',$(i));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Concatenate(FILE_DATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD '$(vFileName)' as FILE_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; floor(TIME) as TIME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEXT i&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field FILE_NAME1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner Join(FILE_DATA)&lt;/P&gt;&lt;P&gt;LOAD FILE_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(TIME) as TIME&lt;/P&gt;&lt;P&gt;Resident FILE_DATA&lt;/P&gt;&lt;P&gt;Group by FILE_NAME;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2017 10:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314660#M822923</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-07-31T10:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Value for maximum time</title>
      <link>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314661#M822924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you everybody. I've kept the join outside the for..next and now works fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILE_NAME:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD distinct FILE_NAME&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for vRow = 1 to NoOfRows('FILE_NAME')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let filename = Peek('FILE_NAME',vRow-1,'FILE_NAME');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE_DATA:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD '$(filename)' as FILE_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TIME, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VALUE, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next vRow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (TABLE_DATA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;FILE_NAME,&lt;/P&gt;&lt;P&gt;DATE,&lt;/P&gt;&lt;P&gt;max(TIME) as MAXTIME&lt;/P&gt;&lt;P&gt;Resident TABLE_DATA Group by DATE, FILE_NAME;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;Noconcatenate&lt;/P&gt;&lt;P&gt;Load * Resident TABLE_DATA Where TIME = MAXTIME;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop Table TABLE_DATA;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Aug 2017 20:45:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-for-maximum-time/m-p/1314661#M822924</guid>
      <dc:creator />
      <dc:date>2017-08-01T20:45:57Z</dc:date>
    </item>
  </channel>
</rss>

