<?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: Populate fields between a start time and end time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750501#M57748</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95912"&gt;@rmistry07&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;LOAD
    Activity,
    ViewingDate,
    User,
    Device,
    ViewingTime,
    time(time#(ViewingTime,'hhmm'))+MakeTime(0,IterNo()-1) as ViewingTimeNew,
    TimeonPage,
    EndTime,
    PageRef,
    Page,
    PageLaunchDate,
    PageLaunchTime,
    deviceinuse,
    Browser,
    TotalViewers
FROM [lib://Web]
(html, utf8, embedded labels, table is @1)
while IterNo()&amp;lt;=Minute(time(Time#(EndTime,'hhmm'))- time(time#(ViewingTime,'hhmm')))+1;&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 07 Oct 2020 21:39:24 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-10-07T21:39:24Z</dc:date>
    <item>
      <title>Populate fields between a start time and end time</title>
      <link>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750428#M57739</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I hope someone will be able to help me with this.&lt;/P&gt;&lt;P&gt;I have a small part of a dataset that is a timeline of hits on a different webpages on a site. See example below:&lt;/P&gt;&lt;TABLE width="999px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="61px"&gt;Activity&lt;/TD&gt;&lt;TD width="95px"&gt;ViewingDate&lt;/TD&gt;&lt;TD width="42px"&gt;User&lt;/TD&gt;&lt;TD width="56px"&gt;Device&lt;/TD&gt;&lt;TD width="100px"&gt;ViewingTime&amp;nbsp;&lt;/TD&gt;&lt;TD width="95px"&gt;TimeonPage&lt;/TD&gt;&lt;TD width="71px"&gt;EndTime&lt;/TD&gt;&lt;TD width="65px"&gt;PageRef&lt;/TD&gt;&lt;TD width="94px"&gt;Page&lt;/TD&gt;&lt;TD width="124px"&gt;PageLaunchDate&lt;/TD&gt;&lt;TD width="126px"&gt;PageLaunchTime&lt;/TD&gt;&lt;TD width="91px"&gt;deviceinuse&lt;/TD&gt;&lt;TD width="67px"&gt;Browser&lt;/TD&gt;&lt;TD width="63px"&gt;TotalViewers&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="61px"&gt;1-7 PM&lt;/TD&gt;&lt;TD width="95px"&gt;20201002&lt;/TD&gt;&lt;TD width="42px"&gt;1&lt;/TD&gt;&lt;TD width="56px"&gt;01&lt;/TD&gt;&lt;TD width="100px"&gt;0753&lt;/TD&gt;&lt;TD width="95px"&gt;0002&lt;/TD&gt;&lt;TD width="71px"&gt;0754&lt;/TD&gt;&lt;TD width="65px"&gt;00036&lt;/TD&gt;&lt;TD width="94px"&gt;Microneedle Vaccine - English (UK)&lt;/TD&gt;&lt;TD width="124px"&gt;20201001&lt;/TD&gt;&lt;TD width="126px"&gt;1957&lt;/TD&gt;&lt;TD width="91px"&gt;0033&lt;/TD&gt;&lt;TD width="67px"&gt;6&lt;/TD&gt;&lt;TD width="63px"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="61px"&gt;1-7 PM&lt;/TD&gt;&lt;TD width="95px"&gt;20201002&lt;/TD&gt;&lt;TD width="42px"&gt;2&lt;/TD&gt;&lt;TD width="56px"&gt;01&lt;/TD&gt;&lt;TD width="100px"&gt;2216&lt;/TD&gt;&lt;TD width="95px"&gt;0002&lt;/TD&gt;&lt;TD width="71px"&gt;2217&lt;/TD&gt;&lt;TD width="65px"&gt;00044&lt;/TD&gt;&lt;TD width="94px"&gt;Microneedle vaccine - Welsh&lt;/TD&gt;&lt;TD width="124px"&gt;20201001&lt;/TD&gt;&lt;TD width="126px"&gt;1957&lt;/TD&gt;&lt;TD width="91px"&gt;0033&lt;/TD&gt;&lt;TD width="67px"&gt;6&lt;/TD&gt;&lt;TD width="63px"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create a graph that shows the entire timeline of the day and TotalViewers, which can later be filtered by webpages and all the other variables in the table headers.&lt;/P&gt;&lt;P&gt;So I think I need to create a table like above but for each minute between the ViewingTime and EndTime, a new row is created that is identical to the row its derived from. Could someone explain how I would do this in the qlik data loader for every single possible row in the dataset?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this seems like a lot of work but i would appreciate any help&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:00:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750428#M57739</guid>
      <dc:creator>rmistry07</dc:creator>
      <dc:date>2024-11-16T18:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Populate fields between a start time and end time</title>
      <link>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750494#M57746</link>
      <description>&lt;P&gt;are you saying you need to create a row for each minute between view time and end time?&amp;nbsp; so for 1st row, you want&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Time:&lt;BR /&gt;0753&lt;BR /&gt;0754&lt;BR /&gt;&lt;BR /&gt;so it end time were 0755:&lt;/P&gt;&lt;P&gt;0753&lt;BR /&gt;0754&lt;BR /&gt;0755&lt;/P&gt;&lt;P&gt;and all other fields are exactly the same?&lt;BR /&gt;&lt;BR /&gt;maybe you dont need to create the rows, you can create a bridge instead.&amp;nbsp; the concept will be like the following:&lt;BR /&gt;&lt;BR /&gt;in your table, format it as hh:mm add the following: VIEW TIME &amp;amp; '|' &amp;amp; END TIME as %KEY&lt;BR /&gt;&lt;BR /&gt;in your bridge you will have the following values:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;TABLE border="1" width="44.44444444444445%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;%KEY&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;TIME&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;07:53|07:54&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;07:53&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;07:53|07:54&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="25px"&gt;07:54&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;this way you can create a chart using TIME as your dimension and measure will be how you want in in a regular chart.&amp;nbsp; the diff is that this allows you to plot across all time.&amp;nbsp; and if you have huge data you dont need to use up resource for duplicate info you dont need.&lt;/P&gt;&lt;P&gt;obviously, this is assuming you wanted to plot something by time of day and not a date time basis&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data:
load time(ViewingTime,'hh:mm') as ViewingTime, 
time(EndTime,'hh:mm') as EndTime,
time(ViewingTime,'hh:mm') &amp;amp; '|' &amp;amp; time(EndTime,'hh:mm') as %Key inline [
ViewingTime,EndTime	
07:54, 07:55
22:16, 22:17
09:22, 09:28
];

NoConcatenate
Times:
load time(time('00:00','hh:mm') + (RowNo() -1)/(24*60),'hh:mm') as time
AutoGenerate (60*24);

NoConcatenate
tmpBridge:
load Distinct
%Key,
EndTime,
ViewingTime
resident
data
;


inner join (tmpBridge)
load time
Resident
Times;


NoConcatenate
bridge:
load
%Key,
time
Resident
tmpBridge
where time &amp;gt;= ViewingTime
and time &amp;lt;=EndTime
;

drop table tmpBridge;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/41887i998CBD3952DCEA49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 20:18:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750494#M57746</guid>
      <dc:creator>edwin</dc:creator>
      <dc:date>2020-10-07T20:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Populate fields between a start time and end time</title>
      <link>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750501#M57748</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/95912"&gt;@rmistry07&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;LOAD
    Activity,
    ViewingDate,
    User,
    Device,
    ViewingTime,
    time(time#(ViewingTime,'hhmm'))+MakeTime(0,IterNo()-1) as ViewingTimeNew,
    TimeonPage,
    EndTime,
    PageRef,
    Page,
    PageLaunchDate,
    PageLaunchTime,
    deviceinuse,
    Browser,
    TotalViewers
FROM [lib://Web]
(html, utf8, embedded labels, table is @1)
while IterNo()&amp;lt;=Minute(time(Time#(EndTime,'hhmm'))- time(time#(ViewingTime,'hhmm')))+1;&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Oct 2020 21:39:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750501#M57748</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-07T21:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Populate fields between a start time and end time</title>
      <link>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750824#M57787</link>
      <description>&lt;P&gt;Thank you edwin, this is a much better way of doing what I need. I appreciate the help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 17:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750824#M57787</guid>
      <dc:creator>rmistry07</dc:creator>
      <dc:date>2020-10-08T17:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Populate fields between a start time and end time</title>
      <link>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750826#M57789</link>
      <description>&lt;P&gt;Thank you Kush. I think this would work if my dataset was smaller.&lt;/P&gt;&lt;P&gt;But its taken over 4 hours and still not loaded, which is because of my methodology.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Oct 2020 17:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Populate-fields-between-a-start-time-and-end-time/m-p/1750826#M57789</guid>
      <dc:creator>rmistry07</dc:creator>
      <dc:date>2020-10-08T17:39:11Z</dc:date>
    </item>
  </channel>
</rss>

