<?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 Interval match within multiple instances in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915698#M75406</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am struggling to crack below given logic, Where we need to get the interval match with multiple time instances&lt;/P&gt;
&lt;P&gt;Need to create bucket(i.e. interval) on the basis of &lt;STRONG&gt;start&lt;/STRONG&gt; and &lt;STRONG&gt;end&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Input Table:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="191px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="61.0417px" height="19" class="xl63" style="height: 14.5pt; width: 48pt;"&gt;Job Id&lt;/TD&gt;
&lt;TD width="68.0833px" class="xl63" style="border-left: none; width: 48pt;"&gt;Start&lt;/TD&gt;
&lt;TD width="61.875px" class="xl63" style="border-left: none; width: 48pt;"&gt;End&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="61.0417px" height="19" align="right" class="xl63" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="68.0833px" align="right" class="xl64" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="61.875px" align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output Table:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" width="256" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" class="xl65" style="height: 14.5pt; width: 48pt;"&gt;Job Id&lt;/TD&gt;
&lt;TD width="63.7083px" class="xl65" style="border-left: none; width: 48pt;"&gt;Start&lt;/TD&gt;
&lt;TD width="63.7083px" class="xl65" style="border-left: none; width: 48pt;"&gt;End&lt;/TD&gt;
&lt;TD width="63.9896px" class="xl67" style="border-left: none; width: 48pt;"&gt;Interval&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" align="right" class="xl65" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;TD width="63.9896px" align="right" class="xl67" style="border-top: none; border-left: none;"&gt;8am&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" align="right" class="xl65" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;TD width="63.9896px" align="right" class="xl67" style="border-top: none; border-left: none;"&gt;9am&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" align="right" class="xl65" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;TD width="63.9896px" align="right" class="xl67" style="border-top: none; border-left: none;"&gt;10am&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" align="right" class="xl65" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;TD width="63.9896px" align="right" class="xl67" style="border-top: none; border-left: none;"&gt;11am&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Thu, 07 Apr 2022 08:31:52 GMT</pubDate>
    <dc:creator>lionking15</dc:creator>
    <dc:date>2022-04-07T08:31:52Z</dc:date>
    <item>
      <title>Interval match within multiple instances</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915698#M75406</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I am struggling to crack below given logic, Where we need to get the interval match with multiple time instances&lt;/P&gt;
&lt;P&gt;Need to create bucket(i.e. interval) on the basis of &lt;STRONG&gt;start&lt;/STRONG&gt; and &lt;STRONG&gt;end&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Input Table:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 144pt;" border="0" width="191px" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="61.0417px" height="19" class="xl63" style="height: 14.5pt; width: 48pt;"&gt;Job Id&lt;/TD&gt;
&lt;TD width="68.0833px" class="xl63" style="border-left: none; width: 48pt;"&gt;Start&lt;/TD&gt;
&lt;TD width="61.875px" class="xl63" style="border-left: none; width: 48pt;"&gt;End&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="61.0417px" height="19" align="right" class="xl63" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="68.0833px" align="right" class="xl64" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="61.875px" align="right" class="xl64" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output Table:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 192pt;" border="0" width="256" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" class="xl65" style="height: 14.5pt; width: 48pt;"&gt;Job Id&lt;/TD&gt;
&lt;TD width="63.7083px" class="xl65" style="border-left: none; width: 48pt;"&gt;Start&lt;/TD&gt;
&lt;TD width="63.7083px" class="xl65" style="border-left: none; width: 48pt;"&gt;End&lt;/TD&gt;
&lt;TD width="63.9896px" class="xl67" style="border-left: none; width: 48pt;"&gt;Interval&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" align="right" class="xl65" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;TD width="63.9896px" align="right" class="xl67" style="border-top: none; border-left: none;"&gt;8am&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" align="right" class="xl65" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;TD width="63.9896px" align="right" class="xl67" style="border-top: none; border-left: none;"&gt;9am&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" align="right" class="xl65" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;TD width="63.9896px" align="right" class="xl67" style="border-top: none; border-left: none;"&gt;10am&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 14.5pt;"&gt;
&lt;TD width="63.5938px" height="19" align="right" class="xl65" style="height: 14.5pt; border-top: none;"&gt;1&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;08:15am&lt;/TD&gt;
&lt;TD width="63.7083px" align="right" class="xl66" style="border-top: none; border-left: none;"&gt;11:13am&lt;/TD&gt;
&lt;TD width="63.9896px" align="right" class="xl67" style="border-top: none; border-left: none;"&gt;11am&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 07 Apr 2022 08:31:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915698#M75406</guid>
      <dc:creator>lionking15</dc:creator>
      <dc:date>2022-04-07T08:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Interval match within multiple instances</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915712#M75408</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd try doing it the other way around, should get you the result you want if you create the interval hours and match them in.&lt;/P&gt;
&lt;P&gt;For example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;IntervalHours:
LOAD time(Hours,'hh:mm') as Hours Inline[
Hours
01:00
02:00
03:00
04:00
05:00
06:00
07:00
08:00
09:00
10:00
11:00
12:00
13:00
14:00
15:00
16:00
17:00
18:00
19:00
20:00
21:00
22:00
23:00
];

OrderLog:
LOAD time(Start,'hh:mm') as Start,
	 time(End,'hh:mm') as End,
	 Job_Id as [Job Id] INLINE [
Start, End, Job_Id
08:15, 11:13, 1
];

Inner Join IntervalMatch (Hours)
 
LOAD Start, End
Resident OrderLog;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 08:57:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915712#M75408</guid>
      <dc:creator>Qbo</dc:creator>
      <dc:date>2022-04-07T08:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Interval match within multiple instances</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915727#M75410</link>
      <description>&lt;P&gt;Hi, I have other solution, but not sure how it will work with am, pm format. Maybe you can reuse it to your solution:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;temp:
load * inline [
JobId, 	Start, 	End,
1, 	08:15 ,	11:13
2 ,  09:00, 14:00	
];

NoConcatenate
main_temp:

load * resident temp;
concatenate(main_temp) 
load distinct JobId, Start, End,
              hour(Start)+iterno()-1 as Interval
       resident temp while hour(Start) + iterno()-1 &amp;lt;= hour(End);
       
NoConcatenate
main:
load * resident main_temp
where not IsNull(Interval);

drop table temp,main_temp;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 09:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915727#M75410</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2022-04-07T09:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Interval match within multiple instances</title>
      <link>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915803#M75416</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/155226"&gt;@justISO&lt;/a&gt;&amp;nbsp;It worked for me&lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 12:08:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Interval-match-within-multiple-instances/m-p/1915803#M75416</guid>
      <dc:creator>lionking15</dc:creator>
      <dc:date>2022-04-07T12:08:30Z</dc:date>
    </item>
  </channel>
</rss>

