<?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 in script that resets after a particular count in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75790#M5034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently trying with Peek. Let me know if you guys can solve it more quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Feb 2018 23:27:34 GMT</pubDate>
    <dc:creator>vkish16161</dc:creator>
    <dc:date>2018-02-22T23:27:34Z</dc:date>
    <item>
      <title>Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75789#M5033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Here's my requirement&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Should be done in script.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product, Value, RowNo&lt;/P&gt;&lt;P&gt;A,10&lt;STRONG&gt;,1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A,,20&lt;STRONG&gt;,2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;B,30&lt;STRONG&gt;,3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;B,40&lt;STRONG&gt;,4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product, Value, RowNo&lt;/P&gt;&lt;P&gt;A,10&lt;STRONG&gt;,1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;A,,20&lt;STRONG&gt;,2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;B,30&lt;STRONG&gt;,1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;B,40&lt;STRONG&gt;,2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically for each value of Product, the rowno() should reset and start from 1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 23:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75789#M5033</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2018-02-22T23:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75790#M5034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently trying with Peek. Let me know if you guys can solve it more quickly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 23:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75790#M5034</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2018-02-22T23:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75791#M5035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think Peek is needed in script - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Source:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Product, Value&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;A,10&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;A,20&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;B,30&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;B,40];&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;NoConcatenate&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;Final:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Load *,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; if(Product=Previous(Product),Rangesum(Peek(Row_No),1),1) as Row_No&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident Source;&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;Drop table Source&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 23:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75791#M5035</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-22T23:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75792#M5036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AutoNumber(RecNo(), Product) as Counter&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>Fri, 23 Feb 2018 03:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75792#M5036</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-02-23T03:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75793#M5037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent solution. I did this using 2 for next loops. Your solution is the best one liner ever &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;rwunderlich&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 05:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75793#M5037</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2018-02-23T05:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75794#M5038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a good technique using AutoNumber.&amp;nbsp; Note that it can be slow if there are many thousands of different Product values, in which case you revert to the previous/peek method. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 06:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75794#M5038</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-02-23T06:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75795#M5039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a quick clarification,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the product field is acting like the Auto ID right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be happy if you could also explain what Auto ID does?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Rob!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 15:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75795#M5039</guid>
      <dc:creator>vkish16161</dc:creator>
      <dc:date>2018-02-23T15:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75796#M5040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Product is acting as the AutoId.&amp;nbsp; AutoId establishes a separate counting sequence for each value of the AutoId. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 16:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/75796#M5040</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-02-23T16:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rowno function in script that resets after a particular count</title>
      <link>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/1697801#M53402</link>
      <description>&lt;P&gt;Thanks Rob&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Reviewing the documentation updated so far, there is no clear instruction about Autoid parameter can be a table field. To me I supposed it can only be string parameter inside single quotes.&lt;/P&gt;&lt;P&gt;As you commented, autonumber could be very slow compared to using previous and peek.&amp;nbsp;&lt;/P&gt;&lt;P&gt;A colleague made a test on a 7 million rows dataset with thousands of distinct values on the key field.&lt;/P&gt;&lt;P&gt;Using autonumber, it took 50 minutes to process&lt;/P&gt;&lt;P&gt;Using sort/peek/previous it took only 4 minutes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Apr 2020 19:23:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rowno-function-in-script-that-resets-after-a-particular-count/m-p/1697801#M53402</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2020-04-29T19:23:25Z</dc:date>
    </item>
  </channel>
</rss>

