<?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: rec() creating duplicate rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46159#M779939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Distinct is not important to the functionalities of rowno/recno but it could have an impact to all merged tables not only the one in which is was declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2018 12:59:50 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2018-04-03T12:59:50Z</dc:date>
    <item>
      <title>rec() creating duplicate rows</title>
      <link>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46153#M779933</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 am running into an interesting situation. I have a table which is a result of concatenating three loads coming from three different sources (A, B, C). I then include rec() into the load so that I will have a unique number per row. Oddly this step is resulting in multiple instances of the same rows for records I loaded from B and C. I checked the sources for B and C and there are no duplicates. For testing, I also tried displaying in a simple Table Box of all the fields from that Table and did not see any duplicates. But when I reload the table with a new field such as &lt;SPAN style="color: #0000ff;"&gt;rec&lt;/SPAN&gt;() &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #ff6600;"&gt;recID&lt;/SPAN&gt; suddenly the loaded table is having multiple identical rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&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/rec-creating-duplicate-rows/m-p/46153#M779933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: rec() creating duplicate rows</title>
      <link>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46154#M779934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried with RowNo() instead of RecNo()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RowNo() as RecID&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 12:30:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46154#M779934</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-03T12:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: rec() creating duplicate rows</title>
      <link>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46155#M779935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tried just now and still having the same result. I'm perplexed. Very odd.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 12:40:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46155#M779935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-03T12:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: rec() creating duplicate rows</title>
      <link>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46156#M779936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share the script don't need the field names... but a basic outline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 12:44:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46156#M779936</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-04-03T12:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: rec() creating duplicate rows</title>
      <link>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46157#M779937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it fixed Sunny! Don't know why I hadn't thought about it but this time I did Load Distinct. I realize for the data from sources B and C I was doing a simple Load while the data from source A I had Load Distinct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still no idea though why I'd have to put Distinct in the load script as they're all unique anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 12:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46157#M779937</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-03T12:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: rec() creating duplicate rows</title>
      <link>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46158#M779938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you used a logic like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;load *, rowno() as RowNo, recno() as RecNo inline [&lt;/P&gt;&lt;P&gt;F1, F2&lt;/P&gt;&lt;P&gt;a, 1&lt;/P&gt;&lt;P&gt;b, 2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;concatenate(table)&lt;/P&gt;&lt;P&gt;load *, rowno() as RowNo, recno() as RecNo inline [&lt;/P&gt;&lt;P&gt;F1, F2&lt;/P&gt;&lt;P&gt;c, 3&lt;/P&gt;&lt;P&gt;d, 4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;concatenate(table)&lt;/P&gt;&lt;P&gt;load *, rowno() as RowNo, recno() as RecNo inline [&lt;/P&gt;&lt;P&gt;F1, F2&lt;/P&gt;&lt;P&gt;e, 5&lt;/P&gt;&lt;P&gt;f, 6&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/198243_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;it will work or is anything different in your logic?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 12:55:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46158#M779938</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-04-03T12:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: rec() creating duplicate rows</title>
      <link>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46159#M779939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Distinct is not important to the functionalities of rowno/recno but it could have an impact to all merged tables not only the one in which is was declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 12:59:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/rec-creating-duplicate-rows/m-p/46159#M779939</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-04-03T12:59:50Z</dc:date>
    </item>
  </channel>
</rss>

