<?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 script interval in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746978#M721028</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;another example might be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikCommunity_Thread_t5_New-to-QlikView_Load-script-interval_td-p_1746784_Pic1.PNG" style="width: 272px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41180i356CBB39BBB76FD6/image-dimensions/272x987?v=v2" width="272" height="987" role="button" title="QlikCommunity_Thread_t5_New-to-QlikView_Load-script-interval_td-p_1746784_Pic1.PNG" alt="QlikCommunity_Thread_t5_New-to-QlikView_Load-script-interval_td-p_1746784_Pic1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;LI-CODE lang="markup"&gt;table1:
LOAD Part,
     Timestamp#(CreationDate,'MM/DD/YYYY hh:mm') as CreationDate,
     Value 
Inline [
    Part, CreationDate, Value
    A, 09/24/2020 10:00, 1
    A, 09/24/2020 10:03, 0
    A, 09/24/2020 10:06, 1
    A, 09/24/2020 10:10, 0
    B, 09/24/2020 10:04, 1
    B, 09/24/2020 10:06, 0
    B, 09/24/2020 10:09, 1
    C, 09/24/2020 09:50, 1
    C, 09/24/2020 09:55, 0
];

Join
LOAD  Fieldvalue('Part',IterNo()) as Part, *
While IterNo() &amp;lt;= FieldValueCount('Part');
LOAD  Timestamp#(Timestamp(MinCreationDate+(IterNo()-1)*'00:01','MM/DD/YYYY hh:mm'),'MM/DD/YYYY hh:mm') as CreationDate
While Timestamp#(Timestamp(MinCreationDate+(IterNo()-1)*'00:01','MM/DD/YYYY hh:mm'),'MM/DD/YYYY hh:mm') &amp;lt;= MaxCreationDate;
LOAD  Timestamp(Min(Fieldvalue('CreationDate',RecNo())),'MM/DD/YYYY hh:mm') as MinCreationDate,
      Timestamp(Max(Fieldvalue('CreationDate',RecNo())),'MM/DD/YYYY hh:mm') as MaxCreationDate
AutoGenerate FieldValueCount('CreationDate');

NoConcatenate
table2:
LOAD Part,
     CreationDate,
     If(IsNull(Value) and Part=Previous(Part), Peek(Value), Value) as Value
Resident table1
Order By Part, CreationDate;

DROP Table table1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2020 21:06:45 GMT</pubDate>
    <dc:creator>MarcoWedel</dc:creator>
    <dc:date>2020-09-24T21:06:45Z</dc:date>
    <item>
      <title>Load script interval</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746784#M721025</link>
      <description>&lt;P&gt;Hi ALL&lt;/P&gt;&lt;P&gt;I get such data [Table 1] and I need to convert them into the form shown in Table 2&lt;BR /&gt;I need to do an interval every minute and assign VALUE and Part to this interval&lt;BR /&gt;Anyone have any idea how to do this ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QV85_0-1600948047698.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41146i37D30A9E258B11BB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="QV85_0-1600948047698.png" alt="QV85_0-1600948047698.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746784#M721025</guid>
      <dc:creator>QV85</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load script interval</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746801#M721026</link>
      <description>&lt;P&gt;Here is one way to do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Table:
LOAD * INLINE [
    Part, CreationDate, Value
    A, 09/24/2020 10:00, 1
    A, 09/24/2020 10:03, 0
    A, 09/24/2020 10:06, 1
    B, 09/24/2020 10:04, 1
    B, 09/24/2020 10:06, 0
    B, 09/24/2020 10:09, 1
];

tmpTable:
LOAD TimeStamp(MinDate + MakeTime(0, IterNo()-1)) as CreationDate,
	 Round((MinDate + MakeTime(0, IterNo()-1))*24*60) as CreationDateNum
While TimeStamp(MinDate + MakeTime(0, IterNo()-1)) &amp;lt;= MaxDate;
LOAD Min(CreationDate) as MinDate,
	 Max(CreationDate) as MaxDate
Resident Table;

Left Join (tmpTable)
LOAD Distinct Part
Resident Table;

Left Join (tmpTable)
LOAD Part,
	 Round(CreationDate*24*60) as CreationDateNum,
	 Value
Resident Table;

DROP Table Table;

FinalTable:
NoConcatenate
LOAD Part,
	 CreationDate,
	 If(Part = Previous(Part), If(Len(Trim(Value)) = 0, Peek('Value'), Value), Value) as Value
Resident tmpTable
Order By Part, CreationDateNum;

DROP Table tmpTable;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 24 Sep 2020 12:32:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746801#M721026</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-09-24T12:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Load script interval</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746815#M721027</link>
      <description>&lt;P&gt;Thank you very much&lt;BR /&gt;unfortunately there is no data in FinalTable&lt;BR /&gt;3 Fields, 0 Rows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 12:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746815#M721027</guid>
      <dc:creator>QV85</dc:creator>
      <dc:date>2020-09-24T12:51:56Z</dc:date>
    </item>
    <item>
      <title>Re: Load script interval</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746978#M721028</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;another example might be:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="QlikCommunity_Thread_t5_New-to-QlikView_Load-script-interval_td-p_1746784_Pic1.PNG" style="width: 272px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41180i356CBB39BBB76FD6/image-dimensions/272x987?v=v2" width="272" height="987" role="button" title="QlikCommunity_Thread_t5_New-to-QlikView_Load-script-interval_td-p_1746784_Pic1.PNG" alt="QlikCommunity_Thread_t5_New-to-QlikView_Load-script-interval_td-p_1746784_Pic1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;LI-CODE lang="markup"&gt;table1:
LOAD Part,
     Timestamp#(CreationDate,'MM/DD/YYYY hh:mm') as CreationDate,
     Value 
Inline [
    Part, CreationDate, Value
    A, 09/24/2020 10:00, 1
    A, 09/24/2020 10:03, 0
    A, 09/24/2020 10:06, 1
    A, 09/24/2020 10:10, 0
    B, 09/24/2020 10:04, 1
    B, 09/24/2020 10:06, 0
    B, 09/24/2020 10:09, 1
    C, 09/24/2020 09:50, 1
    C, 09/24/2020 09:55, 0
];

Join
LOAD  Fieldvalue('Part',IterNo()) as Part, *
While IterNo() &amp;lt;= FieldValueCount('Part');
LOAD  Timestamp#(Timestamp(MinCreationDate+(IterNo()-1)*'00:01','MM/DD/YYYY hh:mm'),'MM/DD/YYYY hh:mm') as CreationDate
While Timestamp#(Timestamp(MinCreationDate+(IterNo()-1)*'00:01','MM/DD/YYYY hh:mm'),'MM/DD/YYYY hh:mm') &amp;lt;= MaxCreationDate;
LOAD  Timestamp(Min(Fieldvalue('CreationDate',RecNo())),'MM/DD/YYYY hh:mm') as MinCreationDate,
      Timestamp(Max(Fieldvalue('CreationDate',RecNo())),'MM/DD/YYYY hh:mm') as MaxCreationDate
AutoGenerate FieldValueCount('CreationDate');

NoConcatenate
table2:
LOAD Part,
     CreationDate,
     If(IsNull(Value) and Part=Previous(Part), Peek(Value), Value) as Value
Resident table1
Order By Part, CreationDate;

DROP Table table1;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 21:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1746978#M721028</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2020-09-24T21:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Load script interval</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1747063#M721029</link>
      <description>&lt;P&gt;Thanks a lot Marco&lt;BR /&gt;this is exactly what I was looking for&lt;BR /&gt;works perfect&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 08:10:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1747063#M721029</guid>
      <dc:creator>QV85</dc:creator>
      <dc:date>2020-09-25T08:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Load script interval</title>
      <link>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1748680#M721030</link>
      <description>&lt;P&gt;you're welcome&lt;/P&gt;&lt;P&gt;please close your thread&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 22:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-script-interval/m-p/1748680#M721030</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2020-09-30T22:33:28Z</dc:date>
    </item>
  </channel>
</rss>

