<?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: Understand the use of RowNo() inside Autonumber function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981649#M81007</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;Thanks for replying.&lt;/P&gt;
&lt;P&gt;I didn't understand this line written by you. How this works:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;By combining it with rowno() it could respect further dimensions, for example not just returning a number for a product or customer else returning such a number per day or category.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll use the Inter-record functions approach as suggested by you. I've seen your other posts related to Autonumber().&lt;/P&gt;
&lt;P&gt;But one thing why the below script is giving output '1' against all rows.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AutoNumber(ROWNO(),Name&amp;amp;'_'&amp;amp;Place&amp;amp;'_'&amp;amp;Value) AS Auto2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, I don't have any field to Order by. Should I order by using RecNo() or RowNo().&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think order by works on numeric field which is used for sorting in ascending or descending order.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;regards,&lt;BR /&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Sep 2022 16:26:08 GMT</pubDate>
    <dc:creator>erric3210</dc:creator>
    <dc:date>2022-09-15T16:26:08Z</dc:date>
    <item>
      <title>Understand the use of RowNo() inside Autonumber function</title>
      <link>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981145#M80963</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;
&lt;P&gt;I need to understand the purpose or use of RowNo() inside Autonumber() function.&lt;/P&gt;
&lt;P&gt;MAIN:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Name, Place, Value&lt;BR /&gt;AA, AA-X, 1000&lt;BR /&gt;AA, AA-X, 2000&lt;BR /&gt;BB, BB-X, 3000&lt;BR /&gt;BB, BB-Y, 4000&lt;BR /&gt;CC, CC-X, 6000&lt;BR /&gt;CC, CC-X, 7000&lt;BR /&gt;CC, CC-Y, 8000&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;FINAL:&lt;BR /&gt;LOAD Name,&lt;BR /&gt;Place,&lt;BR /&gt;Value,&lt;BR /&gt;AutoNumber(Name&amp;amp;'_'&amp;amp;Place&amp;amp;'_'&amp;amp;Value) AS Auto1,&lt;BR /&gt;AutoNumber(ROWNO(),Name&amp;amp;'_'&amp;amp;Place&amp;amp;'_'&amp;amp;Value) AS Auto2&lt;BR /&gt;RESIDENT MAIN;&lt;BR /&gt;DROP TABLE MAIN;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Result&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Autonumber - Rowno.PNG" style="width: 418px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/89124i1DEA3F4BD0982668/image-size/large?v=v2&amp;amp;px=999" role="button" title="Autonumber - Rowno.PNG" alt="Autonumber - Rowno.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can some one please explain the concept behind this.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 20:37:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981145#M80963</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2022-09-14T20:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Understand the use of RowNo() inside Autonumber function</title>
      <link>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981386#M80981</link>
      <description>&lt;P&gt;Autonumber() adds 1 for each new distinct value of the field respectively field-combination. By combining it with rowno() it could respect further dimensions, for example not just returning a number for a product or customer else returning such a number per day or category.&lt;/P&gt;
&lt;P&gt;But it's seldom useful because the performance of this approach is already by smaller data-sets quite worse. Therefore if such information is needed it's better to use interrecord-functions like previous() or peek() within a sorted resident load to create such results.&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 10:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981386#M80981</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-15T10:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Understand the use of RowNo() inside Autonumber function</title>
      <link>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981649#M81007</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/28038"&gt;@marcus_sommer&lt;/a&gt;&amp;nbsp;Thanks for replying.&lt;/P&gt;
&lt;P&gt;I didn't understand this line written by you. How this works:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;By combining it with rowno() it could respect further dimensions, for example not just returning a number for a product or customer else returning such a number per day or category.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'll use the Inter-record functions approach as suggested by you. I've seen your other posts related to Autonumber().&lt;/P&gt;
&lt;P&gt;But one thing why the below script is giving output '1' against all rows.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;AutoNumber(ROWNO(),Name&amp;amp;'_'&amp;amp;Place&amp;amp;'_'&amp;amp;Value) AS Auto2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, I don't have any field to Order by. Should I order by using RecNo() or RowNo().&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think order by works on numeric field which is used for sorting in ascending or descending order.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;regards,&lt;BR /&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 16:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981649#M81007</guid>
      <dc:creator>erric3210</dc:creator>
      <dc:date>2022-09-15T16:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Understand the use of RowNo() inside Autonumber function</title>
      <link>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981776#M81014</link>
      <description>&lt;P&gt;By using rowno() within the autonumber() the rowno() becomes the counter against the specified field-combination. In general autonumber() need no sorting but in some cases it could be useful, for example within a calendar by applying it against Year &amp;amp; Month to get a continuous counter over years.&lt;/P&gt;
&lt;P&gt;Creating a dimension-specific counter is rather seldom useful - just regarding to your example it seems not be needed. Even by your applied&amp;nbsp;&lt;SPAN&gt;AutoNumber(Name&amp;amp;'_'&amp;amp;Place&amp;amp;'_'&amp;amp;Value) I have some doubts that you need it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 05:10:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Understand-the-use-of-RowNo-inside-Autonumber-function/m-p/1981776#M81014</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-16T05:10:15Z</dc:date>
    </item>
  </channel>
</rss>

