<?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: Load date based on predefined Times in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942495#M956162</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vTime = num(If(Hour(Now())&amp;lt;10,MakeTime(6,30),If(Hour(Now())&amp;lt;18,MakeTime(14,30),If(Hour(Now())&amp;lt;23,MakeTime(22,30)))));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Nov 2015 11:15:31 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-11-05T11:15:31Z</dc:date>
    <item>
      <title>Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942492#M956159</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;My script loads every one hour. here i want to load the data with the check on event time and reload time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex - I have three predefined hours&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;06:30 , 14:30 and 22:30&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if my script loads 10:00 AM i want to load all events happen before 06:30 AM&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if my script loads 06:00 PM i want to load all events happen before 02:30 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;if my script loads 11:00 PM i want to load all events happen before 10:30 PM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I take hours as cut off limits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Please help me to do this&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 09:13:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942492#M956159</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-05T09:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942493#M956160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTime = num(pick(match(Hour(Now()),'10','18','23'), MakeTime(6,30), MakeTime(14,30), MakeTime(22,30)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyData:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;FROM MySource&lt;/P&gt;&lt;P&gt;WHERE MyTime &amp;lt; $(vTime);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 10:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942493#M956160</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-05T10:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942494#M956161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But here script load times may very and i want to check what is the closed time to script load time.&lt;/P&gt;&lt;P&gt;Then select that close time from 06.30,14.30,22.30 and load date grater than that time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 11:03:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942494#M956161</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-05T11:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942495#M956162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LET vTime = num(If(Hour(Now())&amp;lt;10,MakeTime(6,30),If(Hour(Now())&amp;lt;18,MakeTime(14,30),If(Hour(Now())&amp;lt;23,MakeTime(22,30)))));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 11:15:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942495#M956162</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-05T11:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942496#M956163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when loading script it says &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field not found - &amp;lt;&amp;lt;&amp;gt;&lt;/P&gt;&lt;P&gt;[HRM]:&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; MOV_ID as hmp_MOV_ID,&lt;/P&gt;&lt;P&gt; hmp_num,&lt;/P&gt;&lt;P&gt; HMP_time&lt;/P&gt;&lt;P&gt; RESIDENT&amp;nbsp; HISTORY where HMP &amp;lt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 11:34:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942496#M956163</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-05T11:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942497#M956164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, there were some typos in my last post. Try again with this one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTime = num(If(Hour(Now())&amp;lt;10,MakeTime(6,30),If(Hour(Now())&amp;lt;18,MakeTime(14,30),If(Hour(Now())&amp;lt;23,MakeTime(22,30)))));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 11:38:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942497#M956164</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-05T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942498#M956165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;another one more thing ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i want to categorize basd on shift times how can i do that,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if(mydate&amp;lt;= $(vTime) - Hour(8) , 'S1',if(&lt;SPAN style="font-size: 13.3333px;"&gt;mydate&lt;/SPAN&gt;&amp;gt; $(vTime) -Hour(8) and &lt;SPAN style="font-size: 13.3333px;"&gt;mydate&lt;/SPAN&gt; &amp;lt;= $(vTime) - Hour(16) , 'S2',if(&lt;SPAN style="font-size: 13.3333px;"&gt;mydate&lt;/SPAN&gt; &amp;gt; $(vTime) - Hour(16) and &lt;SPAN style="font-size: 13.3333px;"&gt;mydate&lt;/SPAN&gt;&amp;lt;= $(vTime) - Hour(24) , 'S3'))) as shifts &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in script but not work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:11:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942498#M956165</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-05T13:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942499#M956166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this: if(frac(mydate)&amp;lt; 1/3, 'S1', if(frac(mydate)&amp;lt;2/3,'S2', 'S3')) as shift. 8 hours is one third of a day, 8 divided by 24 or 1/3. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942499#M956166</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-05T13:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942500#M956167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But my shift times are different &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;06:30 , 14:30 and 22:30&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942500#M956167</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-05T13:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942501#M956168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you'll need to adapt the expression so it fits your needs. If you know how to perform divisions then this shouldn't be any problem. what is 6.5 divided by 24?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 13:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942501#M956168</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-11-05T13:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load date based on predefined Times</title>
      <link>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942502#M956169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not that accurate,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please find attached for times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to put them to latest 3 shifts,&lt;/P&gt;&lt;P&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;06:30 - 14:30 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;14:30 - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;22:30&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;22:30 - 06.30 next day &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2015 14:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-date-based-on-predefined-Times/m-p/942502#M956169</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-05T14:16:16Z</dc:date>
    </item>
  </channel>
</rss>

