<?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: Mapping Two Tables Based on Date logic in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041144#M922690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could consider creating a date interval from your single DateStarted field:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2960"&gt;Creating a Date Interval from a Single Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use e.g. IntervalMatch to map your Date field values into the Rate intervals using Name as a key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2016 10:13:52 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2016-04-15T10:13:52Z</dc:date>
    <item>
      <title>Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041142#M922688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm Using Two Sals to get Data from Two different data sources,&lt;/P&gt;&lt;P&gt;One Table i have,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DateStarted, Name , Rate&amp;nbsp; ( Names are repeating.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another Table i have,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name,Cost, Date (Here also Names are repeating.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get ,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Name, Rate , and Cost and Group It by DateStartedMonth in Pivot Table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic is Date of second table need to map with Latest Started Date Passed,&lt;/P&gt;&lt;P&gt;Say Name1 has below started Dates,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2015/05/26&lt;/P&gt;&lt;P&gt;2015/08/30&lt;/P&gt;&lt;P&gt;2015/11/23&lt;/P&gt;&lt;P&gt;And Table two Dates for Name1 as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2015/09/30&lt;/P&gt;&lt;P&gt;Then That record has to map with 2015/08/30 Date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041142#M922688</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041143#M922689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide your current data for the two tables in a Excel file. I am not sure how the data looks like. But from what I understand you might need a Interval Match&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:11:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041143#M922689</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-15T10:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041144#M922690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could consider creating a date interval from your single DateStarted field:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2960"&gt;Creating a Date Interval from a Single Date&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use e.g. IntervalMatch to map your Date field values into the Rate intervals using Name as a key.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041144#M922690</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T10:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041145#M922691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Attached xsl for data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041145#M922691</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2016-04-15T10:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041146#M922692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached for data and the results that i need&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041146#M922692</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2016-04-15T10:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041147#M922693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See attached for data and what i want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:29:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041147#M922693</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2016-04-15T10:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041148#M922696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The dates on the SQL2 tab of the Excel contain 2014 information vs. 2015 + information in SQL1 tab. How do you intend to visualize that? Can you input values into the output you are expecting to see? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:38:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041148#M922696</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-15T10:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041149#M922698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First Priority Goes to Tab1(Sql1). If there are no records for the dates in Tab2(Sql2) ignore those&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:48:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041149#M922698</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2016-04-15T10:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041150#M922699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this using above referenced approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1460717629082819 jive_text_macro" jivemacro_uid="_1460717629082819"&gt;
&lt;P&gt;SET DateFormat&amp;nbsp; = 'MM/DD/YYYY';&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Tmp_Rates:&lt;/P&gt;
&lt;P&gt;LOAD DATE_Started,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LEASE_RATE,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;
&lt;P&gt;(biff, embedded labels, table is SQL1$);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Let vEndTime =MakeDate(2020,12,31);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Rates:&lt;/P&gt;
&lt;P&gt;LOAD Customer, LEASE_RATE, DATE_Started, Name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date(If(Customer=Peek(Customer),Peek(DATE_Started)-0.00000001, $(#vEndTime))) as DATE_End&lt;/P&gt;
&lt;P&gt;Resident Tmp_Rates&lt;/P&gt;
&lt;P&gt;Order By&amp;nbsp; Name, Customer, DATE_Started Desc;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Tmp_Rates;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Cost:&lt;/P&gt;
&lt;P&gt;LOAD Nmae as Name,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(year, month) as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; COST&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;&lt;E&gt;&lt;/E&gt;&lt;/P&gt;
&lt;P&gt;(biff, embedded labels, table is SQL2$);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;JOIN&lt;/P&gt;
&lt;P&gt;IntervalMatch (Date, Name)&lt;/P&gt;
&lt;P&gt;LOAD DATE_Started, DATE_End, Name Resident Rates;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Customer&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Sum(COST)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Sum(LEASE_RATE)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt; &lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;855 &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD bgcolor="#f5f5f5"&gt;&lt;STRONG&gt;5021 &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Cus A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;08/01/2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;855&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;952&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Cus A&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2268&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CUSB&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;797&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;CusB&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;0&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1004&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041150#M922699</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-04-15T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041151#M922700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the attached:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/121775_Capture.PNG" style="height: 46px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 10:56:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041151#M922700</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-15T10:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041152#M922701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most of the things are correct. but It is wrong when dates are like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Table1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 292px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="80"&gt;DATE_Started&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="72"&gt;Name&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="76"&gt;LEASE_RATE&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none;" width="64"&gt;Customer&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;01/01/16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1025&lt;/TD&gt;&lt;TD class="xl66"&gt;Cus A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;01/11/16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD class="xl66"&gt;Cus A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;02/19/16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;1551&lt;/TD&gt;&lt;TD class="xl66"&gt;Cus A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;04/11/16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;789&lt;/TD&gt;&lt;TD class="xl66"&gt;Cus A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="256"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;Nmae&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;year&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;month&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;COST&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;263.88&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out put&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="512"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="64"&gt;DATE_Started&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;EndDate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;LEASE_RATE&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;COST&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;month&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;01/01/16&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;4/15/2016&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;10/1/2013&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1025&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;263.88&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;01/11/16&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;4/15/2016&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;10/1/2013&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1000&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;263.88&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;02/19/16&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;4/15/2016&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;10/1/2013&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;1551&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;263.88&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;04/11/16&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;4/15/2016&lt;/TD&gt;&lt;TD align="right" class="xl68" style="border-top: none; border-left: none;"&gt;10/1/2013&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;789&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;263.88&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041152#M922701</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2016-04-15T14:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041153#M922702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, I would do just a straight join between the two tables. But this seems like a different requirement now. How would this change if you have two entries in Table 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name, year, month, COST&lt;/P&gt;&lt;P&gt;Name1, 2013, 10, 263.88&lt;/P&gt;&lt;P&gt;Name1, 2014, 02, 270.21 -&amp;gt; Randomly adding something&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is going to be the output now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:39:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041153#M922702</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-15T14:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041154#M922703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we don't need to join that record, Since those dates doesn't inside date range in SQL1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 660px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="80"&gt;SHIP_DATE&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="72"&gt;Name&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="55"&gt;EndDate&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="82"&gt;cleaning_cost&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="55"&gt;Date&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="76"&gt;LEASE_RATE&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="88"&gt;repair_amount&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="82"&gt;repair_month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="70"&gt;repair_year&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;01/01/16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4/15/2016&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1025&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;01/11/16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Name1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4/15/2016&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1025&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;02/19/16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Name1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4/15/2016&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1025&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;04/11/16&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Name1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;4/15/2016&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;1025&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041154#M922703</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2016-04-15T14:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041155#M922704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I am assuming that a single database will have different Name1 and based on different Names you are going to decide which type of join is needed? I guess it would be helpful to look at a more comprehensive sample which include both these cases combined with the expected output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 14:58:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041155#M922704</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-15T14:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041156#M922705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think Most of the Things are correct , but i feel interval match doesn't apply when i'm loading data. I have get excel out put and load that excel to my script and it works fine, but the interval match doesn't work when it is loading from DataBase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my Script from second table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;Date(MakeDate(r_year, r_month)) as Date;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;&amp;nbsp; r.C + ' ' + cast(r.CNum as varchar(6)) as 'RR',&lt;/P&gt;&lt;P&gt;&amp;nbsp; month(h.rdate) as 'r_month',&lt;/P&gt;&lt;P&gt;&amp;nbsp; year(h.rdate) as 'r_year'&lt;/P&gt;&lt;P&gt;from Rr r&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Left Join (r)&lt;/P&gt;&lt;P&gt;IntervalMatch (Date, RR)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident Ss;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right Join (r)&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;Resident Ss;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Ss;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 06:22:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041156#M922705</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2016-04-20T06:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mapping Two Tables Based on Date logic</title>
      <link>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041157#M922706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't really follow your script here. Where exactly is the interval match taking place? Interval Match is used when you are linking a date range to a particular date. Where is your date range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Left Join (r)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;IntervalMatch (Date, RR)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;StartDate,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EndDate,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RR&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Resident Ss;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 08:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Mapping-Two-Tables-Based-on-Date-logic/m-p/1041157#M922706</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-20T08:51:46Z</dc:date>
    </item>
  </channel>
</rss>

