<?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: Creating a &amp;quot;link&amp;quot; table using an IntervalMatch in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-quot-link-quot-table-using-an-IntervalMatch/m-p/449966#M701761</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the assistance of a consultant, the following solution was devised. This created the "link" table I wanted. The WorkStart and WorkFinish fields were dropped from the original table to avoid generating a synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;ContractRoleMatch:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD ActivityContractRoleKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkStart,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkFinish&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Resident ContractRoleDemand;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Inner Join (ContractRoleMatch)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;IntervalMatch(WorkDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD WorkStart,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkFinish&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Resident ContractRoleMatch;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DROP Fields WorkStart, WorkFinish From ContractRoleDemand;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Oct 2012 18:07:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-04T18:07:50Z</dc:date>
    <item>
      <title>Creating a "link" table using an IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-quot-link-quot-table-using-an-IntervalMatch/m-p/449965#M701760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a QV app and have almost got it where I want it but am getting stuck on one final table I want to create in the script, which I believe requires an IntervalMatch. My data model looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="22627" class="jive-image-thumbnail jive-image" height="441" onclick="" alt="QVDataModel.JPG" src="https://community.qlik.com/legacyfs/online/22627_QVDataModel.JPG" width="868" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ContractRoleDemand table is uniquely defined by the ActivityContractRoleKey and contains all the data I need to divide up the required workload into daily (workday) increments. The WorkStart and WorkFinish fields provide the date range desired. The WorkCalendar contains a row for each workday (i.e., excluding weekends – holidays may come later) occurring in the 4-year period starting 1/1/2011 – 12/31/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As pictured above, I want to create a table linking these 2 tables that would contain the ActivityContractRoleKey from ContractRoleDemand and each WorkDate from WorkCalendar that occurs between the WorkStart and WorkFinish dates from ContractRoleDemand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice you can give me would be appreciated. Also, if the ultimate solution requires and AGGR to pull meaningful daily workload information into a visualization, I’d like to know how to code the AGGR expression, as that function has not yet “clicked” with me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2012 20:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-quot-link-quot-table-using-an-IntervalMatch/m-p/449965#M701760</guid>
      <dc:creator />
      <dc:date>2012-09-27T20:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a "link" table using an IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-quot-link-quot-table-using-an-IntervalMatch/m-p/449966#M701761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With the assistance of a consultant, the following solution was devised. This created the "link" table I wanted. The WorkStart and WorkFinish fields were dropped from the original table to avoid generating a synthetic key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;ContractRoleMatch:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD ActivityContractRoleKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkStart,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkFinish&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Resident ContractRoleDemand;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Inner Join (ContractRoleMatch)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;IntervalMatch(WorkDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;LOAD WorkStart,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WorkFinish&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Resident ContractRoleMatch;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;DROP Fields WorkStart, WorkFinish From ContractRoleDemand;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2012 18:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-quot-link-quot-table-using-an-IntervalMatch/m-p/449966#M701761</guid>
      <dc:creator />
      <dc:date>2012-10-04T18:07:50Z</dc:date>
    </item>
  </channel>
</rss>

