<?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 How to merge two date fields? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341754#M1277246</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm hoping to merge two date Fields namley "Date Purchased" and "Waranty Expired Date". I managed to do this &lt;STRONG&gt;Date([Date Purchased]) as Date, &lt;/STRONG&gt;and now i want to merge "Date Purchased" and "Waranty Expired Date" as one common 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>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>How to merge two date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341754#M1277246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I'm hoping to merge two date Fields namley "Date Purchased" and "Waranty Expired Date". I managed to do this &lt;STRONG&gt;Date([Date Purchased]) as Date, &lt;/STRONG&gt;and now i want to merge "Date Purchased" and "Waranty Expired Date" as one common 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>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341754#M1277246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>How to merge two date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341755#M1277250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean with "merge"? Where are the two fields "Date Purchased" and "Waranty Expired Date" located (in which tables)? And what is your expected result?&lt;/P&gt;&lt;P&gt; I think some lines showing the data Input and requested Output might help me to understand your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 22:02:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341755#M1277250</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-07T22:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge two date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341756#M1277252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The two fields are in the same Fact Table with different records.And now i would want to put all the records in "Date Purchased" and "Waranty Expired Date" fields together such that they have a common Month,Qaurter and different Years. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Date ([Date Purchased])as Date,&lt;/P&gt;&lt;P&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;&amp;nbsp;&amp;nbsp; [Waranty Expiry Date]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clearly as depicted the Date list box ends with the year 2011 and the Waranty Expiry Date year ends in 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.GIF" class="jive-image" src="https://community.qlik.com/legacyfs/online/11950_Capture.GIF" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i need the Date to read from 2011 to 2015 with common Month and Quarter.&lt;/P&gt;&lt;P&gt;&lt;IMG /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 07:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341756#M1277252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-08T07:11:40Z</dc:date>
    </item>
    <item>
      <title>How to merge two date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341757#M1277254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to do this is to use a master calendar and a link table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A master calendar is a table that holds all dates in your required date range (2011 to 2012) and all the derived calendar fields (Month, Year, Week, Quarter, Quarter, etc.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link table will just link your different date fields [Date Purchased] and [Waranty Expiry Date] to the calendar.&lt;/P&gt;&lt;P&gt;The link table key to your original table is the record ID or order ID, the link to the calendar&amp;nbsp; the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please have a look at John's sample on how to generate that table structure.&lt;/P&gt;&lt;P&gt;You don't need to have two or three original tables, your original date fields could reside in one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://community.qlik.com/message/118471#118471"&gt;http://community.qlik.com/message/118471&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 09:33:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341757#M1277254</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-08T09:33:05Z</dc:date>
    </item>
    <item>
      <title>How to merge two date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341758#M1277255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan !! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Kindly explain this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The link table key to your original table is the record ID or order ID, the link to the calendar&amp;nbsp; the 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>Thu, 08 Mar 2012 11:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341758#M1277255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-08T11:22:15Z</dc:date>
    </item>
    <item>
      <title>How to merge two date fields?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341759#M1277256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you got the chance to look into John's sample or are you working on a personal edition?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a slightly modified and simplified version of his script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET DateFormat='YYYY-M-D';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;YOURTABLE:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD recno() as ID, * INLINE [&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Date Purchased,Waranty Expiry Date, Value&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010-7-10, 2011-5-10, 10&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010-8-10, 2011-5-12, 20&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;2010-5-10, 2011-6-15, 40&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Link:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,[Date Purchased] as Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,'Purchased' as DateType&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESIDENT YOURTABLE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;CONCATENATE (Link)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; ID&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,[Waranty Expiry Date] as Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,'WarantyEx' as DateType&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;RESIDENT YOURTABLE&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Calendar:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,date(monthstart(Date),'MMM YYYY') as Month&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;,year(Date)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD date(makedate(2010)+recno()-1) as Date&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;AUTOGENERATE 720&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you execute the script and look at the table view (CTRL-T), you'll notice that the Link table will be linked by ID and Date to the other two tables, that's what I was talking about.&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 11:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-merge-two-date-fields/m-p/341759#M1277256</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-03-08T11:33:57Z</dc:date>
    </item>
  </channel>
</rss>

