<?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: record counter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/record-counter/m-p/1292711#M858746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sindhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trust you are doing good!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RecNo() is a script function. This script functions returns an integer for the number of the currently read row of the current table. The first record is number 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is syntax:&lt;/P&gt;&lt;P&gt;RecNo() As RecordNo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to RowNo() function (It is a function which counts rows in the resulting QlikView table), RecNo(), counts the records in the raw data table and is reset when a raw data table is concatenated to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw data table load:&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[A, B&lt;/P&gt;&lt;P&gt;1, aa&lt;/P&gt;&lt;P&gt;2,cc&lt;/P&gt;&lt;P&gt;3,ee];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[C, D&lt;/P&gt;&lt;P&gt;5, xx&lt;/P&gt;&lt;P&gt;4,yy&lt;/P&gt;&lt;P&gt;6,zz];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading record and row numbers for selected rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QTab:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;RecNo( ), &lt;/P&gt;&lt;P&gt;RowNo( ) &lt;/P&gt;&lt;P&gt;resident Tab1 where A&amp;lt;&amp;gt;2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;C as A, &lt;/P&gt;&lt;P&gt;D as B, &lt;/P&gt;&lt;P&gt;RecNo( ), &lt;/P&gt;&lt;P&gt;RowNo( ) &lt;/P&gt;&lt;P&gt;resident Tab2 where A&amp;lt;&amp;gt;5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//We don't need the source tables anymore, so we drop them&lt;/P&gt;&lt;P&gt;Drop tables Tab1, Tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting QlikView internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Result.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150396_Result.PNG" style="height: 177px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Reference: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;A class="jive-link-external-small" href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/RecNo.htm" rel="nofollow" target="_blank"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/RecNo.htm&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Jan 2017 05:29:22 GMT</pubDate>
    <dc:creator>rahulpawarb</dc:creator>
    <dc:date>2017-01-23T05:29:22Z</dc:date>
    <item>
      <title>record counter</title>
      <link>https://community.qlik.com/t5/QlikView/record-counter/m-p/1292710#M858745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using record counter on keyfields in qlikview..can anyone explain me with example.&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/record-counter/m-p/1292710#M858745</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: record counter</title>
      <link>https://community.qlik.com/t5/QlikView/record-counter/m-p/1292711#M858746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sindhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trust you are doing good!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RecNo() is a script function. This script functions returns an integer for the number of the currently read row of the current table. The first record is number 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is syntax:&lt;/P&gt;&lt;P&gt;RecNo() As RecordNo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast to RowNo() function (It is a function which counts rows in the resulting QlikView table), RecNo(), counts the records in the raw data table and is reset when a raw data table is concatenated to another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Load script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raw data table load:&lt;/P&gt;&lt;P&gt;Tab1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[A, B&lt;/P&gt;&lt;P&gt;1, aa&lt;/P&gt;&lt;P&gt;2,cc&lt;/P&gt;&lt;P&gt;3,ee];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tab2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE&lt;/P&gt;&lt;P&gt;[C, D&lt;/P&gt;&lt;P&gt;5, xx&lt;/P&gt;&lt;P&gt;4,yy&lt;/P&gt;&lt;P&gt;6,zz];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loading record and row numbers for selected rows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QTab:&lt;/P&gt;&lt;P&gt;LOAD *, &lt;/P&gt;&lt;P&gt;RecNo( ), &lt;/P&gt;&lt;P&gt;RowNo( ) &lt;/P&gt;&lt;P&gt;resident Tab1 where A&amp;lt;&amp;gt;2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;C as A, &lt;/P&gt;&lt;P&gt;D as B, &lt;/P&gt;&lt;P&gt;RecNo( ), &lt;/P&gt;&lt;P&gt;RowNo( ) &lt;/P&gt;&lt;P&gt;resident Tab2 where A&amp;lt;&amp;gt;5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//We don't need the source tables anymore, so we drop them&lt;/P&gt;&lt;P&gt;Drop tables Tab1, Tab2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resulting QlikView internal table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Result.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150396_Result.PNG" style="height: 177px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Reference: &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;A class="jive-link-external-small" href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/RecNo.htm" rel="nofollow" target="_blank"&gt;http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Scripting/CounterFunctions/RecNo.htm&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jan 2017 05:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/record-counter/m-p/1292711#M858746</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2017-01-23T05:29:22Z</dc:date>
    </item>
  </channel>
</rss>

