<?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: Delete duplicate row in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782090#M276979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;modify Where statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Cnt=1 or (Len(Trim(Start))&amp;gt;0 AND Len(Trim(End))&amp;gt;0 AND Len(Trim(Status))&amp;gt;0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Feb 2015 08:14:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-02-11T08:14:43Z</dc:date>
    <item>
      <title>Delete duplicate row</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782085#M276974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to delete duplicate rows (activities) where the fields Start, End and Status are all empty. So if an activity exists more than once (like Activity A), the empty ones should be deleted (like Activity_ID 001). But only if all 3 fields are empty&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); border-image: none; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Activity&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Start&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;End&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Activity_ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;A&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;001&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;01-01-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05-05-2014&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Completed&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;002&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;004&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;05-05-2015&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Waiting&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;005&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&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, 11 Feb 2015 07:31:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782085#M276974</guid>
      <dc:creator>nicolai_moller</dc:creator>
      <dc:date>2015-02-11T07:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782086#M276975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load * From Table&lt;/P&gt;&lt;P&gt;Where Len(Trim(Start)) = 0 And &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Len(Trim(End)) = 0 And &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Len(Trim(Status)) = 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 07:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782086#M276975</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-02-11T07:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782087#M276976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look this one.&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, 11 Feb 2015 07:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782087#M276976</guid>
      <dc:creator />
      <dc:date>2015-02-11T07:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782088#M276977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your suggestion deletes all empty rows. Only rows that duplicate AND empty should be deleted.&lt;/P&gt;&lt;P&gt;Activity A exists twice and one row (Activity_ID 001) is completely empty, so that row should be deleted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 07:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782088#M276977</guid>
      <dc:creator>nicolai_moller</dc:creator>
      <dc:date>2015-02-11T07:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782089#M276978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Temp:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Load * From Table&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Join(Temp)&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Load Activity,Count(Activity) As Cnt Resident Temp;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Final:&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;NoConcatenate&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Load * Resident Temp&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Where Len(Trim(Start)) = 0 And &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Len(Trim(End)) = 0 And &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;Len(Trim(Status)) = 0 And Cnt &amp;gt; 1;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Drop Table Temp;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 08:03:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782089#M276978</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2015-02-11T08:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782090#M276979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;modify Where statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Cnt=1 or (Len(Trim(Start))&amp;gt;0 AND Len(Trim(End))&amp;gt;0 AND Len(Trim(Status))&amp;gt;0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 08:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782090#M276979</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-11T08:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782091#M276980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works, but makes the assumptions that there is only one populated line, but there may be one or more unpopulated lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;LOAD Activity,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Start,&lt;/P&gt;&lt;P&gt;&amp;nbsp; End,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Activity_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; If(Len(Start) = 0 And Len(End) = 0 And Len(Status) = 0, Null(), Activity_ID) As TActivity_ID&lt;/P&gt;&lt;P&gt;Inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Activity,Start,End,Status,Activity_ID&lt;/P&gt;&lt;P&gt;&amp;nbsp; A,,,,001&lt;/P&gt;&lt;P&gt;&amp;nbsp; A,01-01-2014,05-05-2014,Completed,002&lt;/P&gt;&lt;P&gt;&amp;nbsp; B,,,,003&lt;/P&gt;&lt;P&gt;&amp;nbsp; C,,,,004&lt;/P&gt;&lt;P&gt;&amp;nbsp; D,05-05-2015,,Waiting,005&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;LOAD Activity,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(Start) As Start,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Max(End) As End,&lt;/P&gt;&lt;P&gt;&amp;nbsp; MaxString(Status) As Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Num(Max(Alt(TActivity_ID, Activity_ID), '000')) As Activity_ID&lt;/P&gt;&lt;P&gt;Resident Data&lt;/P&gt;&lt;P&gt;Group By Activity;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TActivity_ID field stores the Activity_ID of the populated field. The Alt() selects this value if it exists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 08:22:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782091#M276980</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-02-11T08:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete duplicate row</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782092#M276981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using staight table, you can acheive your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Joshmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Feb 2015 09:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-duplicate-row/m-p/782092#M276981</guid>
      <dc:creator />
      <dc:date>2015-02-11T09:22:47Z</dc:date>
    </item>
  </channel>
</rss>

