<?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: Increment count using loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196530#M875810</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD DISTINCT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; EmpKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,autonumberhash128(DeptKey) as DepKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Year&amp;amp;'P'&amp;amp;subfield('01,02,03,04,05,06,07,08,09,10,11,12,13',',') as YearPeriod&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Emp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps silly when it's just 01 - 13, but useful if it was some other sort of distinct values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Oct 2016 23:35:08 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2016-10-27T23:35:08Z</dc:date>
    <item>
      <title>Increment count using loop</title>
      <link>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196527#M875807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys ,&lt;/P&gt;&lt;P&gt;i have very urgent requirement on looping concept .&lt;/P&gt;&lt;P&gt;Below is my scenario .&lt;/P&gt;&lt;P&gt;Everytime Year column should concatenate with P1 to P13 .&lt;/P&gt;&lt;P&gt;So instead of writing it 13 times can i have in loop .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;load distinct&lt;/P&gt;
&lt;P&gt;EmpKey ,&lt;/P&gt;
&lt;P&gt;AutonumberHash128(DeptKey) as DepKey,&lt;/P&gt;
&lt;P&gt;Year&amp;amp;'P01' As YearPeriod&lt;/P&gt;
&lt;P&gt;Resident Emp ;&lt;/P&gt;
&lt;P&gt;concatnate&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;load distinct&lt;/P&gt;
&lt;P&gt;EmpKey ,&lt;/P&gt;
&lt;P&gt;AutonumberHash128(DeptKey) as DepKey,&lt;/P&gt;
&lt;P&gt;Year&amp;amp;'P02' As YearPeriod&lt;/P&gt;
&lt;P&gt;Resident Emp ;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;concatnate&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;load distinct&lt;/P&gt;
&lt;P&gt;EmpKey ,&lt;/P&gt;
&lt;P&gt;AutonumberHash128(DeptKey) as DepKey,&lt;/P&gt;
&lt;P&gt;Year&amp;amp;'P03' As YearPeriod&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Resident Emp ;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196527#M875807</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Increment count using loop</title>
      <link>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196528#M875808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD 0 as Dummy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AutoGenerate 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For i = 1 to 13&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Concatenate (Table)&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;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOAD DISTINCT&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;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EmpKey,&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;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AutonumberHash128(DeptKey) as DepKey,&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;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year&amp;amp;'P'&amp;amp;Num($(i), '00') As YearPeriod&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;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident Emp ;&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;&lt;STRONG&gt;NEXT&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;&lt;STRONG&gt;DROP Field Dummy;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 17:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196528#M875808</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-27T17:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Increment count using loop</title>
      <link>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196529#M875809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD DISTINCT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; EmpKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,autonumberhash128(DeptKey) as DepKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Year&amp;amp;'P'&amp;amp;num(iterno(),'00') as YearPeriod&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Emp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHILE iterno()&amp;lt;=13&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 23:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196529#M875809</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-10-27T23:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Increment count using loop</title>
      <link>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196530#M875810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD DISTINCT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; EmpKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,autonumberhash128(DeptKey) as DepKey&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,Year&amp;amp;'P'&amp;amp;subfield('01,02,03,04,05,06,07,08,09,10,11,12,13',',') as YearPeriod&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT Emp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps silly when it's just 01 - 13, but useful if it was some other sort of distinct values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 23:35:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196530#M875810</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-10-27T23:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Increment count using loop</title>
      <link>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196531#M875811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John, I guess IterNo() is more optimal method than subfield function method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 00:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196531#M875811</guid>
      <dc:creator />
      <dc:date>2016-10-28T00:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Increment count using loop</title>
      <link>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196532#M875812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would guess so as well. The other method would be more if we were building values like 2016 Apple, 2016 Grape, and 2016 Banana. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 00:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196532#M875812</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-10-28T00:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Increment count using loop</title>
      <link>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196533#M875813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you John , its working &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 09:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Increment-count-using-loop/m-p/1196533#M875813</guid>
      <dc:creator />
      <dc:date>2016-10-31T09:43:38Z</dc:date>
    </item>
  </channel>
</rss>

