<?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 Duplicate records in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144890#M23695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try a 'while' expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Hans&lt;/P&gt;F1&lt;BR /&gt;,F2&lt;BR /&gt;,mid(F3,Iterno(),1) &lt;B&gt;as&lt;/B&gt; F3&lt;BR /&gt;&lt;B&gt;resident&lt;/B&gt; table &lt;BR /&gt;&lt;B&gt;while&lt;/B&gt; Iterno()&amp;lt;=len(F3) ; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 May 2009 03:05:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-05-26T03:05:29Z</dc:date>
    <item>
      <title>Duplicate records</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144887#M23692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a problem.&lt;/P&gt;&lt;P&gt;I must read, by a script, an external file (Excel) like:&lt;/P&gt;&lt;P&gt;FIELD1 FIELD2 FIELD3&lt;/P&gt;&lt;P&gt;A X 3&lt;/P&gt;&lt;P&gt;B Y 41&lt;/P&gt;&lt;P&gt;C Z 321&lt;/P&gt;&lt;P&gt;and I want to create a table QLV like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD1 FIELD2 FIELD3&lt;/P&gt;&lt;P&gt;A X 3&lt;/P&gt;&lt;P&gt;B Y 4&lt;/P&gt;&lt;P&gt;B Y 1&lt;/P&gt;&lt;P&gt;C Z 3&lt;/P&gt;&lt;P&gt;C Z 2&lt;/P&gt;&lt;P&gt;C Z 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I to make for this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank 1000 all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 21:00:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144887#M23692</guid>
      <dc:creator />
      <dc:date>2009-05-25T21:00:47Z</dc:date>
    </item>
    <item>
      <title>Duplicate records</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144888#M23693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if this will work, but the first thing I'd try is:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; FIELD1,&lt;BR /&gt; FIELD2,&lt;BR /&gt; subfield(FIELD3, '') as FIELD3&lt;BR /&gt;RESIDENT Table;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 22:03:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144888#M23693</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-25T22:03:17Z</dc:date>
    </item>
    <item>
      <title>Duplicate records</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144889#M23694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank Michael,&lt;/P&gt;&lt;P&gt;But there is a problem.&lt;/P&gt;&lt;P&gt;If I execute the sample attached, it create toot much rows (See table Tab3).&lt;/P&gt;&lt;P&gt;Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Field1, Field2, F31, F32, F33, F34&lt;BR /&gt; A, X, 3, 4, 21, 3&lt;BR /&gt; B, Y, 41, 2, 1, 2&lt;BR /&gt; C, Z, 321, 3, 1, 42&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Table11:&lt;BR /&gt;Load RecNo() as Indiv, *&lt;BR /&gt;resident Table1;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Tab2:&lt;BR /&gt;CROSSTABLE(CodQuestion,CodDettQuest0,3)&lt;BR /&gt;LOAD Indiv, Field1, Field2,&lt;BR /&gt; F31, F32, F33, F34&lt;BR /&gt;resident Table11;&lt;BR /&gt;Drop table Table1; Drop table Table11;&lt;BR /&gt;&lt;BR /&gt;Tab3:&lt;BR /&gt;Load *,&lt;BR /&gt; subfield(CodDettQuest0,'') as CodDettQuest1&lt;BR /&gt;resident Tab2;&lt;BR /&gt;Rem Drop table Tab2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 May 2009 22:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144889#M23694</guid>
      <dc:creator />
      <dc:date>2009-05-25T22:19:29Z</dc:date>
    </item>
    <item>
      <title>Duplicate records</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144890#M23695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would try a 'while' expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Hans&lt;/P&gt;F1&lt;BR /&gt;,F2&lt;BR /&gt;,mid(F3,Iterno(),1) &lt;B&gt;as&lt;/B&gt; F3&lt;BR /&gt;&lt;B&gt;resident&lt;/B&gt; table &lt;BR /&gt;&lt;B&gt;while&lt;/B&gt; Iterno()&amp;lt;=len(F3) ; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 03:05:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144890#M23695</guid>
      <dc:creator />
      <dc:date>2009-05-26T03:05:29Z</dc:date>
    </item>
    <item>
      <title>Duplicate records</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144891#M23696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;load&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;F1&lt;BR /&gt;,F2&lt;BR /&gt;,mid(F3,Iterno(),1) &lt;B&gt;as&lt;/B&gt; F3&lt;BR /&gt;&lt;B&gt;resident&lt;/B&gt; table&lt;BR /&gt;&lt;B&gt;while&lt;/B&gt; Iterno()&amp;lt;=len(F3) ; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 03:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144891#M23696</guid>
      <dc:creator />
      <dc:date>2009-05-26T03:06:30Z</dc:date>
    </item>
    <item>
      <title>Duplicate records</title>
      <link>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144892#M23697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, the seconf thing I"d try is this&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Field1, Field2, F31, F32, F33, F34&lt;BR /&gt; A, X, 3, 4, 21, 3&lt;BR /&gt; B, Y, 41, 2, 1, 2&lt;BR /&gt; C, Z, 321, 3, 1, 42&lt;BR /&gt;];&lt;BR /&gt;Table11:&lt;BR /&gt;Load RecNo() as Indiv, *&lt;BR /&gt;resident Table1;&lt;BR /&gt;Tab2:&lt;BR /&gt;CROSSTABLE(CodQuestion,CodDettQuest0,3)&lt;BR /&gt;LOAD Indiv, Field1, Field2,&lt;BR /&gt; F31, F32, F33, F34&lt;BR /&gt;resident Table11;&lt;BR /&gt;Drop table Table1; Drop table Table11;&lt;BR /&gt;&lt;BR /&gt;for i=1 to 10 // assumong 10 is max possible length&lt;BR /&gt;Tab3:&lt;BR /&gt;Load&lt;BR /&gt; *,&lt;BR /&gt; mid(CodDettQuest0,$(i),1) as CodDettQuest1&lt;BR /&gt;resident Tab2&lt;BR /&gt;where len( mid(CodDettQuest0,$(i),1))&amp;gt;0;&lt;BR /&gt;next&lt;BR /&gt;Drop table Tab2;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2009 23:51:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Duplicate-records/m-p/144892#M23697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-05-26T23:51:10Z</dc:date>
    </item>
  </channel>
</rss>

