<?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 Combine Date IntervalMatch in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226524#M78712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;it doesn't look like you need an INTERVALMATCH to join those two dates... Simply give the two fields identical names, and make sure that you have a Master date for each Order Date.&lt;/P&gt;&lt;P&gt;INTERVALMATCH is used for joining single dates to date ranges (Start - Stop), - it's not your case here.&lt;/P&gt;&lt;P&gt;Also, in the CROSSTABLE load, you need to add one more parameters for a number of "Qualifying Fields" - in your case, 1. THat is most likely the reason your data loads incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Apr 2011 14:09:53 GMT</pubDate>
    <dc:creator>Oleg_Troyansky</dc:creator>
    <dc:date>2011-04-25T14:09:53Z</dc:date>
    <item>
      <title>Combine Date IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226522#M78710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to combine the quote_date (from the test excel sheet) to the master_date (MasterCalender table) using an interval match or any other technique. Whenever I attempt to combine them I create a synthetic key or if I try to place the 'master_date' and 'Territory_ID' together my other data loads incorrectly. The interval match doubles the quote value and does not actually connect it to the master date.&lt;/P&gt;&lt;P&gt;I was wondering if anyone is able to offer some advice on this or experience? Any assistance would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;OnlineOrDirectSales:&lt;BR /&gt;MAPPING Load * Inline [&lt;BR /&gt;OnlineOrderFlag, OrderTransactionType&lt;BR /&gt;0, Direct&lt;BR /&gt;-1, Website&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;SalesOrderHeader:&lt;BR /&gt;LOAD&lt;BR /&gt; APPLYMAP('OnlineOrDirectSales', OnlineOrderFlag) AS OrderTransactionType,&lt;BR /&gt; date(OrderDate) AS master_date,&lt;BR /&gt; OrderDate,&lt;BR /&gt; //autonumber(TerritoryID &amp;amp; '|' &amp;amp; date(OrderDate)) AS DateSalesOrder_Mast_ID,&lt;BR /&gt; //AUTONUMBER(OrderDate&amp;amp;'-'&amp;amp; TerritoryID &amp;amp;'-'&amp;amp;'') AS MastKey,&lt;BR /&gt; SalesOrderID, //PK&lt;BR /&gt; TerritoryID AS Territory_ID;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM SalesOrderHeader;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;QuotaTemp:&lt;BR /&gt;CrossTable (BusinessEntity_ID, Quota)&lt;BR /&gt;LOAD date(F1) AS master_date,&lt;BR /&gt; [275],&lt;BR /&gt; [276],&lt;BR /&gt; [277],&lt;BR /&gt; [279],&lt;BR /&gt; [280],&lt;BR /&gt; [282],&lt;BR /&gt; [284],&lt;BR /&gt; [286],&lt;BR /&gt; [288],&lt;BR /&gt; [289],&lt;BR /&gt; [290],&lt;BR /&gt; Website&lt;BR /&gt;FROM&lt;BR /&gt;&lt;Z&gt;&lt;BR /&gt;(ooxml, embedded labels, table is Quota);&lt;BR /&gt;&lt;BR /&gt;Quota:&lt;BR /&gt;LEFT JOIN (SalesTerritoryHistory) LOAD&lt;BR /&gt;BusinessEntity_ID AS QBusinessEntity_ID,&lt;BR /&gt;date(master_date) AS quota_date,&lt;BR /&gt;//AUTONUMBER(master_date&amp;amp;'-' &amp;amp;'-'&amp;amp;'') AS MastKey,&lt;BR /&gt;Quota&lt;BR /&gt;RESIDENT QuotaTemp;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE QuotaTemp;&lt;BR /&gt;//Attempt to put together combine this date&lt;BR /&gt;REM IntervalMatch (master_date) LOAD date(quota_date)&lt;BR /&gt;Resident SalesTerritoryHistory;&lt;BR /&gt;REM JOIN LOAD *&lt;BR /&gt;RESIDENT SalesTerritoryHistory;&lt;BR /&gt;&lt;/Z&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2011 17:52:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226522#M78710</guid>
      <dc:creator />
      <dc:date>2011-04-21T17:52:15Z</dc:date>
    </item>
    <item>
      <title>Combine Date IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226523#M78711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyway have an idea of how to join these dates together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 13:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226523#M78711</guid>
      <dc:creator />
      <dc:date>2011-04-25T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Combine Date IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226524#M78712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;it doesn't look like you need an INTERVALMATCH to join those two dates... Simply give the two fields identical names, and make sure that you have a Master date for each Order Date.&lt;/P&gt;&lt;P&gt;INTERVALMATCH is used for joining single dates to date ranges (Start - Stop), - it's not your case here.&lt;/P&gt;&lt;P&gt;Also, in the CROSSTABLE load, you need to add one more parameters for a number of "Qualifying Fields" - in your case, 1. THat is most likely the reason your data loads incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2011 14:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226524#M78712</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2011-04-25T14:09:53Z</dc:date>
    </item>
    <item>
      <title>Combine Date IntervalMatch</title>
      <link>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226525#M78713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can not give the fields new names. Otherwise this will create a circular reference in my data model.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 May 2011 20:58:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Combine-Date-IntervalMatch/m-p/226525#M78713</guid>
      <dc:creator />
      <dc:date>2011-05-02T20:58:00Z</dc:date>
    </item>
  </channel>
</rss>

