<?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 Replace Values with Most Recent date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Replace-Values-with-Most-Recent-date/m-p/1785948#M1210044</link>
    <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Long time lurker here but have finally been put into a situation where I need to reach out for assistance. The current data set that I am working with has has multiple entries for a single ActionID. In general this is not an issue, however, the fact that a single ActionID can have multiple Month Due EV dates creates problems for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.JPG" style="width: 142px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49804i2CA76FCD194D03B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is replace the Month Due EV dates for a given ActionID with the most recent date. Is such a thing possible to do during the load script?&lt;/P&gt;&lt;P&gt;Thank you in advance for your assistance.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 21:50:57 GMT</pubDate>
    <dc:creator>Kosakamaka</dc:creator>
    <dc:date>2021-02-24T21:50:57Z</dc:date>
    <item>
      <title>Replace Values with Most Recent date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Values-with-Most-Recent-date/m-p/1785948#M1210044</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Long time lurker here but have finally been put into a situation where I need to reach out for assistance. The current data set that I am working with has has multiple entries for a single ActionID. In general this is not an issue, however, the fact that a single ActionID can have multiple Month Due EV dates creates problems for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Capture.JPG" style="width: 142px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49804i2CA76FCD194D03B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is replace the Month Due EV dates for a given ActionID with the most recent date. Is such a thing possible to do during the load script?&lt;/P&gt;&lt;P&gt;Thank you in advance for your assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 21:50:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Values-with-Most-Recent-date/m-p/1785948#M1210044</guid>
      <dc:creator>Kosakamaka</dc:creator>
      <dc:date>2021-02-24T21:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Values with Most Recent date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Values-with-Most-Recent-date/m-p/1785989#M1210049</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115740"&gt;@Kosakamaka&lt;/a&gt;&amp;nbsp;, please check if this works for you :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SET DateFormat='MM/DD/YYYY';&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;DataX:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;ActionID, MonthDue&lt;BR /&gt;12582, 1/15/2021&lt;BR /&gt;12582, 1/15/2021&lt;BR /&gt;12582, 1/15/2021&lt;BR /&gt;12582, 1/15/2021&lt;BR /&gt;12582, 1/15/2021&lt;BR /&gt;12582, 3/12/2021&lt;BR /&gt;12583, 2/15/2021&lt;BR /&gt;12583, 2/15/2021&lt;BR /&gt;12583, 2/15/2021&lt;BR /&gt;12583, 2/15/2021&lt;BR /&gt;12583, 2/15/2021&lt;BR /&gt;12583, 4/12/2021&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;left join&lt;BR /&gt;Load&lt;BR /&gt;ActionID,&lt;BR /&gt;date(max(MonthDue)) as MonthDue2&lt;BR /&gt;Resident DataX&lt;BR /&gt;group By ActionID;&lt;/P&gt;&lt;P&gt;//Optional&lt;BR /&gt;drop field MonthDue;&lt;BR /&gt;rename field MonthDue2 to MonthDue;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 03:30:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Values-with-Most-Recent-date/m-p/1785989#M1210049</guid>
      <dc:creator>QFabian</dc:creator>
      <dc:date>2021-02-25T03:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Replace Values with Most Recent date</title>
      <link>https://community.qlik.com/t5/QlikView/Replace-Values-with-Most-Recent-date/m-p/1786207#M1210066</link>
      <description>&lt;P&gt;Worked like a charm, thanks a ton!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 14:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Replace-Values-with-Most-Recent-date/m-p/1786207#M1210066</guid>
      <dc:creator>Kosakamaka</dc:creator>
      <dc:date>2021-02-25T14:40:32Z</dc:date>
    </item>
  </channel>
</rss>

