<?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: IntervalMatch using TimeStamp() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1600591#M444244</link>
    <description>&lt;P&gt;seems to work if you use date# function instead of timestamp function.&lt;/P&gt;&lt;P&gt;give this a try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeslots:
load * Inline
[
from_time, to_time
'08:00:00', '08:14:59'
'08:15:00', '08:29:59'
'08:30:00', '08:44:59'
'08:45:00', '08:59:59'
];

master_cal:
load * inline
[date1
"07/01/2019"
"07/02/2019"
];

NoConcatenate
temp1:
load date1 resident master_cal;
join(temp1) load from_time, to_time resident timeslots;

NoConcatenate

temp2:
load
date#(date1&amp;amp;' '&amp;amp;from_time,'DD/MM/YYYY hh:mm:ss') as "FromTime1", 
date#(date1&amp;amp;' '&amp;amp;to_time,'DD/MM/YYYY hh:mm:ss') as "ToTime1" 
resident temp1;
drop table temp1;
data:
load * inline
[
name, loginTime
"Rayna", "07/01/2019 08:14:00"
"Anselm", "07/01/2019 08:48:00"
"Rayna", "07/02/2019 08:32:00"
"Anselm", "07/02/2019 08:06:00"
];

data1:
load name, date#(loginTime,'DD/MM/YYYY hh:mm:ss') as loginTime1
Resident data;

IntervalMatch (loginTime1)
load FromTime1, ToTime1 resident temp2;

drop table data;&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 09 Jul 2019 19:19:45 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2019-07-09T19:19:45Z</dc:date>
    <item>
      <title>IntervalMatch using TimeStamp()</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1600518#M444229</link>
      <description>&lt;P&gt;My colleague and I are trying to intervalmatch() a dateTime field.&amp;nbsp; The code below shows onscreen as producing identically formatted fields that look as though they should compare, but they do not.&amp;nbsp; Can anyone see where we are going stray?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;timeslots:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;load * Inline&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;from_time, to_time&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'08:00:00', '08:14:59'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'08:15:00', '08:29:59'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'08:30:00', '08:44:59'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;'08:45:00', '08:59:59'&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;master_cal:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;load * inline&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[date1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"07/01/2019"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"07/02/2019"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;temp1:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;load date1 resident master_cal;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;join(temp1) load from_time, to_time resident timeslots;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;temp2:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;timestamp#(date1&amp;amp;' '&amp;amp;from_time) as "FromTime1", &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;timestamp#(date1&amp;amp;' '&amp;amp;to_time) as "ToTime1" &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;resident temp1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table temp1;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;load * inline&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;[&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;name, loginTime&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"Rayna", "07/01/2019 08:14:00"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"Anselm", "07/01/2019 08:48:00"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"Rayna", "07/02/2019 08:32:00"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"Anselm", "07/02/2019 08:06:00"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;data1:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;load name, timestamp#((loginTime)) as loginTime1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident data;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt;IntervalMatch (&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;loginTime1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;load FromTime1, ToTime1 resident temp2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table data;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is what is produced.&amp;nbsp; We have tried a number of different number and date formats but they do not want to match.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="qlik.JPG" style="width: 744px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/15154iA8ACDD25C6FCE2CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="qlik.JPG" alt="qlik.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:03:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1600518#M444229</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2024-11-16T03:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch using TimeStamp()</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1600586#M444242</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you need to force a join on your interval match &amp;amp; throw away some of your temporary tables, so try this after your load to data1;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;left join (data1)
IntervalMatch (loginTime1)
load FromTime1, ToTime1 resident temp2;

drop tables data, timeslots,temp2;&lt;/LI-CODE&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chris.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:10:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1600586#M444242</guid>
      <dc:creator>chrismarlow</dc:creator>
      <dc:date>2019-07-09T19:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch using TimeStamp()</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1600591#M444244</link>
      <description>&lt;P&gt;seems to work if you use date# function instead of timestamp function.&lt;/P&gt;&lt;P&gt;give this a try:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeslots:
load * Inline
[
from_time, to_time
'08:00:00', '08:14:59'
'08:15:00', '08:29:59'
'08:30:00', '08:44:59'
'08:45:00', '08:59:59'
];

master_cal:
load * inline
[date1
"07/01/2019"
"07/02/2019"
];

NoConcatenate
temp1:
load date1 resident master_cal;
join(temp1) load from_time, to_time resident timeslots;

NoConcatenate

temp2:
load
date#(date1&amp;amp;' '&amp;amp;from_time,'DD/MM/YYYY hh:mm:ss') as "FromTime1", 
date#(date1&amp;amp;' '&amp;amp;to_time,'DD/MM/YYYY hh:mm:ss') as "ToTime1" 
resident temp1;
drop table temp1;
data:
load * inline
[
name, loginTime
"Rayna", "07/01/2019 08:14:00"
"Anselm", "07/01/2019 08:48:00"
"Rayna", "07/02/2019 08:32:00"
"Anselm", "07/02/2019 08:06:00"
];

data1:
load name, date#(loginTime,'DD/MM/YYYY hh:mm:ss') as loginTime1
Resident data;

IntervalMatch (loginTime1)
load FromTime1, ToTime1 resident temp2;

drop table data;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:19:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1600591#M444244</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2019-07-09T19:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch using TimeStamp()</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1608230#M444892</link>
      <description>&lt;P&gt;Hey Rayna, not sure if either of the other posts got you what you needed, if they did, be sure to give the guys credit by clicking on the Accept as Solution button if so.&amp;nbsp; Here is a Design Blog link that might help a bit further if you are still working on things:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/IntervalMatch/ba-p/1464547" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/IntervalMatch/ba-p/1464547&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Not sure if you found all the Help either, so here are those links too:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/IntervalMatch.htm" target="_blank"&gt;http://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/ScriptPrefixes/IntervalMatch.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/IntervalMatch_(Extended_Syntax).htm" target="_blank"&gt;http://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/IntervalMatch_(Extended_Syntax).htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hopefully this helps if you are still working on things.&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 19:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1608230#M444892</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-07-31T19:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch using TimeStamp()</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1608256#M444896</link>
      <description>&lt;P&gt;Hey Brett!&amp;nbsp; Thanks for chiming in.&amp;nbsp; My colleague and I knew to use the intervalmatch piece; but it just was not working that day for us and was making us crazy, because we knew it should.&lt;/P&gt;&lt;P&gt;I am fairly certain we tried both of the two responses and met with some success with both.&amp;nbsp; In the end, they led us to whatever wound up working, because it's working fine now but the code doesn't currently really resemble either answer.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2019 20:23:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-using-TimeStamp/m-p/1608256#M444896</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2019-07-31T20:23:12Z</dc:date>
    </item>
  </channel>
</rss>

