<?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 peek or for loop in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995634#M338865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@check the file &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 10:47:17 GMT</pubDate>
    <dc:creator>sunilkumarqv</dc:creator>
    <dc:date>2015-09-08T10:47:17Z</dc:date>
    <item>
      <title>Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995626#M338857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with 2 ID columns ID1 and ID2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98268_pastedImage_0.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see there can be 2 ID2 for same ID1.&lt;/P&gt;&lt;P&gt;Column ProjectID has a numbering based on the unique ID1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im having trouble having a sub numbering for ID2. I don't know if I have to use peek function or a for loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are 2 ID2 for ID1, I need a new column which indicates sub rank 1,2.&lt;/P&gt;&lt;P&gt;If there is 1 ID2 for ID1, I need to display 1 if there are 3 ID2 grouped under ID 1, I need to have a numbering 1,2,3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help on this would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995626#M338857</guid>
      <dc:creator />
      <dc:date>2015-09-08T10:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995627#M338858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;OBJECT classid="CLSID:A806E1D7-B077-415E-AF08-28AFE10DDF4A" height="304" width="496"&gt; &lt;PARAM name="DocName" value="D:\Users\hz9ybh\Desktop\test.qvw" /&gt;&lt;PARAM name="ObjectID" value="Document\TB01" /&gt;&lt;/OBJECT&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995627#M338858</guid>
      <dc:creator />
      <dc:date>2015-09-08T10:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995628#M338859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm able to add a total count of the sub id, but able to to a numbering...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:27:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995628#M338859</guid>
      <dc:creator />
      <dc:date>2015-09-08T10:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995629#M338860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or do I have to use a pick() function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:29:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995629#M338860</guid>
      <dc:creator />
      <dc:date>2015-09-08T10:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995630#M338861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Autonumber(Rowno(), &lt;STRONG&gt;ID1&lt;/STRONG&gt;) as Counter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Corrected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:34:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995630#M338861</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-08T10:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995631#M338862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah! i thought it nearly worked, but noit's not numbering correctly...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995631#M338862</guid>
      <dc:creator />
      <dc:date>2015-09-08T10:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995632#M338863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;autonumber(ID1,ID2) as NewID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from datasource;&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;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;autonumber(ID2,ID1) as NewID&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;from datasource;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:43:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995632#M338863</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-09-08T10:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995633#M338864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hero,&lt;/P&gt;&lt;P&gt;If you just need to create a new id for each ID2 grouped by ID1, you could try autonumber(ID2,'ID_Inc' &amp;amp; ID1) as ID2_PK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995633#M338864</guid>
      <dc:creator />
      <dc:date>2015-09-08T10:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995634#M338865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@check the file &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:47:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995634#M338865</guid>
      <dc:creator>sunilkumarqv</dc:creator>
      <dc:date>2015-09-08T10:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995635#M338866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are numbering the combinations (ID1 and ID2), try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Autonumber(ID2, &lt;STRONG&gt;ID1&lt;/STRONG&gt;) as Counter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 10:48:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995635#M338866</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-08T10:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995636#M338867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Autonumber(ID2, &lt;STRONG&gt;ID1&lt;/STRONG&gt;) as Counter did the trick!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Had never used earlier autonumber with 2 parameters! Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 12:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995636#M338867</guid>
      <dc:creator />
      <dc:date>2015-09-08T12:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using peek or for loop</title>
      <link>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995637#M338868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the example. It works perfectly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You guys are great!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 12:33:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-peek-or-for-loop/m-p/995637#M338868</guid>
      <dc:creator />
      <dc:date>2015-09-08T12:33:15Z</dc:date>
    </item>
  </channel>
</rss>

