<?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 - Autogenerate for 5 seconds Interval *** in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327693#M120641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: mceinline;"&gt;Hi D V,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;timestamp(daystart(makedate(2011,8,8))+(recno()-1)*5/(60*60*24)+1/(60*60*24)) as starttime,&lt;/P&gt;&lt;P&gt;timestamp(daystart(makedate(2011,8,8))+(recno()*5/(60*60*24))) as endtime&lt;/P&gt;&lt;P&gt;autogenerate 60/5*60*24*13;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2011 16:24:09 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-10-11T16:24:09Z</dc:date>
    <item>
      <title>*** Load Script - Autogenerate for 5 seconds Interval ***</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327692#M120640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Dear All,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;I hope someone can help me. I am generating a Load Script which has seconds interval between 8/8/2011 to 8/21/2011.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Something like this...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="120" style="width: 368px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="130"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;StartTime&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;TD width="130"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;&lt;STRONG&gt;EndTime&lt;/STRONG&gt;&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;08/08/2011&amp;nbsp; 00:00:01&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;08/08/2011 00:00:05&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;08/08/2011&amp;nbsp; 00:00:06&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;08/08/2011 00:00:10&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl65" height="20"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;08/08/2011&amp;nbsp; 00:00:11&lt;/EM&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65"&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;08/08/2011 00:00:15&lt;/EM&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;My idea is to use the TimeStamp Function and format the numbers. Please suggest if there is better approach. I understand I can quickly do it in Excel but I wanted to achieve this in QV.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-family: trebuchet ms,geneva;"&gt;Thanks in advance.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;Cheers - DV&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 16:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327692#M120640</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-10-11T16:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: *** Load Script - Autogenerate for 5 seconds Interval ***</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327693#M120641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: mceinline;"&gt;Hi D V,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;timestamp(daystart(makedate(2011,8,8))+(recno()-1)*5/(60*60*24)+1/(60*60*24)) as starttime,&lt;/P&gt;&lt;P&gt;timestamp(daystart(makedate(2011,8,8))+(recno()*5/(60*60*24))) as endtime&lt;/P&gt;&lt;P&gt;autogenerate 60/5*60*24*13;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 16:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327693#M120641</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-10-11T16:24:09Z</dc:date>
    </item>
    <item>
      <title>*** Load Script - Autogenerate for 5 seconds Interval ***</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327694#M120642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, DV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the script you need. You may need to adjust the limits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load MakeDate(2011,8,8)+ rowno()/24/60/12 as end,&lt;/P&gt;&lt;P&gt;(MakeDate(2011,8,8)+ (rowno()-1)/24/60/12)+(1/24/60/60) as start&lt;/P&gt;&lt;P&gt;AutoGenerate( (MakeDate(2011,8,21) - MakeDate(2011,8,8) ) * 24 * 60 * 12&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ideia, is to use autogenerate to create as many lines as you want. Then, I use rowno() to increase the timestamp according to the line within the loop. &lt;/P&gt;&lt;P&gt;To add 5 seconds, imagine that a date or a timestamp is an integer where each day is equal to 1. Then, 1 second is 1/24/60/60 and 5 seconds is 1/24/60/12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 16:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327694#M120642</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-10-11T16:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: *** Load Script - Autogenerate for 5 seconds Interval ***</title>
      <link>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327695#M120643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Thanks guys. This is more complex than I have asked. Because the StartDate and EndTime change and also the interval time changes dynamically. I'll come back to you guys with more questions.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Many thanks again for your help.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Erich - I hope you are doing well. Nice to see you active on community.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: trebuchet ms,geneva;"&gt;&lt;EM&gt;Cheers - DV&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 10:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Load-Script-Autogenerate-for-5-seconds-Interval/m-p/327695#M120643</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-10-12T10:53:06Z</dc:date>
    </item>
  </channel>
</rss>

