<?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 dublicate rows group by some field in loadscript in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875065#M654480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what i wrote this post:&lt;/P&gt;&lt;P&gt;my task is to concat different names for my Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Test.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New_table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Id,&lt;/P&gt;&lt;P&gt;Concat(Name,'-') as NewName&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group by Id;&lt;/P&gt;&lt;P&gt;DROP Table Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In result i get &lt;SPAN style="font-size: 13.3333330154419px;"&gt;NewName &lt;STRONG&gt;Name1-Name1-Name2-Name2, &lt;/STRONG&gt;but i need: &lt;STRONG&gt;Name1-Name2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 16:31:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-22T16:31:44Z</dc:date>
    <item>
      <title>Delete dublicate rows group by some field in loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875063#M654476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my model i have following fields:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;rowno(),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Id,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer_id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Main_field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My result table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 272px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="60"&gt;&lt;STRONG&gt;rowno()&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="33"&gt;&lt;STRONG&gt;Id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="39"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="76"&gt;&lt;STRONG&gt;Customer_id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Main_field&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;196&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Main1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Name2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;196&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Main1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;196&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Main1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl64" height="17" style="border-top: none;"&gt;4&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Name2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;197&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;Main1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;What i need:&lt;/STRONG&gt; Get result table, which has no dublicate rows by Customer_Id:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 196px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="60"&gt;&lt;STRONG&gt;rowno()&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="33"&gt;&lt;STRONG&gt;Id&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="39"&gt;&lt;STRONG&gt;Name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="64"&gt;&lt;STRONG&gt;Main_field&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Name1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Main1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="17" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;22&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Name2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Main1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;P&gt;Model and source file in attachment.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875063#M654476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-22T16:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete dublicate rows group by some field in loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875064#M654478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't use both DISTINCT &amp;amp; ROWNO() in same load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Try like Below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;load Distinct &lt;/P&gt;&lt;P&gt;&amp;nbsp; Id,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Name,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Main_field &lt;/P&gt;&lt;P&gt;FROM Test.xlsx (ooxml, embedded labels, table is Sheet1) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;LOAD RowNo() , * Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Temp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:12:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875064#M654478</guid>
      <dc:creator />
      <dc:date>2015-06-22T16:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete dublicate rows group by some field in loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875065#M654480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what i wrote this post:&lt;/P&gt;&lt;P&gt;my task is to concat different names for my Id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Test.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;New_table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Id,&lt;/P&gt;&lt;P&gt;Concat(Name,'-') as NewName&lt;/P&gt;&lt;P&gt;Resident Table&lt;/P&gt;&lt;P&gt;Group by Id;&lt;/P&gt;&lt;P&gt;DROP Table Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In result i get &lt;SPAN style="font-size: 13.3333330154419px;"&gt;NewName &lt;STRONG&gt;Name1-Name1-Name2-Name2, &lt;/STRONG&gt;but i need: &lt;STRONG&gt;Name1-Name2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 16:31:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875065#M654480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-22T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delete dublicate rows group by some field in loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875066#M654481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use &lt;STRONG&gt;Distinct&lt;/STRONG&gt; Qualifier Inside &lt;STRONG&gt;Concat&lt;/STRONG&gt; function like below:&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 style="font-style: inherit; font-family: inherit;"&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;*&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Test.xlsx&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(ooxml, embedded labels, table is Sheet1)&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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;New_table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Id,&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;Concat(DISTINCT Name,'-') as NewName&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Resident Table&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Group by Id;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;DROP Table Table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:08:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875066#M654481</guid>
      <dc:creator />
      <dc:date>2015-06-22T17:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Delete dublicate rows group by some field in loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875067#M654482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;RESULT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90309_1.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SCRIPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Table:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;rowno() as rn,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;*&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; FROM&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Test.xlsx&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(ooxml, embedded labels, table is Sheet1)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FinalTable:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load *, RowNo();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load Id, Customer_id, Name, Main_field&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Resident Table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where Customer_id &amp;lt;&amp;gt; Peek(Customer_id)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;order by Customer_id, rn;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DROP Table Table;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 17:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875067#M654482</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-06-22T17:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: Delete dublicate rows group by some field in loadscript</title>
      <link>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875068#M654483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;it's what i need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:39:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Delete-dublicate-rows-group-by-some-field-in-loadscript/m-p/875068#M654483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-22T18:39:10Z</dc:date>
    </item>
  </channel>
</rss>

