<?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 Count Row Numbers - Distinct load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583504#M216674</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 load some data from a resident table. It's a distinct load, to drop duplicate rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use rowno() or recno() but if I do this, I always get the duplicates in the final table.&lt;/P&gt;&lt;P&gt;Do I really have to load it in a temporary table first to get the count of the rows, or is there a "smarter" way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Feb 2014 16:36:30 GMT</pubDate>
    <dc:creator>peschu123</dc:creator>
    <dc:date>2014-02-13T16:36:30Z</dc:date>
    <item>
      <title>Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583504#M216674</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 load some data from a resident table. It's a distinct load, to drop duplicate rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use rowno() or recno() but if I do this, I always get the duplicates in the final table.&lt;/P&gt;&lt;P&gt;Do I really have to load it in a temporary table first to get the count of the rows, or is there a "smarter" way to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583504#M216674</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-02-13T16:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583505#M216675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe a preload might help.Use distinct only in the actual load. Like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;*,&lt;/P&gt;&lt;P&gt;Rowno() as Pky ;&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;Resident Table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: &lt;/P&gt;&lt;P&gt;To the row no you can do something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;Load Distinct * Resident Table;&lt;/P&gt;&lt;P&gt;Let vRowCount = NoOfRows('Test') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable vRowCount will have the number of records in table Test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;AJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583505#M216675</guid>
      <dc:creator />
      <dc:date>2014-02-13T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583506#M216676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about NoOfRows('mytable') ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:40:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583506#M216676</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-02-13T16:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583507#M216677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can load like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer ID],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Customer Name],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;From FileName;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583507#M216677</guid>
      <dc:creator>luis_pimentel</dc:creator>
      <dc:date>2014-02-13T16:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583508#M216678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="NoOfRows"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;from online help&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;NoOfRows(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;'TableName ' &lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Returns the number of rows (records) in a previously loaded table.&lt;/P&gt;&lt;P&gt;If the function is used within a &lt;SPAN class="Bold"&gt;load&lt;/SPAN&gt; statement, it must not reference the table currently being loaded.&lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P class="Code"&gt;LET a = NoOfRows('tab1');&lt;/P&gt;&lt;P class="Code"&gt;Load * from abc.csv where NoOfRows( )&amp;lt;30;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583508#M216678</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-02-13T16:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583509#M216679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried that too. It leads to the same result. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:43:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583509#M216679</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-02-13T16:43:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583510#M216680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NoOfRows(&lt;/SPAN&gt;&lt;SPAN class="Italic" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'TableName' &lt;/SPAN&gt;&lt;SPAN class="Bold" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) gives me 0 or 34 but not&amp;nbsp; 1...2..3..4...34&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold" style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;EDIT: OK I think I expressed it wrong, I just want to make an id field with the row number in this table. In my testdate I have one duplicate row. If I use rowno() or recno() during distinct load, I get the duplicate line too.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 16:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583510#M216680</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-02-13T16:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583511#M216681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is quite interesting. I guess you have to create a temporary table before using RowNo(). &lt;/P&gt;&lt;P&gt;Just a small tip. If your table size is large instead of resident load store it in a qvd and read from that. Would be faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 17:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583511#M216681</guid>
      <dc:creator />
      <dc:date>2014-02-13T17:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Count Row Numbers - Distinct load</title>
      <link>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583512#M216682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes this is the solution I actually use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think its because if you use a row number the rows are not equal anymore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: One possible "solution" could be autonumber(hash...) over all fields. But this is just a theoretical solution... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Feb 2014 17:14:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-Row-Numbers-Distinct-load/m-p/583512#M216682</guid>
      <dc:creator>peschu123</dc:creator>
      <dc:date>2014-02-13T17:14:54Z</dc:date>
    </item>
  </channel>
</rss>

