<?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: Query on auto increment concept in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962906#M330332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use Autonumber() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;AutoNumber(recno(), Student_No) as Year_of_Study&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INLINE [&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Academic_Year,&amp;nbsp; Student_No&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 001&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013/2014, 001&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014/2015, 001&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015/2016, 001&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010/2011, 002&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011/2012, 002&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 002&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013/2014, 002&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2009/2010, 003&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010/2011, 003&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011/2012, 004&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 004&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input table records need to be sorted chronological per student.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Nov 2015 11:40:27 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-11-23T11:40:27Z</dc:date>
    <item>
      <title>Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962897#M330323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/4003"&gt;hic&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/96544"&gt;gwassenaar&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/26418"&gt;tresesco&lt;/A&gt;‌, &lt;A href="https://community.qlik.com/qlik-users/133561"&gt;settu_periasamy&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data as shown below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Academic_Year, Student_No&lt;/P&gt;&lt;P&gt;2012/2013, 001&lt;/P&gt;&lt;P&gt;2013/2014, 001&lt;/P&gt;&lt;P&gt;2014/2015, 001&lt;/P&gt;&lt;P&gt;2015/2016, 001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2010/2011, 002&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2011/2012, 002&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2012/2013, 002&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2013/2014, 002&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2009/2010, 003&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2010/2011, 003&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2011/2012, 004&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2012/2013, 004&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Now I have a requirement to create the &lt;STRONG&gt;Year of Study&lt;/STRONG&gt; field for the students.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;For example,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Academic_Year, Student_No, &lt;STRONG&gt;Year of Study&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2012/2013, 001, 1&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2013/2014, 001, 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2014/2015, 001&lt;SPAN style="font-size: 13.3333px;"&gt;, 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2015/2016, 001&lt;SPAN style="font-size: 13.3333px;"&gt;, 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2010/2011, 002&lt;SPAN style="font-size: 13.3333px;"&gt;, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2011/2012, 002&lt;SPAN style="font-size: 13.3333px;"&gt;, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2012/2013, 002&lt;SPAN style="font-size: 13.3333px;"&gt;, 3&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2013/2014, 002&lt;SPAN style="font-size: 13.3333px;"&gt;, 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2009/2010, 003&lt;SPAN style="font-size: 13.3333px;"&gt;, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2010/2011, 003&lt;SPAN style="font-size: 13.3333px;"&gt;, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2011/2012, 004&lt;SPAN style="font-size: 13.3333px;"&gt;, 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2012/2013, 004&lt;SPAN style="font-size: 13.3333px;"&gt;, 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Could anyone please advise me how to derive the field Year of Study?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Karthikeyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 09:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962897#M330323</guid>
      <dc:creator>karthikeyan1504</dc:creator>
      <dc:date>2015-11-23T09:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962898#M330324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may create a master table for academic year like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Academic_Year AY_Key&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2009/2010, 001&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2010/2011, 002&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2011/2012, 003&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012/2013, 004&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2100/2101, 109&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then include this key (SAY_Key) in the Student table as well.&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then Have another Table for Student's Starting Year as below&lt;/P&gt;&lt;P style="font-size: 13.3333px; 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;Academic_Year, Student_No, Key_For_Student_Start_Year&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012/2013, 001,004&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2010/2011, 002,002&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2009/2010, 003,001&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012/2013, 004,004&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then Comparing these two will give us the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year_of_study=(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;SAY_Key&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Key_For_Student_Start_Year&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)+1;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962898#M330324</guid>
      <dc:creator>arasantorule</dc:creator>
      <dc:date>2015-11-23T10:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962899#M330325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which formula/Metrics/Logic you use to calculate &lt;STRONG&gt;Year of study&lt;/STRONG&gt;??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962899#M330325</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T10:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962900#M330326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have no idea... Thats why posted here &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:42:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962900#M330326</guid>
      <dc:creator>karthikeyan1504</dc:creator>
      <dc:date>2015-11-23T10:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962901#M330327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Hope it help&lt;/P&gt;&lt;P&gt;tmp:&lt;/P&gt;&lt;P&gt;load * Inline &lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Academic_Year, Student_No&lt;/P&gt;&lt;P&gt;2012/2013, 001&lt;/P&gt;&lt;P&gt;2013/2014, 001&lt;/P&gt;&lt;P&gt;2014/2015, 001&lt;/P&gt;&lt;P&gt;2015/2016, 001&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2010/2011, 002&lt;/P&gt;&lt;P&gt;2011/2012, 002&lt;/P&gt;&lt;P&gt;2012/2013, 002&lt;/P&gt;&lt;P&gt;2013/2014, 002&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2009/2010, 003&lt;/P&gt;&lt;P&gt;2010/2011, 003&lt;/P&gt;&lt;P&gt;2011/2012, 004&lt;/P&gt;&lt;P&gt;2012/2013, 004&lt;/P&gt;&lt;P&gt;]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;left join (tmp)&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;min(left(Academic_Year,4)) as MAX_YEAR, Student_No&lt;/P&gt;&lt;P&gt;Resident T&lt;/P&gt;&lt;P&gt;Group by Student_No;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;NoConcatenate&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;Academic_Year, Student_No, right(Academic_Year,4)-MAX_YEAR as [Year of Study] Resident tmp;&lt;/P&gt;&lt;P&gt;drop Table tmp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962901#M330327</guid>
      <dc:creator>t_chetirbok</dc:creator>
      <dc:date>2015-11-23T10:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962902#M330328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good, its mean you have to create a new filed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more things, sample data you posted is unique or repeating like are you having multiple enteries like:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Academic_Year, Student_No&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012/2013, 001&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013/2014, 001&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2012/2013, 001&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2013/2014, 001&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2014/2015, 001&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2015/2016, 001&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962902#M330328</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T10:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962903#M330329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. It will not repeat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 10:50:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962903#M330329</guid>
      <dc:creator>karthikeyan1504</dc:creator>
      <dc:date>2015-11-23T10:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962904#M330330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14482766256776647" jivemacro_uid="_14482766256776647"&gt;
&lt;P&gt;T1:&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Academic_Year,&amp;nbsp; Student_No&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 001&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013/2014, 001&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014/2015, 001&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015/2016, 001&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010/2011, 002&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011/2012, 002&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 002&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013/2014, 002&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2009/2010, 003&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010/2011, 003&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011/2012, 004&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 004&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;LOAD *, if(Student_No=Previous(Student_No),Peek(Year1)+1,1) as Year1 Resident T1 Order by Student_No;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;DROP Table T1;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 11:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962904#M330330</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-11-23T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962905#M330331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, then in this case, you need to use looping with Peek()/Previous() combination&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a mannual excel for same&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 11:06:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962905#M330331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-23T11:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962906#M330332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use Autonumber() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T1:&amp;nbsp; &lt;/P&gt;&lt;P&gt;LOAD *,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;AutoNumber(recno(), Student_No) as Year_of_Study&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;INLINE [&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Academic_Year,&amp;nbsp; Student_No&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 001&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013/2014, 001&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2014/2015, 001&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2015/2016, 001&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010/2011, 002&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011/2012, 002&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 002&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2013/2014, 002&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2009/2010, 003&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2010/2011, 003&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2011/2012, 004&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2012/2013, 004&amp;nbsp; &lt;/P&gt;&lt;P&gt;];&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input table records need to be sorted chronological per student.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 11:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962906#M330332</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-23T11:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962907#M330333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-9531"&gt;Incremental Load in Qlikview - Sources&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 13:45:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962907#M330333</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-11-23T13:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962908#M330334</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;swuehl approach is certainly the easiest approach and the way I would tackle this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Nov 2015 15:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962908#M330334</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-23T15:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962909#M330335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swehl,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your solution also is correct. As I have got few discrepancies with my real data, the solution is not working properly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few student numbers are repeated for the same year. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 03:35:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962909#M330335</guid>
      <dc:creator>karthikeyan1504</dc:creator>
      <dc:date>2015-11-24T03:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Query on auto increment concept</title>
      <link>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962910#M330336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use &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;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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;AutoNumber(Academic_Year, Student_No) as Year_of_Study&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;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;to handle multiple lines for a student in the same year. Still, the Academic_Year needs to be chronological / sorted per student.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Nov 2015 07:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Query-on-auto-increment-concept/m-p/962910#M330336</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-11-24T07:12:14Z</dc:date>
    </item>
  </channel>
</rss>

