<?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: Using autonumber to have repeating values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783734#M1209790</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/894"&gt;@Saravanan_Desingh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is an example for my two batches&lt;/P&gt;&lt;P&gt;both batches have the same fields, these are called subgroupID, date(this is a date &amp;amp; time field), a&amp;nbsp; batch number and values.&lt;/P&gt;&lt;P&gt;so in batch one there are 20 samples, so therefore there are 20 subgroup ID's, 20 date/time fields, one batch number and 20 values&lt;/P&gt;&lt;P&gt;for batch two there are 15 samples so the same as batch one but 15 and not twenty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the below screenshot is what i want. where count 1 = the first sample in both batches, therefore ill be able to do a line graph chart like below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BSCIknowlec_1-1613638807210.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49348iA94DA72C5098A95B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BSCIknowlec_1-1613638807210.png" alt="BSCIknowlec_1-1613638807210.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2021 09:00:18 GMT</pubDate>
    <dc:creator>BSCIknowlec</dc:creator>
    <dc:date>2021-02-18T09:00:18Z</dc:date>
    <item>
      <title>Using autonumber to have repeating values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783389#M1209749</link>
      <description>&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;im trying use the autonumber function to have a number for each record. the catch is that need&amp;nbsp; to have this new field have repeating value for each of my batch number.&lt;/P&gt;&lt;P&gt;im trying to figure out what is the best combination of my fields to correctly get this?&lt;/P&gt;&lt;P&gt;i have 2 different batch numbers(just for this example, in my real app there will be countless amounts of batches), within each batch are a varying amount of samples, each sample has its own time/date stamp, value, and&amp;nbsp; PK(1613494718,16134947191613494722 etc..)&amp;nbsp;&lt;/P&gt;&lt;P&gt;lets say for batch 1 there are 20 samples, and for batch 2 there are 15,&amp;nbsp;&lt;/P&gt;&lt;P&gt;what i need to generate is a new field(using autonumberi beleive is the best route?) to have number 1-20(due to 20 being the largest sample number), with autonumber value 1 being for the first value in both batches. i will then use expressions for my line graph to have 2 lines over each other for each batch to display performance.&lt;/P&gt;&lt;P&gt;i can get a line graph for each batch but i cant get it go over each other, only when one line finishes the next one starts,&amp;nbsp;&lt;/P&gt;&lt;P&gt;any ideas on what is the best way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 11:33:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783389#M1209749</guid>
      <dc:creator>BSCIknowlec</dc:creator>
      <dc:date>2021-02-17T11:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using autonumber to have repeating values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783561#M1209774</link>
      <description>&lt;P&gt;Please post sample data and expected output&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 19:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783561#M1209774</guid>
      <dc:creator>Saravanan_Desingh</dc:creator>
      <dc:date>2021-02-17T19:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using autonumber to have repeating values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783574#M1209776</link>
      <description>&lt;P&gt;I believe what you are looking for is the &lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/CounterFunctions/RowNo.htm" target="_self"&gt;RowNo()&lt;/A&gt;&amp;nbsp;-or maybe even &lt;A href="https://help.qlik.com/en-US/sense/February2021/Subsystems/Hub/Content/Sense_Hub/Scripting/CounterFunctions/RecNo.htm" target="_self"&gt;RecNo()&lt;/A&gt; function. It will add an increasing&amp;nbsp; number for each row starting with 1.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 20:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783574#M1209776</guid>
      <dc:creator>haskia</dc:creator>
      <dc:date>2021-02-17T20:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using autonumber to have repeating values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783734#M1209790</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/894"&gt;@Saravanan_Desingh&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is an example for my two batches&lt;/P&gt;&lt;P&gt;both batches have the same fields, these are called subgroupID, date(this is a date &amp;amp; time field), a&amp;nbsp; batch number and values.&lt;/P&gt;&lt;P&gt;so in batch one there are 20 samples, so therefore there are 20 subgroup ID's, 20 date/time fields, one batch number and 20 values&lt;/P&gt;&lt;P&gt;for batch two there are 15 samples so the same as batch one but 15 and not twenty.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the below screenshot is what i want. where count 1 = the first sample in both batches, therefore ill be able to do a line graph chart like below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BSCIknowlec_1-1613638807210.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/49348iA94DA72C5098A95B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BSCIknowlec_1-1613638807210.png" alt="BSCIknowlec_1-1613638807210.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 09:00:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783734#M1209790</guid>
      <dc:creator>BSCIknowlec</dc:creator>
      <dc:date>2021-02-18T09:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using autonumber to have repeating values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783735#M1209791</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/111112"&gt;@haskia&lt;/a&gt;&amp;nbsp;thanks for your reply,&lt;/P&gt;&lt;P&gt;i tried that but all that does is give me a total count of my rows, what i need is only a count of the rows within a batch and not to have them unique,. that means that row #1 would equal the first sample in all my batches and not just one batch.&lt;/P&gt;&lt;P&gt;i explained it to&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/894"&gt;@Saravanan_Desingh&lt;/a&gt;&amp;nbsp; above, hopefully it makes sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if you have any ideas it would be much appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 09:02:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/1783735#M1209791</guid>
      <dc:creator>BSCIknowlec</dc:creator>
      <dc:date>2021-02-18T09:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using autonumber to have repeating values</title>
      <link>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/2130367#M1224744</link>
      <description>&lt;P&gt;You may try to use syntax MOD. Below is what I have done to relpeate a rolling autonumber for a period of Date.&amp;nbsp;working_date is the date from a master calander,&amp;nbsp;RWP_START_DT is when the cycle start date,&amp;nbsp;RWP_CYCL_LEN is the length of the cycle for example 7 days, 30 days per cycle. The result&amp;nbsp;day_number_MOD create a number order from 1 to the end of cycle 7 or 30 depends on the cycle days. You don't need to use interval you may use something else&amp;nbsp;&amp;nbsp;NUM(working_date) - NUM(RWP_START_DT).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;MOD( Interval(working_date - RWP_START_DT, 'D'), RWP_CYCL_LEN) AS day_number_MOD.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-App-Dev/A-method-to-repeate-the-Autonumber-or-RowNo-for-a-rolling-period/m-p/2130356#M1224742" target="_blank"&gt;https://community.qlik.com/t5/QlikView-App-Dev/A-method-to-repeate-the-Autonumber-or-RowNo-for-a-rolling-period/m-p/2130356#M1224742&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;Mod()&lt;/SPAN&gt;&amp;nbsp;is a modulo function that returns the non-negative remainder of an integer division. The first argument is the dividend, the second argument is the divisor, Both arguments must be integer values.&lt;/EM&gt;&lt;/P&gt;
&lt;P class="syntax_heading" data-mc-autonum="Syntax: "&gt;&lt;EM&gt;&lt;SPAN class="autonumber"&gt;Syntax:&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="syntax" data-mc-conditions="Targets.NotToTranslate"&gt;&lt;EM&gt;&lt;SPAN class="script_token"&gt;Mod(&lt;/SPAN&gt;&lt;SPAN class="bnf_token"&gt;integer_number1, integer_number2&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;)&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P class="return_type" data-mc-autonum="Return data type: "&gt;&lt;EM&gt;&lt;SPAN class="autonumber"&gt;Return data type:&amp;nbsp;&lt;/SPAN&gt;integer&lt;/EM&gt;&lt;/P&gt;
&lt;P class="limitations" data-mc-autonum="Limitations: "&gt;&lt;EM&gt;&lt;SPAN class="autonumber"&gt;Limitations:&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="statement" data-mc-conditions="Targets.NotToTranslate"&gt;integer_number2&lt;/SPAN&gt;&amp;nbsp;must be greater than 0.&lt;/EM&gt;&lt;/P&gt;
&lt;P class="examples_results" data-mc-autonum="Examples and results: "&gt;&lt;EM&gt;&lt;SPAN class="autonumber"&gt;Examples and results:&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="API_syntax_input" data-mc-conditions="Targets.NotToTranslate"&gt;Mod( 7,2 )&lt;/SPAN&gt;: returns 1&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="API_syntax_input" data-mc-conditions="Targets.NotToTranslate"&gt;Mod( 7.5,2 )&lt;/SPAN&gt;: returns&amp;nbsp;NULL&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="API_syntax_input" data-mc-conditions="Targets.NotToTranslate"&gt;Mod( 9,3 )&lt;/SPAN&gt;: returns 0&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="API_syntax_input" data-mc-conditions="Targets.NotToTranslate"&gt;Mod( -4,3 )&lt;/SPAN&gt;: returns 2&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="API_syntax_input" data-mc-conditions="Targets.NotToTranslate"&gt;Mod( 4,-3 )&lt;/SPAN&gt;: returns&amp;nbsp;NULL&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN class="API_syntax_input" data-mc-conditions="Targets.NotToTranslate"&gt;Mod( -4,-3 )&lt;/SPAN&gt;: returns&amp;nbsp;NULL&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 15:45:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-autonumber-to-have-repeating-values/m-p/2130367#M1224744</guid>
      <dc:creator>Mr_H_Huang</dc:creator>
      <dc:date>2023-10-20T15:45:48Z</dc:date>
    </item>
  </channel>
</rss>

