<?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 Load Script in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Load-Script/m-p/2139073#M92586</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have the following transactions table (Source table):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sharbel_2-1700299275979.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120163iFCEF62DC24AA22D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sharbel_2-1700299275979.png" alt="Sharbel_2-1700299275979.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am trying to write load script that achieves the followings: for each &lt;STRONG&gt;Clinet_no&lt;/STRONG&gt;, &lt;STRONG&gt;Client_name&lt;/STRONG&gt; and &lt;STRONG&gt;Transaction_date&lt;/STRONG&gt; the script loads only the&amp;nbsp; row with the most recent File_Date.&lt;/P&gt;
&lt;P&gt;Given the above source table, the desired load script will generate the following table :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sharbel_3-1700299325130.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120164i6A44B4C84B26B9EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sharbel_3-1700299325130.png" alt="Sharbel_3-1700299325130.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Sharbel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Nov 2023 09:28:41 GMT</pubDate>
    <dc:creator>Sharbel</dc:creator>
    <dc:date>2023-11-18T09:28:41Z</dc:date>
    <item>
      <title>Load Script</title>
      <link>https://community.qlik.com/t5/App-Development/Load-Script/m-p/2139073#M92586</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have the following transactions table (Source table):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sharbel_2-1700299275979.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120163iFCEF62DC24AA22D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sharbel_2-1700299275979.png" alt="Sharbel_2-1700299275979.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I am trying to write load script that achieves the followings: for each &lt;STRONG&gt;Clinet_no&lt;/STRONG&gt;, &lt;STRONG&gt;Client_name&lt;/STRONG&gt; and &lt;STRONG&gt;Transaction_date&lt;/STRONG&gt; the script loads only the&amp;nbsp; row with the most recent File_Date.&lt;/P&gt;
&lt;P&gt;Given the above source table, the desired load script will generate the following table :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Sharbel_3-1700299325130.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/120164i6A44B4C84B26B9EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Sharbel_3-1700299325130.png" alt="Sharbel_3-1700299325130.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Sharbel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 09:28:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-Script/m-p/2139073#M92586</guid>
      <dc:creator>Sharbel</dc:creator>
      <dc:date>2023-11-18T09:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/App-Development/Load-Script/m-p/2139084#M92587</link>
      <description>&lt;P&gt;This code works based on sample data.&amp;nbsp;&lt;SPAN&gt;What is the size of the data?&lt;/SPAN&gt;?&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;T:&lt;BR /&gt;LOAD&lt;BR /&gt;File_Date,&lt;BR /&gt;Serial_no,&lt;BR /&gt;Client_no,&lt;BR /&gt;Client_name,&lt;BR /&gt;Transaction_date&lt;BR /&gt;FROM [lib://DataFiles/Sample.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 1 lines, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;T2:&lt;BR /&gt;Inner Join (T)&lt;BR /&gt;Load &lt;BR /&gt;Max(File_Date) as File_Date,&lt;BR /&gt;Client_no,&lt;BR /&gt;Transaction_date&lt;BR /&gt;Resident T Group By Client_no, Client_name,Transaction_date;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 11:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-Script/m-p/2139084#M92587</guid>
      <dc:creator>maheshkuttappa</dc:creator>
      <dc:date>2023-11-18T11:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Load Script</title>
      <link>https://community.qlik.com/t5/App-Development/Load-Script/m-p/2139095#M92589</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140733"&gt;@Sharbel&lt;/a&gt;&amp;nbsp; Please use the below code to get the desired output.&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp:&lt;BR /&gt;Load Date(File_Date,'DD/MM/YYYY') as File_Date,&lt;BR /&gt;Serial_no,&lt;BR /&gt;Client_no,&lt;BR /&gt;Client_name,&lt;BR /&gt;Date(Transaction_Date,'DD/MM/YYYY') as Transaction_Date&lt;/P&gt;
&lt;P&gt;Inline [&lt;BR /&gt;File_Date,Serial_no,Client_no,Client_name,Transaction_Date &lt;BR /&gt;18/11/2023,23111600,93600011,Benjamin Carter,18/11/2023&lt;BR /&gt;15/11/2023,23111511,93600011,Benjamin Carter,12/11/2023&lt;BR /&gt;13/11/2023,23111309,93600011,Benjamin Carter,12/11/2023&lt;BR /&gt;12/11/2023,23111208,93600011,Benjamin Carter,12/11/2023&lt;BR /&gt;13/11/2023,23111309,39500001,Emma Johnson,08/11/2023&lt;BR /&gt;12/11/2023,23111208,39500001,Emma Johnson,08/11/2023&lt;BR /&gt;08/11/2023,23111806,39500001,Emma Johnson,08/11/2023&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp1:&lt;BR /&gt;Load Date(Max(File_Date),'DD/MM/YYYY') as Max_File_Date,&lt;BR /&gt;Date(Max(File_Date),'DD/MM/YYYY') &amp;amp; Client_no as Key,&lt;BR /&gt;Client_no,&lt;BR /&gt;Transaction_Date&lt;BR /&gt;Resident Temp&lt;BR /&gt;group by Client_no,Transaction_Date;&lt;/P&gt;
&lt;P&gt;Inner join (Temp1)&lt;BR /&gt;Load Date(File_Date,'DD/MM/YYYY') &amp;amp; Client_no as Key,&lt;BR /&gt;Serial_no,&lt;BR /&gt;Client_name&lt;BR /&gt;Resident Temp;&lt;BR /&gt;&lt;BR /&gt;Drop field Key from Temp1;&lt;/P&gt;
&lt;P&gt;Drop table Temp;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;If this resolves your issue, please like and accept it as a solution.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2023 12:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Load-Script/m-p/2139095#M92589</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2023-11-18T12:50:56Z</dc:date>
    </item>
  </channel>
</rss>

