<?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: Interval Match to Multiple Tables in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170350#M629754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense. Cheers mate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2016 08:05:24 GMT</pubDate>
    <dc:creator>k_burata</dc:creator>
    <dc:date>2016-08-12T08:05:24Z</dc:date>
    <item>
      <title>Interval Match to Multiple Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170346#M629750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Been struggling with this for a while. Below is a sample data model that I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/134236_Capture.PNG" style="height: 271px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;question is: How do I do IntervalMatch the PositionHistory, Department, and Org Tables to a Calendar so that when I select a certain Month-Year it will show all the valid employees within the selcted date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 01:57:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170346#M629750</guid>
      <dc:creator>k_burata</dc:creator>
      <dc:date>2016-08-11T01:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match to Multiple Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170347#M629751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see why you need to match on multiple tables. Only PositionHistory makes sense to me. Something like this perhaps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Calendar:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MinDate + IterNo()) as Date&lt;/P&gt;&lt;P&gt;WHILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MinDate + IterNo() &amp;lt;= MaxDate;&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(min(PosStart)) as MinDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(max(PosEnd)) as MaxDate&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PositionHistory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IntervalMatchTable:&lt;/P&gt;&lt;P&gt;IntervalMatch(Date)&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PosStart,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PosEnd&lt;/P&gt;&lt;P&gt;RESIDENT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PositionHistory;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 09:14:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170347#M629751</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-11T09:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match to Multiple Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170348#M629752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. An employee might be moved to a different department so I have to trace what department he is in at a certain date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it better if I include the department on the PositionHistory Table by adding a Dept field? But I have to match again the PosStart/PosEnd with DepStart/DepEnd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 01:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170348#M629752</guid>
      <dc:creator>k_burata</dc:creator>
      <dc:date>2016-08-12T01:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match to Multiple Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170349#M629753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Dep field is part of the PositionHistory table. I assume (and hope for you) that if a person changes from department then a new record is added to the PositionHistory table with a new PosStart value and the old record is updated with the PosEnd value. Destructively updating the Dep field will make it impossible to track changes of department. So the information you want should already be stored in the PositionHistory table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 07:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170349#M629753</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-12T07:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Interval Match to Multiple Tables</title>
      <link>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170350#M629754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Makes sense. Cheers mate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 08:05:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Interval-Match-to-Multiple-Tables/m-p/1170350#M629754</guid>
      <dc:creator>k_burata</dc:creator>
      <dc:date>2016-08-12T08:05:24Z</dc:date>
    </item>
  </channel>
</rss>

