<?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 not matching in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184378#M882343</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be helpful for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/170313"&gt;IntervalMatch on Time field&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Sep 2016 05:34:06 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-28T05:34:06Z</dc:date>
    <item>
      <title>Intervalmatch not matching</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184374#M882339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;To start, I've used this method before with good success.&amp;nbsp; I'm using the some of the same data sources, a spreadsheet with 2 columns: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="168"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="20" width="87"&gt;Interval Start&lt;/TD&gt;&lt;TD width="81"&gt;Interval End&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20"&gt;0:00&lt;/TD&gt;&lt;TD class="xl65"&gt;0:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;0:30&lt;/TD&gt;&lt;TD class="xl64"&gt;1:00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="20"&gt;1:00&lt;/TD&gt;&lt;TD class="xl65"&gt;1:30&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;1:30&lt;/TD&gt;&lt;TD class="xl64"&gt;2:00&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;both fields of Excel Time type (13:30).&amp;nbsp; I load the Time Interval data last, after loading Employee Schedule data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;EWFMSchedule:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOAD [Clndr Date] AS Date, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Agent Corp Login] AS Login, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Code, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Descr, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time([Start Moment]) AS [Start Moment], &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time([Stop Moment]) AS [Stop Moment],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval(Time([Stop Moment])-Time([Start Moment]), 'mm') AS Duration&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;[..\2.UserData\Shrink_EWFM_AgentSchedule.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is [EWFM Schedule]);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then load the Interval data and finally, invoke the intervalmatch function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;TimeInterval:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;LOAD Time([Interval Start]) AS [Interval Start], &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time([Interval End]) AS [Interval End]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;[..\2.UserData\TimeInterval.xlsx]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is TimeInterval);&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;IntervalMatch:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;IntervalMatch ([Start Moment])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;STRONG&gt;Load distinct [Interval Start], [Interval End] resident TimeInterval&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I drop all the components into a report block as List boxes, everything except Interval Start and Interval End work.&amp;nbsp; I can highlight a CODE, START or STOP MOMENT and all other objects filter correctly, except the Interval objects.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/138891_2.jpg" style="height: 145px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, the data model looks correct as well:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138890_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Matthew Cummings&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184374#M882339</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch not matching</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184375#M882340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additional Information:&amp;nbsp; If I'm reading the tea leaves correctly, the Intervalmatch() function is returning 0 matches.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138916_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I've tried a few tricks to make all datatypes the same and on the report block they look the same but repeated efforts to link the [Start Moment] to either of the TimeInterval fields has failed.&amp;nbsp; I've tried simple If statements to compare the fields "If([Start Moment]=[Interval Start], 1, 0) knowing that some of the Start Moments line up with some of the Interval Start times but to no avail.&amp;nbsp; There seems to be some internal differences between the two fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All responses are greatly appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 21:51:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184375#M882340</guid>
      <dc:creator />
      <dc:date>2016-09-27T21:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch not matching</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184376#M882341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved!&lt;/P&gt;&lt;P&gt;I understand Qlikview stores datetime objects in the same manor as MS; as a double precision floating point number.&amp;nbsp; I created List boxes for each field of concern and created within each listbox, a formula converting the field to a number.&amp;nbsp; I observed the [Start Moment] from the Schedule table still had values to the left of the decimal point where the [Interval Start] fields only had a 0 to the left of the decimal (no days, only h:m:ss).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further research revealed the Frac() function that effectively removes the whole integer from the field, leaving the decimal value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Time(Frac([Start Moment]), 'hh:mm:ss') AS [Start Moment]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my Intervalmatch function is comparing "Apples with Apples" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/laugh.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/138930_1.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;After:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2.jpg" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/138931_2.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The moral of this story is to take a close look at the underlying datatype before soliciting advice on a forum! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/cool.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 23:04:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184376#M882341</guid>
      <dc:creator />
      <dc:date>2016-09-27T23:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch not matching</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184377#M882342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;maybe try with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Time(&lt;SPAN style="color: #ff0000;"&gt;Frac(&lt;/SPAN&gt;[Start Moment]&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;) AS [Start Moment]&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead of&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Time([Start Moment]) AS [Start Moment]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;same for all other time fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2016 23:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184377#M882342</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2016-09-27T23:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Intervalmatch not matching</title>
      <link>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184378#M882343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be helpful for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/170313"&gt;IntervalMatch on Time field&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2016 05:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Intervalmatch-not-matching/m-p/1184378#M882343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-28T05:34:06Z</dc:date>
    </item>
  </channel>
</rss>

