<?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: How to avoid duplicate rows with scripts in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562853#M41014</link>
    <description>&lt;P&gt;So, based on the input provided what is the output you are hoping to get from the script?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 11:20:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-03-29T11:20:29Z</dc:date>
    <item>
      <title>How to avoid duplicate rows with scripts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562839#M41013</link>
      <description>&lt;P&gt;Good Morning,&lt;/P&gt;&lt;P&gt;I have a table like:&lt;/P&gt;&lt;P&gt;Request, modified on&lt;/P&gt;&lt;P&gt;a, 31/12/2018&lt;/P&gt;&lt;P&gt;a, 01/01/2019&lt;/P&gt;&lt;P&gt;a, 02/02/2019&lt;/P&gt;&lt;P&gt;b, 03/02/2019&lt;/P&gt;&lt;P&gt;b,10/02/2019&lt;/P&gt;&lt;P&gt;I just want to obtain a table with the last modified record.&lt;/P&gt;&lt;P&gt;Which can be the right script?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 10:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562839#M41013</guid>
      <dc:creator>Marco_Car</dc:creator>
      <dc:date>2019-03-29T10:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid duplicate rows with scripts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562853#M41014</link>
      <description>&lt;P&gt;So, based on the input provided what is the output you are hoping to get from the script?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 11:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562853#M41014</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-29T11:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid duplicate rows with scripts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562859#M41015</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;The desiderata should be:&lt;/P&gt;&lt;P&gt;a, 02/02/2019&lt;/P&gt;&lt;P&gt;b,10/02/2019&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 11:30:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562859#M41015</guid>
      <dc:creator>Marco_Car</dc:creator>
      <dc:date>2019-03-29T11:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid duplicate rows with scripts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562861#M41016</link>
      <description>&lt;P&gt;Here is one option&lt;/P&gt;&lt;PRE&gt;Table:
LOAD Request,
	 Date(Max([modified on])) as [modified on]
Group By Request;
LOAD * INLINE [
    Request, modified on
    a, 31/12/2018
    a, 01/01/2019
    a, 02/02/2019
    b, 03/02/2019
    b, 10/02/2019
];&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Mar 2019 11:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562861#M41016</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-29T11:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid duplicate rows with scripts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562862#M41017</link>
      <description>&lt;P&gt;Here is another approach&lt;/P&gt;&lt;PRE&gt;Table:
LOAD * INLINE [
    Request, modified on
    a, 31/12/2018
    a, 01/01/2019
    a, 02/02/2019
    b, 03/02/2019
    b, 10/02/2019
];

Right Join (Table)
LOAD Request,
	 Max([modified on]) as [modified on]
Resident Table
Group By Request;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Mar 2019 11:39:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562862#M41017</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-03-29T11:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid duplicate rows with scripts</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562865#M41018</link>
      <description>&lt;P&gt;Hi Marco,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please go through the below script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Raw:&lt;BR /&gt;Load * Inline[&lt;BR /&gt;Request,modified&lt;BR /&gt;a,31/12/2018&lt;BR /&gt;a,01/01/2019&lt;BR /&gt;a,02/02/2019&lt;BR /&gt;b,03/02/2019&lt;BR /&gt;b,10/02/2019&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;BR /&gt;T1:&lt;BR /&gt;LOAD&lt;BR /&gt;Request,&lt;BR /&gt;Date(Date#(modified,'DD/MM/YYYY'),'DD/MM/YYYY') as modified&lt;BR /&gt;Resident Raw;&lt;/P&gt;&lt;P&gt;DROP Table Raw;&lt;/P&gt;&lt;P&gt;Inner Join&lt;BR /&gt;LOAD&lt;BR /&gt;Request,&lt;BR /&gt;Date(Max(Date#(modified,'DD/MM/YYYY')),'DD/MM/YYYY') as modified&lt;BR /&gt;Resident T1 Group By Request;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 11:52:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-avoid-duplicate-rows-with-scripts/m-p/1562865#M41018</guid>
      <dc:creator>amrinder</dc:creator>
      <dc:date>2019-03-29T11:52:25Z</dc:date>
    </item>
  </channel>
</rss>

