<?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: Filter id based on time it's loaded in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Filter-id-based-on-time-it-s-loaded/m-p/1795679#M62390</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33298"&gt;@stonecold111&lt;/a&gt;&amp;nbsp;, this script, works for AM and PM, please try it :&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;load * inline [&lt;BR /&gt;Id, Time&lt;BR /&gt;1, 6:44:21 PM&lt;BR /&gt;1, 7:23:12 AM&lt;BR /&gt;2, 8:22:54 AM&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Data2:&lt;BR /&gt;Load&lt;BR /&gt;Id,&lt;BR /&gt;Time,&lt;BR /&gt;Subfield(Time, ' ', 1) + if(Subfield(Time, ' ', 2)='PM', .5, 0) as Time2&lt;BR /&gt;Resident Data;&lt;BR /&gt;drop table Data;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Load&lt;BR /&gt;Id,&lt;BR /&gt;max(Time2) as Max_Time&lt;BR /&gt;Resident Data2&lt;BR /&gt;group By&lt;BR /&gt;Id&lt;BR /&gt;;&lt;BR /&gt;drop table Data2;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 13:31:32 GMT</pubDate>
    <dc:creator>QFabian</dc:creator>
    <dc:date>2021-03-30T13:31:32Z</dc:date>
    <item>
      <title>Filter id based on time it's loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-id-based-on-time-it-s-loaded/m-p/1795649#M62387</link>
      <description>&lt;P&gt;Hi qlikss,&lt;/P&gt;&lt;P&gt;I have table like this&lt;/P&gt;&lt;P&gt;I'd.&amp;nbsp; &amp;nbsp; &amp;nbsp; Time&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6:44:21 AM&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7:23:12 AM&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8:22:54 AM&lt;/P&gt;&lt;P&gt;I need output table like this&lt;/P&gt;&lt;P&gt;I'd.&amp;nbsp; &amp;nbsp; &amp;nbsp; Time&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7:23:12 AM&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8:22:54 AM&lt;/P&gt;&lt;P&gt;Only IDs with max time should be there in table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 15:54:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-id-based-on-time-it-s-loaded/m-p/1795649#M62387</guid>
      <dc:creator>stonecold111</dc:creator>
      <dc:date>2021-12-22T15:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filter id based on time it's loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-id-based-on-time-it-s-loaded/m-p/1795679#M62390</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/33298"&gt;@stonecold111&lt;/a&gt;&amp;nbsp;, this script, works for AM and PM, please try it :&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;load * inline [&lt;BR /&gt;Id, Time&lt;BR /&gt;1, 6:44:21 PM&lt;BR /&gt;1, 7:23:12 AM&lt;BR /&gt;2, 8:22:54 AM&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;Data2:&lt;BR /&gt;Load&lt;BR /&gt;Id,&lt;BR /&gt;Time,&lt;BR /&gt;Subfield(Time, ' ', 1) + if(Subfield(Time, ' ', 2)='PM', .5, 0) as Time2&lt;BR /&gt;Resident Data;&lt;BR /&gt;drop table Data;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;Load&lt;BR /&gt;Id,&lt;BR /&gt;max(Time2) as Max_Time&lt;BR /&gt;Resident Data2&lt;BR /&gt;group By&lt;BR /&gt;Id&lt;BR /&gt;;&lt;BR /&gt;drop table Data2;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 13:31:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-id-based-on-time-it-s-loaded/m-p/1795679#M62390</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-03-30T13:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Filter id based on time it's loaded</title>
      <link>https://community.qlik.com/t5/App-Development/Filter-id-based-on-time-it-s-loaded/m-p/1795743#M62395</link>
      <description>&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 16:29:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Filter-id-based-on-time-it-s-loaded/m-p/1795743#M62395</guid>
      <dc:creator>stonecold111</dc:creator>
      <dc:date>2021-03-30T16:29:46Z</dc:date>
    </item>
  </channel>
</rss>

