<?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: Using Interval Match And Hierarchy Together in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-Interval-Match-And-Hierarchy-Together/m-p/524299#M1140580</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi New_Qliker,&lt;/P&gt;&lt;P&gt;Try the following :&lt;/P&gt;&lt;P&gt;1)Link Employees EMP_ID with StaffHierarchy EMP_ID&lt;/P&gt;&lt;P&gt; Also, In StaffHIerarchy, load EMP_ID as empID(just an alias for a diff column name to get rid of that synthetic Key)&lt;/P&gt;&lt;P&gt;2) Rename Activities EMP_ID as empID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work.You dont need a bridge table in this case,as you have only one fact.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please get back to me with your result or any further queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rochelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Oct 2013 07:20:49 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-10-08T07:20:49Z</dc:date>
    <item>
      <title>Using Interval Match And Hierarchy Together</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Interval-Match-And-Hierarchy-Together/m-p/524297#M1140578</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;So I have the following tables:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Activites : A transaction table containing records of employees (by employee ID) who handled calls for a particular date.&lt;/LI&gt;&lt;LI&gt;Employees: A fact table containing information of all employees (Employee ID, Employee Name)&lt;/LI&gt;&lt;LI&gt;Employee_Report_Structure: A fact table containing information of which employee reports to which other employee (bosses and subordinates). Certain employees might report to a boss during a certain period, after which the employee structure changes and he reports to a different boss.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done is to first use the Qlikview hierarchy function to create the staff hierarchy. After which I used interval match to match the dates the activities occur to try to find who the employee was reporting to during that particular date. Do note that the employee-boss hierarchy changes for different periods (as mentioned above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Issue&lt;/STRONG&gt;: I'm getting loops in my data structure as follows:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DataStructure.jpg" class="jive-image" src="https://community.qlik.com/legacyfs/online/47309_DataStructure.jpg" /&gt;&lt;BR /&gt;Any ideas on how I can solve the loop?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 02:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Interval-Match-And-Hierarchy-Together/m-p/524297#M1140578</guid>
      <dc:creator />
      <dc:date>2013-10-08T02:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Interval Match And Hierarchy Together</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Interval-Match-And-Hierarchy-Together/m-p/524298#M1140579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I've solved it by first creating a composite key of ID &amp;amp; Date in the Activities table, then creating a temporary bridge table, after which creating a new bridge table of All the dates joined into one interval. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 07:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Interval-Match-And-Hierarchy-Together/m-p/524298#M1140579</guid>
      <dc:creator />
      <dc:date>2013-10-08T07:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Interval Match And Hierarchy Together</title>
      <link>https://community.qlik.com/t5/QlikView/Using-Interval-Match-And-Hierarchy-Together/m-p/524299#M1140580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi New_Qliker,&lt;/P&gt;&lt;P&gt;Try the following :&lt;/P&gt;&lt;P&gt;1)Link Employees EMP_ID with StaffHierarchy EMP_ID&lt;/P&gt;&lt;P&gt; Also, In StaffHIerarchy, load EMP_ID as empID(just an alias for a diff column name to get rid of that synthetic Key)&lt;/P&gt;&lt;P&gt;2) Rename Activities EMP_ID as empID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work.You dont need a bridge table in this case,as you have only one fact.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please get back to me with your result or any further queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rochelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 07:20:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-Interval-Match-And-Hierarchy-Together/m-p/524299#M1140580</guid>
      <dc:creator />
      <dc:date>2013-10-08T07:20:49Z</dc:date>
    </item>
  </channel>
</rss>

