<?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: loading script - how to pick name based on lastest creation date and create as a field? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561698#M597787</link>
    <description>&lt;P&gt;Dear Jon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YES!! Thanks! i didnt know firstsortedvalue can be used at the back, most of the time, i used it at front end set analysis!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 06:40:24 GMT</pubDate>
    <dc:creator>jim_chan</dc:creator>
    <dc:date>2019-03-27T06:40:24Z</dc:date>
    <item>
      <title>loading script - how to pick name based on lastest creation date and create as a field?</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561649#M597783</link>
      <description>&lt;P&gt;Hi guys,&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a question, and i do not know how to achieve it in loading script. i have created a sample qvw. and a screenshot.&lt;/P&gt;&lt;P&gt;My request:&lt;/P&gt;&lt;P&gt;user would like to create a new field - product_id &amp;amp; name(based on latest create_date).&amp;nbsp; user wants the productID concantenate with a name of last creation date.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="screenshot1.jpg" style="width: 504px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/8877i5F9B9B52F91C148D/image-dimensions/504x233?v=v2" width="504" height="233" role="button" title="screenshot1.jpg" alt="screenshot1.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561649#M597783</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2024-11-16T21:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: loading script - how to pick name based on lastest creation date and create as a field?</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561661#M597784</link>
      <description>Just use&lt;BR /&gt;Product_id&amp;amp;name as Productidlastname&lt;BR /&gt;In load script</description>
      <pubDate>Wed, 27 Mar 2019 04:11:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561661#M597784</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2019-03-27T04:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: loading script - how to pick name based on lastest creation date and create as a field?</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561662#M597785</link>
      <description>If you have multiple date entry then.&lt;BR /&gt;&lt;BR /&gt;Load Productid,&lt;BR /&gt;Name,&lt;BR /&gt;Creationdate,&lt;BR /&gt;Productid &amp;amp;Name as Productidlastname;&lt;BR /&gt;Load&lt;BR /&gt;Productid,&lt;BR /&gt;Name,&lt;BR /&gt;Max(creationdate) as creationdate&lt;BR /&gt;Resident table&lt;BR /&gt;Group by name, productid;</description>
      <pubDate>Wed, 27 Mar 2019 04:19:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561662#M597785</guid>
      <dc:creator>passionate</dc:creator>
      <dc:date>2019-03-27T04:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: loading script - how to pick name based on lastest creation date and create as a field?</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561670#M597786</link>
      <description>&lt;P&gt;First change the date format at the top of your script so that your dates are properly recognised:&lt;/P&gt;&lt;PRE&gt;SET DateFormat='D/M/YYYY';
SET TimestampFormat='D/M/YYYY h:mm:ss[.fff] TT';&lt;/PRE&gt;&lt;P&gt;Then add this after the inline load:&lt;/P&gt;&lt;PRE&gt;Join(table1)
LOAD product_id,
	product_id &amp;amp; FirstSortedValue(name, -create_date) as newField
Resident table1
Group By product_id;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 05:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561670#M597786</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2019-03-27T05:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: loading script - how to pick name based on lastest creation date and create as a field?</title>
      <link>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561698#M597787</link>
      <description>&lt;P&gt;Dear Jon,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;YES!! Thanks! i didnt know firstsortedvalue can be used at the back, most of the time, i used it at front end set analysis!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jim&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 06:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loading-script-how-to-pick-name-based-on-lastest-creation-date/m-p/1561698#M597787</guid>
      <dc:creator>jim_chan</dc:creator>
      <dc:date>2019-03-27T06:40:24Z</dc:date>
    </item>
  </channel>
</rss>

