<?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: Conditional elimination of duplicates in script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11710#M790106</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noelle, another option with Exists:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load TRIM&amp;lt;&amp;gt;'Unknown'&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIN as chkVIN&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Where &lt;SPAN style="font-size: 13.3333px;"&gt;TRIM&amp;lt;&amp;gt;'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Unknown&lt;/SPAN&gt;' and not exists('&lt;SPAN style="font-size: 13.3333px;"&gt;chkVIN',&lt;/SPAN&gt;VIN);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// Add records that only has TRIM='Unknown'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concatenate (Final)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIN as chkVIN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident Table&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Where &lt;SPAN style="font-size: 13.3333px;"&gt;TRIM='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Unknown&lt;/SPAN&gt;' and not exists('&lt;SPAN style="font-size: 13.3333px;"&gt;chkVIN', &lt;/SPAN&gt;VIN);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field &lt;SPAN style="font-size: 13.3333px;"&gt;chkVIN;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2018 17:37:10 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2018-02-12T17:37:10Z</dc:date>
    <item>
      <title>Conditional elimination of duplicates in script</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11706#M790102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two columns of concern in a qvw file: VIN and Trim Level.&amp;nbsp; In some cases, Trim Level is listed as 'Unknown'.&amp;nbsp; There are two possibilities for these cases: 1. VIN is unique or 2. VIN is duplicated on another row, with the other row showing the correct Trim Level (e.g. AA in example below).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case 1. I want to keep these unique VIN's (even though Trim is 'Unknown').&lt;/P&gt;&lt;P&gt;In case 2. I want to eliminate the rows with 'Unknown' and keep the rows with the correct Trim Level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In all cases of duplicates, all other columns (not discussed here) are the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex.&lt;/P&gt;&lt;P&gt;VIN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TRIM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Want&lt;/P&gt;&lt;P&gt;X1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keep&lt;/P&gt;&lt;P&gt;X1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unknown&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Eliminate (replace by above)&lt;/P&gt;&lt;P&gt;X2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keep&lt;/P&gt;&lt;P&gt;X3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Unknown&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Keep&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, I would like to accomplish this in the Script so the effect cascades to all other sheet elements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11706#M790102</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional elimination of duplicates in script</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11707#M790103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Order your table by VIN and then by TRIM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(VIN)=peek('VIN') and TRIM = 'Unknown','Eliminate','Keep') as Want&lt;/P&gt;&lt;P&gt;resident your table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then resident load where Want = 'Keep'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 17:01:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11707#M790103</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-02-12T17:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional elimination of duplicates in script</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11708#M790104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the response.&amp;nbsp; Perhaps I need to clarify... the 'Want' column listed above is not an additional desired column, but instead indicates the outcome I would like to see in each scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to keep every instance where VIN is not duplicated, and I want to keep only one instance when VIN is duplicated (in this case, I want to keep the instance where the Trim Level is defined (i.e. not 'Unknown')).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please offer another suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 17:12:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11708#M790104</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-12T17:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional elimination of duplicates in script</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11709#M790105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Want column is what allows you to identify the records that you want to keep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating the Want column, you do a resident load on that table where Want = 'Keep'&lt;/P&gt;&lt;P&gt;Then you can drop the Want Field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;See the attached qvw.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 17:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11709#M790105</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2018-02-12T17:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional elimination of duplicates in script</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11710#M790106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Noelle, another option with Exists:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load TRIM&amp;lt;&amp;gt;'Unknown'&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIN as chkVIN&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Where &lt;SPAN style="font-size: 13.3333px;"&gt;TRIM&amp;lt;&amp;gt;'&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Unknown&lt;/SPAN&gt;' and not exists('&lt;SPAN style="font-size: 13.3333px;"&gt;chkVIN',&lt;/SPAN&gt;VIN);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;// Add records that only has TRIM='Unknown'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Concatenate (Final)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD *,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VIN as chkVIN&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Resident Table&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Where &lt;SPAN style="font-size: 13.3333px;"&gt;TRIM='&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Unknown&lt;/SPAN&gt;' and not exists('&lt;SPAN style="font-size: 13.3333px;"&gt;chkVIN', &lt;/SPAN&gt;VIN);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field &lt;SPAN style="font-size: 13.3333px;"&gt;chkVIN;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 17:37:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11710#M790106</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2018-02-12T17:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional elimination of duplicates in script</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11711#M790107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello m w,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the additional response.&amp;nbsp; I understand what you are suggesting with the Resident tables.&amp;nbsp; Unfortunately, I am not able to get the script to fully run, with the following errors:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;VINSort:&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;Drop table statement&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;EliminateDups:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table not found&lt;/P&gt;&lt;P&gt;Drop table statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the script I'm using:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Initial:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;vin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;trim_level&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt; (all my other variables)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;C&gt; (&lt;/C&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;qvx&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;VINSort:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;vin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;trim_level&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;(all my other variables)&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;vin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;peek&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;('vin') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;trim_level&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 'Unknown','Eliminate','Keep') &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Want&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; EliminateDups;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;drop&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; EliminateDups;&lt;BR /&gt; &lt;BR /&gt; EliminateDups:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;NoConcatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;LOAD&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;vin&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;trim_level&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; VINSort&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;where&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Want&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 'Keep';&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;DROP&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; VINSort;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 10pt;"&gt;exit&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;script&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Are you able to spot my error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks again very much for your time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 20:38:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11711#M790107</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-12T20:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional elimination of duplicates in script</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11712#M790108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shouldn't this be Resident from Initial, rather than from ElminateDups&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Initial:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD vin,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim_level,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (all my other variables)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;FROM &lt;/STRONG&gt;&lt;STRONG&gt;&lt;C&gt; (qvx);&lt;/C&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;VINSort:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;STRONG&gt;vin,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim_level,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (all my other variables),&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(vin=peek('vin') and trim_level = 'Unknown','Eliminate','Keep') as Want&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident &lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;EliminateDups&lt;/SPAN&gt;&lt;STRONG&gt; Initial;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;DROP Table &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;EliminateDups&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt; &lt;/SPAN&gt;Initial&lt;/STRONG&gt;&lt;/STRONG&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EliminateDups:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;NoConcatenate&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;LOAD&amp;nbsp; vin, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; trim_level&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Resident VINSort&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Where Want = 'Keep';&lt;/STRONG&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table VINSort;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;EXIT Script;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 20:43:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11712#M790108</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-12T20:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional elimination of duplicates in script</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11713#M790109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all for the responses.&amp;nbsp; Using the base code from m w and the tip from Sunny, I was close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since my trim_level could be after the 'Unknown' alphebetically, (e.g. trim_level = XL), I needed to reassign the name of 'Unknown' as 'ZZZZ' in order to work properly with the 'peek' function.&amp;nbsp; This seemed to do the trick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again - appreciate the kind and patient answers to a new user question.&lt;/P&gt;&lt;P&gt;Noelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Feb 2018 16:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-elimination-of-duplicates-in-script/m-p/11713#M790109</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-13T16:22:47Z</dc:date>
    </item>
  </channel>
</rss>

