<?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: Remove Duplicates From a Load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1791240#M1210660</link>
    <description>&lt;P&gt;Hi Kelsie, you can bring the update date to the main table using a Join or a mapping table, then you can use the same exists(Asset) funtion but adding an 'order by [dateField] desc' clause. This way you will load the most recent updated value of each Asset&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/es-ES/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/es-ES/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/es-ES/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Join.htm" target="_blank"&gt;https://help.qlik.com/es-ES/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Join.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 14 Mar 2021 12:16:45 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2021-03-14T12:16:45Z</dc:date>
    <item>
      <title>Remove Duplicates From a Load</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1767746#M718840</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a load script that returning duplicate values. I am hoping to return only unique values.&lt;/P&gt;&lt;P&gt;Please see the load script below: "Resource.Name" is the unique identifier of an asset, the "Routing Date" value indicates the last time the asset was updated. Some of the assets have been routed multiple times, thus returning multiple values in the table visualization.&amp;nbsp; I would only like to show ONE unique instance (doesn't matter which) of the "Resource.Name" value in my load script.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select&lt;BR /&gt;c.name 'Resource.Name',&lt;BR /&gt;a.pool_name 'Workflow Exited',&lt;BR /&gt;a.exit_type 'Routing Value',&lt;BR /&gt;a.date 'Routing Date',&lt;BR /&gt;u.last_name 'Last Name',&lt;BR /&gt;cd1.value as 'Supplier.OriginalName',&lt;BR /&gt;cd2.value as 'AETN.PacID',&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;from&lt;BR /&gt;inv.clips c&lt;BR /&gt;join tem.workflow_audit a on a.clip_id = c.id&lt;BR /&gt;join tem.users u on a.user_id = u.id&lt;BR /&gt;join inv.suppliers s on c.supplier_id = s.id&lt;BR /&gt;left join inv.clip_data cd1 on cd1.clip_id = c.id and cd1.name = 'Supplier.OriginalName'&lt;BR /&gt;left join inv.clip_data cd2 on cd2.clip_id = c.id and cd2.name = 'AETN.PacID'&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 21:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1767746#M718840</guid>
      <dc:creator>kelsie_muller</dc:creator>
      <dc:date>2020-12-10T21:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicates From a Load</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1768083#M718841</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/131333"&gt;@kelsie_muller&lt;/a&gt;, you can use Exists() like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LOAD * Where not Exists(Resource.Name);
SELECT...&lt;/LI-CODE&gt;&lt;P&gt;This way when Reosurce.Name has been already loaded it will not be loaded again.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Dec 2020 12:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1768083#M718841</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2020-12-12T12:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicates From a Load</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1768370#M718842</link>
      <description>&lt;P&gt;That did the trick! Thank you so much.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 19:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1768370#M718842</guid>
      <dc:creator>kelsie_muller</dc:creator>
      <dc:date>2020-12-14T19:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicates From a Load</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1791092#M1210641</link>
      <description>&lt;P&gt;Hi Ruben -&amp;nbsp;Thank you again for the assist back in December!&lt;/P&gt;&lt;P&gt;The requirements of my load script have now changed. I still need unique values, but now I need to identify the most recent update to an asset. Is it possible to achieve this with an alteration to the load script?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 20:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1791092#M1210641</guid>
      <dc:creator>kelsie_muller</dc:creator>
      <dc:date>2021-03-12T20:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Remove Duplicates From a Load</title>
      <link>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1791240#M1210660</link>
      <description>&lt;P&gt;Hi Kelsie, you can bring the update date to the main table using a Join or a mapping table, then you can use the same exists(Asset) funtion but adding an 'order by [dateField] desc' clause. This way you will load the most recent updated value of each Asset&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/es-ES/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm" target="_blank"&gt;https://help.qlik.com/es-ES/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/MappingFunctions/ApplyMap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/es-ES/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Join.htm" target="_blank"&gt;https://help.qlik.com/es-ES/sense/November2020/Subsystems/Hub/Content/Sense_Hub/Scripting/ScriptPrefixes/Join.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 14 Mar 2021 12:16:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Remove-Duplicates-From-a-Load/m-p/1791240#M1210660</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2021-03-14T12:16:45Z</dc:date>
    </item>
  </channel>
</rss>

