<?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: Problem with loops &amp; Interval match in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-loops-Interval-match/m-p/1046087#M640009</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The short answer is - you need to concatenate your two Fact tables into a single Concatenated Fact, and to name your timestamp field in the same way, and combine the two IntervalMatch relations into one. This will resolve your issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you will need to resolve other possible issues that come with concatenated facts - your two facts will not be linked anymore, when they are concatenated in a single table. The full answer to this question contains all QlikView data modelling techniques.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd like to learn more about QlikView data modelling, I'd recommend my new book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=IN55M5EPRHLRBWIQ"&gt;QlikView Your Business&lt;/A&gt;. In the book, I explain in a lot of detail how to work with multiple Fact tables and how to build Concatenated Facts properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also teach advanced Data Modelling techniques at the&lt;A href="http://masterssummit.com/"&gt; Masters Summit for Qlik&lt;/A&gt; - coming soon to Milan, Italy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 17:45:06 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2016-02-16T17:45:06Z</dc:date>
    <item>
      <title>Problem with loops &amp; Interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loops-Interval-match/m-p/1046086#M640008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 different data sources that require me to report up to the hour. Each source has a time/date field which links to a calendar using an intervalmatch for each. The calendar has start &amp;amp; end times (unique names) for table 1 to join, and the same setup for table 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works well on its own. There is however a requirement to link in an employee table (using employee numbers). This is is effectively a lookup table for both these tables as well. the lookup has been structured to use a unique field name for each employee # based on source table 1, and another unique field name to link table 2. The moment i add the employee table it creates a loop. Can anyone suggest how to get this working please? It has stumped me for close to 2 days now. Structure below (it contains classified information so I am unable to add a model):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Schema.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/114849_Schema.png" style="height: 403px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 17:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loops-Interval-match/m-p/1046086#M640008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T17:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with loops &amp; Interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loops-Interval-match/m-p/1046087#M640009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The short answer is - you need to concatenate your two Fact tables into a single Concatenated Fact, and to name your timestamp field in the same way, and combine the two IntervalMatch relations into one. This will resolve your issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you will need to resolve other possible issues that come with concatenated facts - your two facts will not be linked anymore, when they are concatenated in a single table. The full answer to this question contains all QlikView data modelling techniques.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you'd like to learn more about QlikView data modelling, I'd recommend my new book &lt;A href="http://www.amazon.com/gp/product/1118949552/ref=as_li_tl?ie=UTF8&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=1118949552&amp;amp;linkCode=as2&amp;amp;tag=natursyner0f-20&amp;amp;linkId=IN55M5EPRHLRBWIQ"&gt;QlikView Your Business&lt;/A&gt;. In the book, I explain in a lot of detail how to work with multiple Fact tables and how to build Concatenated Facts properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also teach advanced Data Modelling techniques at the&lt;A href="http://masterssummit.com/"&gt; Masters Summit for Qlik&lt;/A&gt; - coming soon to Milan, Italy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Oleg Troyansky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 17:45:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loops-Interval-match/m-p/1046087#M640009</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2016-02-16T17:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with loops &amp; Interval match</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-loops-Interval-match/m-p/1046088#M640010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you have 2 start / end timestamp pairs and have done 2 intervalmatch's.&amp;nbsp; This will always end up with complications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I have done in scenarios like this is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;First process your Call Facts table and create a Facts table that has fields for :&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;Facts:&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;EM&gt;start_call&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Fact Start]&amp;nbsp; ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;EM&gt;end_call&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Fact End] ,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;EM&gt;'Call'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Fact Type] ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px;"&gt;&lt;EM&gt;...and your call dimension fields&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px; font-size: 13.3333px;"&gt;Secondly process your Sales Facts and &lt;SPAN style="font-size: 13.3333px;"&gt;concatenate onto your Facts table with fields:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;EM&gt;Concatenate (Facts)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px; font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;Load&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px; font-size: 13.3333px;"&gt;&lt;EM&gt;start_sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Fact Start]&amp;nbsp; ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px; font-size: 13.3333px;"&gt;&lt;EM&gt;end_sales&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Fact End] ,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px; font-size: 13.3333px;"&gt;&lt;EM&gt;'&lt;SPAN style="font-size: 13.3333px;"&gt;Sales&lt;/SPAN&gt;'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; as [Fact Type] ,&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 90px; font-size: 13.3333px;"&gt;&lt;EM&gt;...and your sales dimension fields&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;/P&gt;&lt;P&gt;You will now have a single Facts table and can do a single IntervalMatch() on that against &lt;EM style="font-size: 13.3333px;"&gt;[Fact Start] &lt;/EM&gt;and &lt;EM style="font-size: 13.3333px;"&gt;&lt;EM style="font-size: 13.3333px;"&gt;[Fact End]&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your front end objects, either have a List box to Select what &lt;EM style="font-size: 13.3333px;"&gt;[Fact Type] &lt;/EM&gt;you wish to show, or use the &lt;EM style="font-size: 13.3333px;"&gt;[Fact Type]&lt;/EM&gt; for Set Analysis in expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This also adheres to the concept of having a single concatenated Fact table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 18:10:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-loops-Interval-match/m-p/1046088#M640010</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T18:10:48Z</dc:date>
    </item>
  </channel>
</rss>

