<?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: Loop for every minute between a time frame? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loop-for-every-minute-between-a-time-frame/m-p/609029#M224874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do it for time:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;let MinTime = num(Time#('12:00','hh:mm'));&lt;/P&gt;
&lt;P&gt;let MaxTime = num(Time#('12:20','hh:mm'));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load Time($(MinTime)-1/1440+iterno()/1440,'hh:mm') as Time autogenerate 1 While iterno()/1440 &amp;lt;= $(MaxTime)+2/1440 - $(MinTime);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;let MinTime = null();&lt;/P&gt;
&lt;P&gt;let MaxTime = null();&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Apr 2014 13:49:57 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2014-04-07T13:49:57Z</dc:date>
    <item>
      <title>Loop for every minute between a time frame?</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-for-every-minute-between-a-time-frame/m-p/609028#M224873</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;Below I have posted a link to a similar problem. I have tried the solution, but doesn't work for time, only for date fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I have run a loop so it makes a new row of data for every date between the 2 specified dates for the original row. This will create a new field with this new date which will be one of those dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question is, what if I want to do the same for the time? So if I have StartTime: 12:00 and EndTime of:12:20, I would like to loop it so that I have 21 rows of data for each of the minutes..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that possible to do with the minutes also and not just the days(date)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno Pereira&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/47114"&gt;capture dates in between start date and end date&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 11:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-for-every-minute-between-a-time-frame/m-p/609028#M224873</guid>
      <dc:creator />
      <dc:date>2014-04-07T11:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Loop for every minute between a time frame?</title>
      <link>https://community.qlik.com/t5/QlikView/Loop-for-every-minute-between-a-time-frame/m-p/609029#M224874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should do it for time:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;let MinTime = num(Time#('12:00','hh:mm'));&lt;/P&gt;
&lt;P&gt;let MaxTime = num(Time#('12:20','hh:mm'));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;Load Time($(MinTime)-1/1440+iterno()/1440,'hh:mm') as Time autogenerate 1 While iterno()/1440 &amp;lt;= $(MaxTime)+2/1440 - $(MinTime);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;let MinTime = null();&lt;/P&gt;
&lt;P&gt;let MaxTime = null();&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Apr 2014 13:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loop-for-every-minute-between-a-time-frame/m-p/609029#M224874</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-04-07T13:49:57Z</dc:date>
    </item>
  </channel>
</rss>

