<?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: Error in Interval Match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490335#M686960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Load that follows an IntervalMatch prefix should only have two fields: Lower bound and upper bound. And the field in the brackets should be the number that you want to match against the interval. You use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.909090995788574px;"&gt;F_MEDICAL_CLAIM_DETAIL&lt;/SPAN&gt; when you should use [Incurred YearMonth].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Nov 2013 21:10:35 GMT</pubDate>
    <dc:creator>hic</dc:creator>
    <dc:date>2013-11-25T21:10:35Z</dc:date>
    <item>
      <title>Error in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490334#M686959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Looking for what I am doing wrong with interval match below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; I have two feilds in the&amp;nbsp;&amp;nbsp; F_MEDICAL_CLAIM_DETAIL load called "Product-Entity" and&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"OwnerClaimID" I was hoping to join to those two fields to the right side of the join. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Then I have a field "Incurred YearMonth" in the which I need to fall between EFFECTIVE_YEARMTH and EXPIRATION_YEARMTH.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;However it doesnt seem to be joining accurately. Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;F_MEDICAL_CLAIM_DETAIL:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;Load&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; *,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; F_MEDICAL_CLAIM_DETAIL_PRE;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;left&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Join&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; (F_MEDICAL_CLAIM_DETAIL)&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IntervalMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Incurred YearMonth]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;LOAD&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EFFECTIVE_YEARMTH&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EXPIRATION_YEARMTH&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Product-Entity]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OwnerClaimID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OWNERSHIP_PCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;OWNER_DEFINITION&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;UPDATE_DATE_D_OWNER_CLAIMS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;FROM&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(vInputFile11)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Steve&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 20:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490334#M686959</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-11-25T20:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490335#M686960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Load that follows an IntervalMatch prefix should only have two fields: Lower bound and upper bound. And the field in the brackets should be the number that you want to match against the interval. You use &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10.909090995788574px;"&gt;F_MEDICAL_CLAIM_DETAIL&lt;/SPAN&gt; when you should use [Incurred YearMonth].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See more on &lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2013/04/04/intervalmatch&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 21:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490335#M686960</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-11-25T21:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490336#M686961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response. Your blog was very informative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However what happens in the case (like mine) where you need to use the interval match to get fit the date into ranges from a table BUT ALSO need to join on an additional field to join on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like in the simplied tables below I need to join on Provider ID and I need to see where service date falls between the Begin Date and End Date..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="372"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" colspan="2" height="20" width="182"&gt;PROVIDER_FACT_TABLE:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;Record&lt;/TD&gt;&lt;TD class="xl65"&gt;Provider ID&lt;/TD&gt;&lt;TD class="xl65"&gt;Service Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2007&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2009&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD&gt;Steve&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;4&lt;/TD&gt;&lt;TD&gt;Steve&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" colspan="3" height="20"&gt;PROVIDER_ALLOCATION TABLE:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;Provider&lt;/TD&gt;&lt;TD class="xl65"&gt;Begin Date&lt;/TD&gt;&lt;TD class="xl65"&gt;End Date&lt;/TD&gt;&lt;TD class="xl65"&gt;Allocation_PCT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2000&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;12/31/2007&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2008&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2013&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Steve&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2000&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;12/31/2007&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Steve&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2008&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2013&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;40%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="20"&gt;RESULT:&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;Record&lt;/TD&gt;&lt;TD class="xl65"&gt;Provider ID&lt;/TD&gt;&lt;TD class="xl65"&gt;Service Date&lt;/TD&gt;&lt;TD class="xl65"&gt;Allocation_PCT&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2007&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;50%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2009&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;100%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD&gt;Steve&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2011&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;4&lt;/TD&gt;&lt;TD&gt;Steve&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;1/1/2014&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;40%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 21:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490336#M686961</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-11-25T21:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Error in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490337#M686962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I understand why you want to join. I would instead go for the following data model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image1.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/49530_Image1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 08:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490337#M686962</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-11-26T08:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Error in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490338#M686963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... but should you want to join, you can do that too. I think the result is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 09:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490338#M686963</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-11-26T09:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490339#M686964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help - I am learning!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess maybe I didn't totally explain myself. My goals was to just link on the Provider ID AND use interval match to find the proper record that the service date fit into , THEN take the field(s) I need like "Allocation_PCT" and make it part of the PROVIDER_FACT_TABLE.&amp;nbsp; My intention is not to create or keep any additional tables just to join a new field(s) into the PROVIDER_FACT_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 16:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490339#M686964</guid>
      <dc:creator>zagzebski</dc:creator>
      <dc:date>2013-11-26T16:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Interval Match</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490340#M686965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use the three-table solution (in the script) I suggested above, you will be able to create exactly the table you want when you create the application UI. That's one way to do do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another way is to join all three tables in the script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Facts: Load ... from Facts ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Allocation: Load ... from Allocation ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left Join (Facts) IntervalMatch (...) Load ... Resident Allocation;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Left Join (Facts) Load ... Resident Allocation;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table Allocation;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Fields &amp;lt;List of fields you don't want&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is somewhat risky: If a date belongs to two intervals, e.g. a date is the end of one interval and the beginning of another, you will get a fact table with too many records. But the three-table solution is safe...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:26:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-Interval-Match/m-p/490340#M686965</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2013-11-26T19:26:33Z</dc:date>
    </item>
  </channel>
</rss>

