<?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 IntervalMatch() trouble in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IntervalMatch-trouble/m-p/789298#M279111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the IntervalMatch() function - the advanced version with keyfields to compare - but it isn't working - well, QlikView is generating the table, but it has 0 records.&lt;/P&gt;&lt;P&gt;What I do is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- First I load a master_calendar from a qvs_file that has a field called %Datum.&lt;/P&gt;&lt;P&gt;- Then I load a table with intervals and some more keyfields and some more data from a qvd (I concatenate the three keyfields&lt;BR /&gt;&amp;nbsp;&amp;nbsp; into one)&lt;/P&gt;&lt;P&gt;=&amp;gt; Now I would like to use that function to have the right interval (and keyfields) for every day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; So I write&lt;/P&gt;&lt;P&gt;IntervalMatch (%Datum, Key)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval_start,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval_end,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key&lt;/P&gt;&lt;P&gt;RESIDENT ... ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized that field %Datum is already formatted while both Interval_start and Interval_end are in numeric format - I have already replaced that. Still the resulting table has 0 records. The maximum Interval_end also is Today().&lt;/P&gt;&lt;P&gt;Can anyone spot what I have omitted here?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Mar 2015 11:01:49 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2015-03-25T11:01:49Z</dc:date>
    <item>
      <title>IntervalMatch() trouble</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-trouble/m-p/789298#M279111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the IntervalMatch() function - the advanced version with keyfields to compare - but it isn't working - well, QlikView is generating the table, but it has 0 records.&lt;/P&gt;&lt;P&gt;What I do is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- First I load a master_calendar from a qvs_file that has a field called %Datum.&lt;/P&gt;&lt;P&gt;- Then I load a table with intervals and some more keyfields and some more data from a qvd (I concatenate the three keyfields&lt;BR /&gt;&amp;nbsp;&amp;nbsp; into one)&lt;/P&gt;&lt;P&gt;=&amp;gt; Now I would like to use that function to have the right interval (and keyfields) for every day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&amp;gt; So I write&lt;/P&gt;&lt;P&gt;IntervalMatch (%Datum, Key)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval_start,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Interval_end,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Key&lt;/P&gt;&lt;P&gt;RESIDENT ... ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized that field %Datum is already formatted while both Interval_start and Interval_end are in numeric format - I have already replaced that. Still the resulting table has 0 records. The maximum Interval_end also is Today().&lt;/P&gt;&lt;P&gt;Can anyone spot what I have omitted here?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 11:01:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-trouble/m-p/789298#M279111</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-25T11:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: IntervalMatch() trouble</title>
      <link>https://community.qlik.com/t5/QlikView/IntervalMatch-trouble/m-p/789299#M279112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see. If I specify any keyfields, those would have to be in my master_calendar - which they are not of course, they are specific to that history_table.&lt;/P&gt;&lt;P&gt;So I have to first split up all intervals - I can use DISTINCT there avoid splitting the very same interval several times - and then I have to join that.&lt;/P&gt;&lt;P&gt;Let's see ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.S.: Where does the DISTINCT keyword have to go then? In the IntervalMatch_LOAD?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Mar 2015 11:13:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IntervalMatch-trouble/m-p/789299#M279112</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2015-03-25T11:13:19Z</dc:date>
    </item>
  </channel>
</rss>

