<?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: Regarding IntervalMatch problem: in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645214#M236442</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad to have your reply ;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code but I am getting a circular reference and I have attached it for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also, I am not getting all the salespersons name&amp;nbsp; while calculating the corresponding sales of that person in a chart after adding the interval match function in the application ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 22:36:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-24T22:36:20Z</dc:date>
    <item>
      <title>Regarding IntervalMatch problem:</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645212#M236440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your helps are really appreciated. I kind of stuck with the below interval match problem. I actually have 4 tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesOrderHeader:&lt;/P&gt;&lt;P&gt;SQL select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; OrderDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesOrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TerritoryID&lt;/P&gt;&lt;P&gt;FROM SalesOrderHeader;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesOrderDetail:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SalesOrderID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; UnitPrice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UnitPriceDiscount&lt;/P&gt;&lt;P&gt;FROM SalesOrderDetail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee:&lt;/P&gt;&lt;P&gt;SQL SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmployeeBusinessEntityID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate as Employee_EndDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LastName,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ParentEmployeeBusinessEntityID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate as Employee_StartDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FROM Employee;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction:&lt;/P&gt;&lt;P&gt;Load *,1&lt;/P&gt;&lt;P&gt;resident SalesOrderHeader;&lt;/P&gt;&lt;P&gt;concatenate&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;resident SalesOrderDetail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table SalesOrderHeader,SalesOrderDetail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesTerritoryHistory:&lt;/P&gt;&lt;P&gt;SQL SELECT BusinessEntityID as EmployeeBusinessEntityID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; StartDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TerritoryID&lt;/P&gt;&lt;P&gt;FROM SalesTerritoryHistory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;join(SalesTerritoryHistory)&lt;/P&gt;&lt;P&gt;IntervalMatch(OrderDate)&lt;/P&gt;&lt;P&gt;load Distinct StartDate,EndDate resident SalesTerritoryHistory;&lt;/P&gt;&lt;P&gt;join(SalesTerritoryHistory)&lt;/P&gt;&lt;P&gt;load * resident Transaction;&lt;/P&gt;&lt;P&gt;drop table Transaction;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I am not getting any firstname and lastname from Employee table to the corresponding sales period in the straigt&amp;nbsp; table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly let me know if any one finds any bug with the above script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 14:21:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645212#M236440</guid>
      <dc:creator />
      <dc:date>2014-06-24T14:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding IntervalMatch problem:</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645213#M236441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is that you concatenate the SalesOrderHeader and SalesOrderDetail. They should remain as two tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, all your joins are really unnecessary. Try the following instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesOrderHeader:&lt;/P&gt;&lt;P&gt;SQL SELECT OrderDate, SalesOrderID, TerritoryID FROM SalesOrderHeader;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SalesOrderDetail:&lt;/P&gt;&lt;P&gt;SQL SELECT SalesOrderID, UnitPrice, UnitPriceDiscount FROM SalesOrderDetail;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Employee:&lt;/P&gt;&lt;P&gt;SQL SELECT EmployeeBusinessEntityID, EndDate as Employee_EndDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstName, LastName, ParentEmployeeBusinessEntityID, StartDate as Employee_StartDate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FROM Employee;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SalesTerritoryHistory:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT BusinessEntityID as EmployeeBusinessEntityID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate, StartDate, TerritoryID FROM SalesTerritoryHistory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;IntervalMatch:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;IntervalMatch(OrderDate)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD distinct StartDate, EndDate RESIDENT SalesTerritoryHistory;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 21:09:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645213#M236441</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-06-24T21:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding IntervalMatch problem:</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645214#M236442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am glad to have your reply ;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code but I am getting a circular reference and I have attached it for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also, I am not getting all the salespersons name&amp;nbsp; while calculating the corresponding sales of that person in a chart after adding the interval match function in the application ! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Again!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 22:36:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645214#M236442</guid>
      <dc:creator />
      <dc:date>2014-06-24T22:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding IntervalMatch problem:</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645215#M236443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please post some data (Use advanced editor).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way - if you want the Date and the TerritoryID to link simultaneously, you need to treat this as a Slowly Changing Dimension. See more on&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2013/06/03/slowly-changing-dimensions"&gt;Slowly Changing Dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-4310"&gt;IntervalMatch and Slowly Changing Dimensions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 06:25:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645215#M236443</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-06-25T06:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding IntervalMatch problem:</title>
      <link>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645216#M236444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for your reply! Finally I got the result using Extended IntervalMatch with an inner join &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kiru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jun 2014 20:52:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Regarding-IntervalMatch-problem/m-p/645216#M236444</guid>
      <dc:creator />
      <dc:date>2014-06-25T20:52:35Z</dc:date>
    </item>
  </channel>
</rss>

