<?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: Sum using effective dated information in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450101#M167963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could use an INTERVALMATCH here to handle your slowly changing dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Person&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/2/12,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,Bob&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/8/12,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,Bob&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/20/12,&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 ,Bob&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/22/12,&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,Bob&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Person, Dept&amp;nbsp;&amp;nbsp; , EffectiveDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Bob, Sales , 1/1/11&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Bob, Marketing , 1/15/12&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EffDates:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EffectiveDate as EffDateStart, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(previous(EffectiveDate) and peek(Person)=Person,Date(previous(EffectiveDate)-1),Date(makedate(2099,12,31))) as EffDateEnd &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, Person, Dept Resident Table2 order by Person, EffectiveDate desc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table Table2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Inner&amp;nbsp; Join IntervalMatch(Date, Person) LOAD EffDateStart, EffDateEnd, Person Resident EffDates;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Sep 2012 18:04:26 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-09-27T18:04:26Z</dc:date>
    <item>
      <title>Sum using effective dated information</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450100#M167962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple question, I hope, here is the scenario:&lt;/P&gt;&lt;P&gt;2 Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Person&lt;/P&gt;&lt;P&gt;1/2/12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bob&lt;/P&gt;&lt;P&gt;1/8/12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bob&lt;/P&gt;&lt;P&gt;1/20/12&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bob&lt;/P&gt;&lt;P&gt;1/22/12&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;Person&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dept&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EffectiveDate&lt;/P&gt;&lt;P&gt;Bob&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1/1/11&lt;/P&gt;&lt;P&gt;Bob&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Marketing&amp;nbsp;&amp;nbsp; 1/15/12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a sum formula that will sum up Qty by Dept using the person's EffectiveDate when the deparment shift took place as a parameter.&amp;nbsp; So the returned results in this example would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bob&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&lt;/P&gt;&lt;P&gt;Bob&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Marketing&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be GREATLY appreciated.&amp;nbsp; Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 16:50:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450100#M167962</guid>
      <dc:creator />
      <dc:date>2012-09-27T16:50:22Z</dc:date>
    </item>
    <item>
      <title>Re: Sum using effective dated information</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450101#M167963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you could use an INTERVALMATCH here to handle your slowly changing dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table1:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Qty,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Person&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/2/12,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2,Bob&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/8/12,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3,Bob&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/20/12,&amp;nbsp;&amp;nbsp;&amp;nbsp; 4 ,Bob&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1/22/12,&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,Bob&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table2:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Person, Dept&amp;nbsp;&amp;nbsp; , EffectiveDate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Bob, Sales , 1/1/11&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Bob, Marketing , 1/15/12&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EffDates:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EffectiveDate as EffDateStart, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;if(previous(EffectiveDate) and peek(Person)=Person,Date(previous(EffectiveDate)-1),Date(makedate(2099,12,31))) as EffDateEnd &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;, Person, Dept Resident Table2 order by Person, EffectiveDate desc;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table Table2;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Inner&amp;nbsp; Join IntervalMatch(Date, Person) LOAD EffDateStart, EffDateEnd, Person Resident EffDates;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 18:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450101#M167963</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-09-27T18:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Sum using effective dated information</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450102#M167964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info on IntervalMatch.&lt;/P&gt;&lt;P&gt;Is there a way to do this within an expression or set analysis instead of loading the data differently?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 18:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450102#M167964</guid>
      <dc:creator />
      <dc:date>2012-09-27T18:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sum using effective dated information</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450103#M167965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure exactly what the inner join is for.&amp;nbsp; When I include it i end up with a synthetic key, although the solution still works.&amp;nbsp; If I Exit Script before the inner join it works perfectly and does not create any synthetic keys.&amp;nbsp; Of course the IntervalMatch never runs, but why is it needed since we created a start/end date for every row in the effective date table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2012 19:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450103#M167965</guid>
      <dc:creator />
      <dc:date>2012-10-05T19:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sum using effective dated information</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450104#M167966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I don't quite understand. Are you saying you get the same results with and and without the intervalmatch when analyzing the Qty data per Person, Dept and Date? This is not what I expect and what I do see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the intervalmatch line I get in a chart object with dimensions Persion, Dept, Date and expression sum(Qty):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="392"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Person&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Dept&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;sum(Qty)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/2/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/8/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/20/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/22/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Marketing&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/2/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Marketing&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/8/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Marketing&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/20/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Marketing&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/22/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's due to the fact that tables are only linked by Person, so the Qty on a Date is not linked to a start / end date and Dept record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what the intervalmatch does, establishing a link between the two tables using the combination of Person &lt;EM&gt;and&lt;/EM&gt; Date, where Date will be linked to the appropriate interval defined by start / end date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="392"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Person&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Dept&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;sum(Qty)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl64" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/2/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Sales&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/8/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Marketing&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/20/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Marketing&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/22/12&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Big difference, isn't it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make the intervalmatch work, you must assure that your date fields are recognized by QV as such, resulting in values with a numerical representation, so for example use an appropriate standard DateFormat at the top of your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET DateFormat = 'M/D/YY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The intervalmatch will indeed create a synthetic table and key, if needed, I think it's ok just as is, but if you want, you can get rid of the synthetic key with an additional join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;JOIN (Table1) LOAD * resident EffDates;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop table EffDates;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you want to remove the start and end date, which are maybe not needed anymore:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;drop fields EffDateStart, EffDateEnd;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2012 11:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450104#M167966</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-06T11:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sum using effective dated information</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450105#M167967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, thank you VERY much for the time to answer this question.&amp;nbsp;&amp;nbsp; The confusion I was having was because in my 'real' application (as opposed to this much simplified example), I actually have 3 tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Name tables.&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Effective Dated tables with items changing like Dept, City, Title, etc., but no real data.&lt;/P&gt;&lt;P&gt;3)&amp;nbsp; Data Tables with the actual data and a date stamp.&amp;nbsp; (like quantiy purchased on a particular day)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my example here was actually a bit more complicated, in a way, then the answer I needed.&amp;nbsp;&amp;nbsp; For my application I will use your method of generating a start/end date so that in the expressions I can then just check the data range and sum up as needed based on the date range.&amp;nbsp; This was very helpful!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I really don't need the interval match....yet.&amp;nbsp; Although I bet i run into some place where I WILL need to use it and the example you provided is great.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 16:52:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-using-effective-dated-information/m-p/450105#M167967</guid>
      <dc:creator />
      <dc:date>2012-10-08T16:52:06Z</dc:date>
    </item>
  </channel>
</rss>

