<?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: Time Conditional QVD save? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35954#M606512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample script you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD Num(Time#(Time_1, 'hh:mm')) as Time_1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; Num(Time#(Time_2, 'hh:mm')) as Time_2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; Row_No;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time_1, Time_2, Row_No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08:00, 09:45, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12:00, 13:45, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16:00, 17:45, 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20:00, 21:45, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FOR i = 1 to FieldValueCount('Row_No')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; LET vVar$(i)Start = FieldValue('Time_1', $(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; LET vVar$(i)End = FieldValue('Time_2', $(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;NEXT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;IF (Floor(Frac(Now()), 1/1440) &amp;gt; vVar1Start and Floor(Frac(Now()), 1/1440) &amp;lt; vVar1End) or (Floor(Frac(Now()), 1/1440) &amp;gt; vVar2Start and Floor(Frac(Now()), 1/1440) &amp;lt; vVar2End) or (Floor(Frac(Now()), 1/1440) &amp;gt; vVar3Start and Floor(Frac(Now()), 1/1440) &amp;lt; vVar3End) or (Floor(Frac(Now()), 1/1440) &amp;gt; vVar4Start and Floor(Frac(Now()), 1/1440) &amp;lt; vVar4End) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; STORE ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;ENDIF;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 May 2018 12:01:44 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-31T12:01:44Z</dc:date>
    <item>
      <title>Time Conditional QVD save?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35951#M606509</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;&lt;/P&gt;&lt;P&gt;How do I create a QVD based on a time condition. I have a script that runs every 30 mins however I only want to update part of the output within certain time-frames.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an inline table with an example schedule:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time_1, Time_2, Row_No&lt;/P&gt;&lt;P&gt;08:00, 09:45, 1&lt;/P&gt;&lt;P&gt;12:00, 13:45, 2&lt;/P&gt;&lt;P&gt;16:00, 17:45, 3&lt;/P&gt;&lt;P&gt;20:00, 21:45, 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only want my script to update the QVD if it runs between the times 1 and 2 as stated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been using the Now() function elsewhere in the document (carefully) however I don't know how to link it as a basis for the store QVD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help!! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 10:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35951#M606509</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2018-05-31T10:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Time Conditional QVD save?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35952#M606510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess create 8 variables and check Now() against all of them to see if it is between the two limits... if it is, then store... else nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF (Now() &amp;gt; vVar1Start and Now() &amp;lt; vVar1End) or (Now() &amp;gt; vVar2Start and Now() &amp;lt; vVar2End) or (Now() &amp;gt; vVar3Start and Now() &amp;lt; vVar3End) or (Now() &amp;gt; vVar4Start and Now() &amp;lt; vVar4End) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STORE .....;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 11:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35952#M606510</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-31T11:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Time Conditional QVD save?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35953#M606511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny I will give it a go - 2 quick related questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Do i need to set the times for the variables when doing my variable deceleration at the start of the doc or can i feed them somehow from the inline table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Do i need to do anything odd with regards to storing the times / comparing to Now() - past experience from the outside world has shown these things can act a bit odd if not considered in the correct format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 11:50:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35953#M606511</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2018-05-31T11:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Time Conditional QVD save?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35954#M606512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a sample script you can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD Num(Time#(Time_1, 'hh:mm')) as Time_1,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; Num(Time#(Time_2, 'hh:mm')) as Time_2,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; Row_No;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time_1, Time_2, Row_No&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08:00, 09:45, 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12:00, 13:45, 2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16:00, 17:45, 3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 20:00, 21:45, 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FOR i = 1 to FieldValueCount('Row_No')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; LET vVar$(i)Start = FieldValue('Time_1', $(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; LET vVar$(i)End = FieldValue('Time_2', $(i));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;NEXT;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;IF (Floor(Frac(Now()), 1/1440) &amp;gt; vVar1Start and Floor(Frac(Now()), 1/1440) &amp;lt; vVar1End) or (Floor(Frac(Now()), 1/1440) &amp;gt; vVar2Start and Floor(Frac(Now()), 1/1440) &amp;lt; vVar2End) or (Floor(Frac(Now()), 1/1440) &amp;gt; vVar3Start and Floor(Frac(Now()), 1/1440) &amp;lt; vVar3End) or (Floor(Frac(Now()), 1/1440) &amp;gt; vVar4Start and Floor(Frac(Now()), 1/1440) &amp;lt; vVar4End) THEN&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt; STORE ...;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;ENDIF;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 12:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35954#M606512</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-31T12:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Time Conditional QVD save?</title>
      <link>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35955#M606513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;having run it through a couple of times, i can confirm it works like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again Sunny for getting to the bottom of this one! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Time-Conditional-QVD-save/m-p/35955#M606513</guid>
      <dc:creator>chrismtb</dc:creator>
      <dc:date>2018-06-01T15:09:30Z</dc:date>
    </item>
  </channel>
</rss>

