<?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: RowNo function with Preceding load in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404095#M32762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, yes it's working, but not for the Total count. As &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/rwunderlich"&gt;rwunderlich&lt;/A&gt;‌&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;has mentioned below, the RecNo() counts Input records, so it resets the count for every new file in the loop. It should work identical with RowNo() count in case of "normal" preceding load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vlad&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Aug 2017 12:09:35 GMT</pubDate>
    <dc:creator>vlad_komarov</dc:creator>
    <dc:date>2017-08-16T12:09:35Z</dc:date>
    <item>
      <title>RowNo function with Preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404090#M32757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a script (below) and I've noticed that the RowNo() function is not working properly when I am using a Preceding load.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-08-15 at 10.38.06 AM.png" class="jive-image image-1" src="/legacyfs/online/173476_Screen Shot 2017-08-15 at 10.38.06 AM.png" style="height: 162px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added two rows' counts: RowNumPre and RowNumMain, placed in the Pre-load and the main load statements respectively.&lt;/P&gt;&lt;P&gt;Here are the results: the values in the main load part are not correct:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-08-15 at 10.41.26 AM.png" class="jive-image image-2" src="/legacyfs/online/173481_Screen Shot 2017-08-15 at 10.41.26 AM.png" style="height: 1021px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Every other function (FileName() in example above) are working fine. &lt;/P&gt;&lt;P&gt;An additional detail: I am loading the data from multiple files, so I am using a&lt;STRONG style="text-decoration: underline;"&gt; For each vFile in FileList()&lt;/STRONG&gt; ... &lt;STRONG style="text-decoration: underline;"&gt;Next vFile&lt;/STRONG&gt; loop....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I missing something?&lt;/P&gt;&lt;P&gt;Any comments/suggestions will be greatly appreciated. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vladimir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2017 16:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404090#M32757</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2017-08-15T16:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo function with Preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404091#M32758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Either use RecNo() in initial load or use RowNo() in the preceding load.... this is by design and have similar kind of structure as Peek and Previous&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2017 16:52:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404091#M32758</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-15T16:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo function with Preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404092#M32759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for suggestion! I forgot about RecNo() vs. RowNo() differences. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But using RecNo() is still not working fully in my case (when using &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; For each vFile in FileList()&lt;/STRONG&gt; ... &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Next vFile&lt;/STRONG&gt; loop).&lt;/P&gt;&lt;P&gt;It counts Records in each file separately. Which might be useful actually, but I did not expect that.&lt;/P&gt;&lt;P&gt;Here is the same data load (from two separate files) with RecNo count restarting with each file.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2017-08-15 at 2.01.24 PM.png" class="jive-image image-1" height="821" src="/legacyfs/online/173499_Screen Shot 2017-08-15 at 2.01.24 PM.png" style="height: 820.8px; width: 496px;" width="496" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestion, I will use it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Aug 2017 20:07:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404092#M32759</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2017-08-15T20:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo function with Preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404093#M32760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the problem with using RowNo() in the preceding load (your Row Num Pre)? That seems to be working, right?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 00:32:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404093#M32760</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-16T00:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo function with Preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404094#M32761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RecNo() is a counter for input records. RowNo() is the counter for output records. As Sunny stated, RowNo() only works in the topmost LOAD of a preceding load. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RecNo() will be reset for each new file read. Since you are not filtering and rows or creating additional rows, RowNo() in your case is also valid as a running counter of input rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 01:16:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404094#M32761</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2017-08-16T01:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo function with Preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404095#M32762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny, yes it's working, but not for the Total count. As &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/rwunderlich"&gt;rwunderlich&lt;/A&gt;‌&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;has mentioned below, the RecNo() counts Input records, so it resets the count for every new file in the loop. It should work identical with RowNo() count in case of "normal" preceding load.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Vlad&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 12:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404095#M32762</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2017-08-16T12:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo function with Preceding load</title>
      <link>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404096#M32763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for clarification. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vlad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 12:11:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/RowNo-function-with-Preceding-load/m-p/1404096#M32763</guid>
      <dc:creator>vlad_komarov</dc:creator>
      <dc:date>2017-08-16T12:11:01Z</dc:date>
    </item>
  </channel>
</rss>

