<?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: dates from different fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dates-from-different-fields/m-p/1693879#M726664</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Raw:
load * INLINE [ 
Person_ID,unit_ID,Start_Date,M_Start_Date
27276155,1234,23/03/2018,
27276155,1234,9/03/2020,
27276155,3611,23/04/2019,23/04/2019
];

M_Start:
load distinct
Person_ID,Date#(M_Start_Date,'DD/MM/YYYY')as M_Start_Date
resident Raw
where len(M_Start_Date)&amp;gt;0;

left join(M_Start)

tempData:
load Person_ID,unit_ID,Date#(Start_Date,'DD/MM/YYYY')as Start_Date
resident Raw;

drop table Raw;
NoConcatenate
Data:
load *
resident M_Start
where Start_Date &amp;gt; M_Start_Date;

drop table M_Start;
exit SCRIPT;&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 16 Apr 2020 02:31:51 GMT</pubDate>
    <dc:creator>Arthur_Fong</dc:creator>
    <dc:date>2020-04-16T02:31:51Z</dc:date>
    <item>
      <title>dates from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/dates-from-different-fields/m-p/1693867#M726663</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I need help with a task I have been trying to solve. I have table look like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saifuddin_0-1586997972759.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/31906i2CB7F0DE6C674FEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saifuddin_0-1586997972759.png" alt="saifuddin_0-1586997972759.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source code&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saifuddin_1-1586997972761.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/31907i384D756196B2F478/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saifuddin_1-1586997972761.png" alt="saifuddin_1-1586997972761.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It imports no rows. I want to import only rows &lt;STRONG&gt;where Start_Date &amp;gt; &amp;nbsp;M_Start_Date&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Essentially, for the current data, I am expecting to see only &lt;STRONG&gt;Start_Date 9/03/2020&lt;/STRONG&gt; to get imported.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saif&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:50:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dates-from-different-fields/m-p/1693867#M726663</guid>
      <dc:creator>saifuddin</dc:creator>
      <dc:date>2024-11-16T00:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: dates from different fields</title>
      <link>https://community.qlik.com/t5/QlikView/dates-from-different-fields/m-p/1693879#M726664</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Raw:
load * INLINE [ 
Person_ID,unit_ID,Start_Date,M_Start_Date
27276155,1234,23/03/2018,
27276155,1234,9/03/2020,
27276155,3611,23/04/2019,23/04/2019
];

M_Start:
load distinct
Person_ID,Date#(M_Start_Date,'DD/MM/YYYY')as M_Start_Date
resident Raw
where len(M_Start_Date)&amp;gt;0;

left join(M_Start)

tempData:
load Person_ID,unit_ID,Date#(Start_Date,'DD/MM/YYYY')as Start_Date
resident Raw;

drop table Raw;
NoConcatenate
Data:
load *
resident M_Start
where Start_Date &amp;gt; M_Start_Date;

drop table M_Start;
exit SCRIPT;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Apr 2020 02:31:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dates-from-different-fields/m-p/1693879#M726664</guid>
      <dc:creator>Arthur_Fong</dc:creator>
      <dc:date>2020-04-16T02:31:51Z</dc:date>
    </item>
  </channel>
</rss>

