<?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: Loading files with same name concatinated with timstamp? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268746#M862692</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;I hope it will useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//File Names SensorData_20160101090000 and SensorData_20160101100000&lt;/P&gt;&lt;P&gt;SensordataLatest:&lt;/P&gt;&lt;P&gt;LOAD Max(FileTimeStamp) as MaxTimeStamp;&lt;/P&gt;&lt;P&gt;LOAD Subfield(Subfield(FileName(),'_',2),'.',1) as FileTimeStamp&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;SensorData_*.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD A, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;SensorData_*.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;Where Exists(MaxTimeStamp,Subfield(Subfield(FileName(),'_',2),'.',1));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table SensordataLatest;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jan 2017 07:11:34 GMT</pubDate>
    <dc:creator>muthukumar77</dc:creator>
    <dc:date>2017-01-05T07:11:34Z</dc:date>
    <item>
      <title>Loading files with same name concatinated with timstamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268744#M862690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Qlikview and try to load file according to the timestamp. The file provider is sending files with similar name including timestamp it them(given below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SensorData_&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, fixed, monospace; font-size: 12.6814px;"&gt;YYYYMMDDHHMMSS.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SensorData_&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, fixed, monospace; font-size: 12.6814px;"&gt;YYYYMMDDHHMMSS.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, fixed, monospace; font-size: 12.6814px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, fixed, monospace; font-size: 12.6814px;"&gt;I just want to load the file which have latest timestamp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, fixed, monospace; font-size: 12.6814px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, fixed, monospace; font-size: 12.6814px;"&gt;Please help me out thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, fixed, monospace; font-size: 12.6814px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New', Courier, fixed, monospace; font-size: 12.6814px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&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/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268744#M862690</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files with same name concatinated with timstamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268745#M862691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;STRONG&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpful to u&lt;SPAN class="j-post-author"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileNames:&lt;/P&gt;&lt;P&gt;LOAD Distinct FileName() as FileName, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp( Timestamp#( mid(FileBaseName(),&amp;nbsp; Index(FileBaseName(), '_')+1, len(FileBaseName())),'YYYYMMDDhhmmss')) as DT_Time&lt;/P&gt;&lt;P&gt;FROM SensorData*.csv&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (FileNames)&lt;/P&gt;&lt;P&gt;LOAD Timestamp(Max(DT_Time)) as DT_Time, '1' as Flag&lt;/P&gt;&lt;P&gt;Resident FileNames;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FileToLoad:&lt;/P&gt;&lt;P&gt;LOAD FileName&lt;/P&gt;&lt;P&gt;Resident FileNames where Flag = 1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vFileName = Peek('FileName', 0, 'FileToLoad');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table FileNames;&lt;/P&gt;&lt;P&gt;DROP Table FileToLoad;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM $(vFileName)&lt;/P&gt;&lt;P&gt;(txt, codepage is 1252, no labels, delimiter is ',', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2017 08:23:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268745#M862691</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-04T08:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files with same name concatinated with timstamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268746#M862692</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;I hope it will useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//File Names SensorData_20160101090000 and SensorData_20160101100000&lt;/P&gt;&lt;P&gt;SensordataLatest:&lt;/P&gt;&lt;P&gt;LOAD Max(FileTimeStamp) as MaxTimeStamp;&lt;/P&gt;&lt;P&gt;LOAD Subfield(Subfield(FileName(),'_',2),'.',1) as FileTimeStamp&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;SensorData_*.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD A, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;SensorData_*.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;Where Exists(MaxTimeStamp,Subfield(Subfield(FileName(),'_',2),'.',1));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table SensordataLatest;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 07:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268746#M862692</guid>
      <dc:creator>muthukumar77</dc:creator>
      <dc:date>2017-01-05T07:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files with same name concatinated with timstamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268747#M862693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Payal...the code is working as expected&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 11:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268747#M862693</guid>
      <dc:creator />
      <dc:date>2017-01-05T11:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Loading files with same name concatinated with timstamp?</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268748#M862694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is now answered, please flag the Correct Answer (via the big "Correct Answer" button near every post) and Helpful Answers (found under the Actions menu under every post).&lt;/P&gt;&lt;P&gt;If not, please make clear what part of this topic you still need help with &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jan 2017 12:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-files-with-same-name-concatinated-with-timstamp/m-p/1268748#M862694</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2017-01-05T12:59:45Z</dc:date>
    </item>
  </channel>
</rss>

