<?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: How to generate a table that contains the nth occurrence of the value according its row number position? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-generate-a-table-that-contains-the-nth-occurrence-of-the/m-p/1278277#M401196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OMG!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked perfectly!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-------*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to thank you a lot Sunny T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It saved me!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 12:44:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-01-19T12:44:45Z</dc:date>
    <item>
      <title>How to generate a table that contains the nth occurrence of the value according its row number position?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-a-table-that-contains-the-nth-occurrence-of-the/m-p/1278275#M401194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that the Title of this discussion is a little bit big, but let me explain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose I have a simple list of itens loaded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mytable:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[ ITEMS&lt;/P&gt;&lt;P&gt;&amp;nbsp; soda&lt;/P&gt;&lt;P&gt;&amp;nbsp; chocolate&lt;/P&gt;&lt;P&gt;&amp;nbsp; chocolate&lt;/P&gt;&lt;P&gt;&amp;nbsp; soda&lt;/P&gt;&lt;P&gt;&amp;nbsp; chocolate&lt;/P&gt;&lt;P&gt;&amp;nbsp; banana&lt;/P&gt;&lt;P&gt;&amp;nbsp; chocolate&lt;/P&gt;&lt;P&gt;&amp;nbsp; chocolate&lt;/P&gt;&lt;P&gt;&amp;nbsp; soda&lt;/P&gt;&lt;P&gt;&amp;nbsp; banana&lt;/P&gt;&lt;P&gt;&amp;nbsp; soda&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;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then I want to obtain the number of the nth occurence of the specific item as long this item occurs again on the list. Below is the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(i'm using '-' to delimiter the column)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nth-ITEMS&lt;/P&gt;&lt;P&gt;1-soda&lt;/P&gt;&lt;P&gt;1-chocolate&lt;/P&gt;&lt;P&gt;2-chocolate&lt;/P&gt;&lt;P&gt;2-soda&lt;/P&gt;&lt;P&gt;3-chocolate&lt;/P&gt;&lt;P&gt;1-banana&lt;/P&gt;&lt;P&gt;4-chocolate&lt;/P&gt;&lt;P&gt;5-chocolate&lt;/P&gt;&lt;P&gt;3-soda&lt;/P&gt;&lt;P&gt;2-banana&lt;/P&gt;&lt;P&gt;4-soda&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;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first line I have 'soda', so its the first occurence of 'soda'&lt;/P&gt;&lt;P&gt;second line I have 'chocolate' and it is the first occurence of 'chocolate' on the list&lt;/P&gt;&lt;P&gt;third line I have 'chocolate' again, and it is the second occurence of 'chocolate'&lt;/P&gt;&lt;P&gt;...and so on&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;/P&gt;&lt;P&gt;This is very easy to do on Excel, using COUNTIF() function. Using Qlikview I can't get how realize it.&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;/P&gt;&lt;P&gt;Can you please help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 12:13:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-a-table-that-contains-the-nth-occurrence-of-the/m-p/1278275#M401194</guid>
      <dc:creator />
      <dc:date>2017-01-19T12:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a table that contains the nth occurrence of the value according its row number position?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-a-table-that-contains-the-nth-occurrence-of-the/m-p/1278276#M401195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this may be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mytable:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;AutoNumber(RowNo(), ITEMS) &amp;amp; '-' &amp;amp; ITEMS as [Nth-ITEMS];&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Load * inline&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[ ITEMS&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; soda&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; chocolate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; chocolate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; soda&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; chocolate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; banana&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; chocolate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; chocolate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; soda&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; banana&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; soda&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/150056_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 12:17:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-a-table-that-contains-the-nth-occurrence-of-the/m-p/1278276#M401195</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-19T12:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate a table that contains the nth occurrence of the value according its row number position?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-generate-a-table-that-contains-the-nth-occurrence-of-the/m-p/1278277#M401196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OMG!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked perfectly!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-------*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd like to thank you a lot Sunny T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It saved me!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 12:44:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-generate-a-table-that-contains-the-nth-occurrence-of-the/m-p/1278277#M401196</guid>
      <dc:creator />
      <dc:date>2017-01-19T12:44:45Z</dc:date>
    </item>
  </channel>
</rss>

