<?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: Loop through field and assign a number in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109230#M7490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The field "Action Begda" actually represents the date of the movement (dd.mm.yyyy). The only issue is that the sort order is based only on the day part. What I need is a sort order that is based on the full date range dd.mm.yyyy."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;It sounds like you are not properly parsing the date when you read it.&amp;nbsp; If you did, "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Order by "Action Begda"" would sort by the full date. See &lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2018 15:48:39 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-09-26T15:48:39Z</dc:date>
    <item>
      <title>Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109223#M7483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this piece of code in the data load:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15378940506714740" jivemacro_uid="_15378940506714740" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Movements:&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;LOAD&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PERNR,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Lname,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Fname,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mname,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "EE Group",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "EE Subgroup",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Action Begda",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Action type",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Action Reason",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F10,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Band Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position Name Before RU .",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position Name Before EN",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Legacy Position ID Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Legacy Dept ID Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Legacy Cat Code Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Cost Center Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Function Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Band After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position Name After RU",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position Name After EN",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Legacy Position ID After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Legacy Dept ID After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Legacy Cat Code After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Cost Center After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Function After"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;FROM [***]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(ooxml, embedded labels, table is Sheet1);&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;&lt;BR /&gt;&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; &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; &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;FOR Each a in FieldValueList('PERNR')&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;Movement#:&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;let GlobalID = a;&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;LOAD '$(GlobalID)'&amp;nbsp; as "PERNR" AutoGenerate 1;&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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &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; &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;NEXT a&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This script will loop perfectly through all the PERNR and assign it as a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would like to generate a new collumn that will assign a random number or sequential number to each PERNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. the list of PERNR =&lt;/P&gt;&lt;P&gt;100&lt;/P&gt;&lt;P&gt;200&lt;/P&gt;&lt;P&gt;300&lt;/P&gt;&lt;P&gt;400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want a new Column&lt;/P&gt;&lt;P&gt;100=1&lt;/P&gt;&lt;P&gt;200=2&lt;/P&gt;&lt;P&gt;300=3&lt;/P&gt;&lt;P&gt;400=4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is example data and will have to go through a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 16:50:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109223#M7483</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-09-25T16:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109224#M7484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your loop is working correctly. Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let i=1;&lt;/P&gt;&lt;P&gt;FOR Each a in FieldValueList('PERNR')&amp;nbsp; &lt;/P&gt;&lt;P&gt;Movement#:&amp;nbsp; &lt;/P&gt;&lt;P&gt;let GlobalID = a; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD '$(GlobalID)'&amp;nbsp; as "PERNR",&lt;/P&gt;&lt;P&gt;'$(i)' as Seq_Number&lt;/P&gt;&lt;P&gt; AutoGenerate 1;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let i=i+1;&lt;/P&gt;&lt;P&gt;NEXT a&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 9pt; font-style: inherit; font-weight: inherit;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 16:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109224#M7484</guid>
      <dc:creator>vamsee</dc:creator>
      <dc:date>2018-09-25T16:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109225#M7485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am currently unable to test the code, but it looks like what I need. I'll give it a try as soon as possible&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However this is just the basis of my solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see in the load script I have a field called action type and date of movement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every PERNR has multiple entries in the excel file, all having a different action type based on a different date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to have the loop go through all the PERNR and assign a sequential number based on the date of the movement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the first movement will be 1, the later date will be 2 etc... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any chance you could advise on this situation? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 17:13:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109225#M7485</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-09-25T17:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109226#M7486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would generate the sequence numbers using autonumber() rather than a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sequence:&lt;/P&gt;&lt;P&gt;LOAD *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber("Action Begda", PERNR) as MovementSequence&lt;/P&gt;&lt;P&gt;RESIDENT Movements&lt;/P&gt;&lt;P&gt;Order by "Action Begda",&lt;/P&gt;&lt;P&gt;;&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;P&gt;&lt;A class="jive-link-external-small" href="http://www.easyqlik.com" rel="nofollow" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 17:30:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109226#M7486</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-25T17:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109227#M7487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That just helped me almost to the finish!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you could help advise on how to get to the absolute finish of this situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now the sort order is being based only on the day of the movement, however the movements are based through multiple months and years. Can I somehow create a sort order based on the full date range? (dd.mm.yyyy)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second issue is that I have a filter for this file, which filters out certain action types, currently the movement numbers are based on all the movements, but I need to have it based on the specific filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The action types consists of 12 different values,&lt;/P&gt;&lt;P&gt;4 of them are grouped under "Baseline"&lt;/P&gt;&lt;P&gt;the others are grouped under "Out of baseline"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you inform me how I can base the numbering only on the baseline filter?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I look forward to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2018 23:21:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109227#M7487</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-09-25T23:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109228#M7488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"Can I somehow create a sort order based on the full date range? (dd.mm.yyyy)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I assume you have a field that represents this dd.mm.yyyy value?&amp;nbsp; If so, use that field in the AutoNumber() instead of "Action Begda".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;"Can you inform me how I can base the numbering only on the baseline filter?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Include the fiter as a where clause in the LOAD that does the autonumbering, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 14:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109228#M7488</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-26T14:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109229#M7489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank very much you for getting back to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field "Action Begda" actually represents the date of the movement (dd.mm.yyyy). The only issue is that the sort order is based only on the day part. What I need is a sort order that is based on the full date range dd.mm.yyyy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards to the baseline numbering. This is the code:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15379753834971849" jivemacro_uid="_15379753834971849" modifiedtitle="true"&gt;
&lt;P&gt; Load *, &lt;/P&gt;
&lt;P&gt; If("Movement Type" ='Lateral Move' , ('Baseline'),&lt;/P&gt;
&lt;P&gt; If("Movement Type" ='Promotion Band Up' , ('Baseline'),&lt;/P&gt;
&lt;P&gt; If("Movement Type" ='Promotion Within Band' , ('Baseline'),&lt;/P&gt;
&lt;P&gt; If("Movement Type" ='Termination Involuntary' , ('Baseline'),&lt;/P&gt;
&lt;P&gt; If("Movement Type" ='Termination Voluntary' , ('Baseline'), ('All Population') )))))&amp;nbsp; as "Adherence Filter";&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would you be able (and ofcourse willing to) prepare the code for me that does this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the filter for baseline&lt;/P&gt;&lt;P&gt;Create a filter per year (01.07.yyyy-30.06.yyyy) (I have data starting July 2015 till now) "I call this a cycle"&lt;/P&gt;&lt;P&gt;Then assign a movement number based on the date of movement only for people that are in "Baseline"&lt;/P&gt;&lt;P&gt;And create the numbering for every cycle. So every new cycle the count starts over again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be very grateful if you could find the time to do this for me, as this issue has been bothering me for weeks now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:36:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109229#M7489</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-09-26T15:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109230#M7490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The field "Action Begda" actually represents the date of the movement (dd.mm.yyyy). The only issue is that the sort order is based only on the day part. What I need is a sort order that is based on the full date range dd.mm.yyyy."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;It sounds like you are not properly parsing the date when you read it.&amp;nbsp; If you did, "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Order by "Action Begda"" would sort by the full date. See &lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 15:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109230#M7490</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-26T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109231#M7491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to thank you very much Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the help of that link I was able to properly format the date, and it works now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am only stuck with the issue on the baseline filter and creating the sequence per cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you advice on this aswell?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Sep 2018 16:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109231#M7491</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-09-27T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109232#M7492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First create a new field that assigns a cycle based on your July - June fiscal year. Perhaps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YearName(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"Action Begda"&lt;/SPAN&gt;, 0, 7) as Cycle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use the Cycle as extra ID in your Autonumber. Along with a where clause for your filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sequence:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber("Action Begda", PERNR &lt;STRONG&gt;&amp;amp; Cycle&lt;/STRONG&gt;) as MovementSequence&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT Movements&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;Where [Adherence Filter] = 'Baseline'&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Order by "Action Begda",&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Sep 2018 16:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109232#M7492</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-28T16:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109233#M7493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much. This works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a last question, I was wondering if you would be able to tell me if it is possible to add the people without a movement to this cycle?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So right now when I select a cycle, I will only see people that have a movement sequence. However I also have people without a movement("Action Begda"). I would like to see these people too when I select the cycle.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aswell that I have people with a move in the future e.g. 31/12/2018. When i select the cycle for 2018/2019, these people show up to. i would only like to show until the current date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 16:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109233#M7493</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-10-01T16:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109234#M7494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since "Action Bega" defines a cycle, I'm not sure how you would associate people to a cycle that don't have an "Action Bega".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2018 17:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109234#M7494</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-10-01T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109235#M7495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I applied the "Where" Adherence filter. I noticed that my entire population gets filtered based on this Adherence filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I only need the autonumber sequence based on this filter and not the full database. Is there a way to do this?&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_15391568396205796" jivemacro_uid="_15391568396205796" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; //&amp;nbsp; &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;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Personal ID Movement OPR",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Personal ID Movement",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Name Movement",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Employee Group Movement",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Effective Date",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Action type",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Action Reason",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Band Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position ID Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Function Before",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Band After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position ID After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Position After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Function After",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "OPR 2018 Move",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "OPR 2015 Move",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "OPR 2016 Move",&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "OPR 2017 Move"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Movement;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table Movement;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Sequence:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber("Effective Date", "Personal ID Movement OPR" &amp;amp; Cycle) as "Movement Number"&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; RESIDENT Movement_OPR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; where "Adherence Filter" = 'Adherence'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; Order by "Effective Date";&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Drop Table Movement_OPR&lt;/SPAN&gt;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 07:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109235#M7495</guid>
      <dc:creator>robin_heijt</dc:creator>
      <dc:date>2018-10-10T07:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Loop through field and assign a number</title>
      <link>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109236#M7496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of recreating the table, join the autonumber field to the original table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join (&lt;SPAN style="font-size: 13.3333px;"&gt;Movement_OPR&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;LOAD *,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutoNumber("Effective Date", "Personal ID Movement OPR" &amp;amp; Cycle) as "Movement Number"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; RESIDENT Movement_OPR&amp;nbsp; &lt;/P&gt;&lt;P&gt; where "Adherence Filter" = 'Adherence'&amp;nbsp; &lt;/P&gt;&lt;P&gt; Order by "Effective Date";&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 17:26:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Loop-through-field-and-assign-a-number/m-p/109236#M7496</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-10-10T17:26:46Z</dc:date>
    </item>
  </channel>
</rss>

