<?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: similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664091#M1062073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load Command,Quantity,AutoNumber(RecNo(),Command) Inline [&lt;/P&gt;&lt;P&gt;Command,Quantity&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;A,2&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;B,4&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;B,6 ]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Sep 2014 14:04:09 GMT</pubDate>
    <dc:creator>anbu1984</dc:creator>
    <dc:date>2014-09-22T14:04:09Z</dc:date>
    <item>
      <title>similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664089#M1062071</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 would like to know if QlikView has any function which is similar to the SQL Function ROW_NUMBER() OVER Clause?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise I would ask "How can I calculate the number of occurrences of a value in a field like below?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this below table, I want to calculate the Count column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 226px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="21" width="64"&gt;&lt;STRONG&gt;Count&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Command&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Quantity&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="98"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="98"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="98"&gt;A&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="98"&gt;B&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="98"&gt;B&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="98"&gt;B&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" style="border-top: none;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;" width="98"&gt;B&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none; font-style: inherit;" width="64"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Andrew Hudson.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:53:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664089#M1062071</guid>
      <dc:creator>adhudson</dc:creator>
      <dc:date>2014-09-22T13:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664090#M1062072</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;Check this&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2014/08/29/recno-or-rowno"&gt;http://community.qlik.com/blogs/qlikviewdesignblog/2014/08/29/recno-or-rowno&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 13:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664090#M1062072</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-09-22T13:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664091#M1062073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Load Command,Quantity,AutoNumber(RecNo(),Command) Inline [&lt;/P&gt;&lt;P&gt;Command,Quantity&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;A,2&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;B,4&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;B,6 ]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664091#M1062073</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-22T14:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Re: similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664092#M1062074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load Command,&lt;/P&gt;&lt;P style="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; Quantity,&lt;/P&gt;&lt;P style="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; AutoNumber(RecNo(),Command) &lt;STRONG style="color: #ff0000;"&gt;as Count&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Inline [&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Command,Quantity&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A,3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A,2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;A,3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;B,4&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;B,3&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;B,2&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;B,6 ];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:06:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664092#M1062074</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-09-22T14:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664093#M1062075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Command is not sorted, then try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Command,Quantity&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;A,2&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;B,4&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;B,6];&lt;/P&gt;&lt;P&gt;&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 Command,Quantity,AutoNumber(RecNo(),Command) Resident Initial Order by Command;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Initial;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664093#M1062075</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-22T14:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664094#M1062076</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;"&gt;AutoNumber(RecNo(),Command)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;//the inline statement with variables&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;"&gt;group by Command&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664094#M1062076</guid>
      <dc:creator />
      <dc:date>2014-09-22T14:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664095#M1062077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Peek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial:&lt;/P&gt;&lt;P&gt;Load * Inline [&lt;/P&gt;&lt;P&gt;Command,Quantity&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;A,2&lt;/P&gt;&lt;P&gt;A,3&lt;/P&gt;&lt;P&gt;B,4&lt;/P&gt;&lt;P&gt;B,3&lt;/P&gt;&lt;P&gt;B,2&lt;/P&gt;&lt;P&gt;B,6];&lt;/P&gt;&lt;P&gt;&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 Command,Quantity,If(Command &amp;lt;&amp;gt; Peek(Command),1,Peek(Count)+1) as Count Resident Initial Order by Command;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Initial;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Sep 2014 14:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664095#M1062077</guid>
      <dc:creator>anbu1984</dc:creator>
      <dc:date>2014-09-22T14:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: similar to the SQL Function ROW_NUMBER() OVER Clause in QlikView?</title>
      <link>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664096#M1062078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Anbu.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works for me.. &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, 22 Sep 2014 14:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/similar-to-the-SQL-Function-ROW-NUMBER-OVER-Clause-in-QlikView/m-p/664096#M1062078</guid>
      <dc:creator>adhudson</dc:creator>
      <dc:date>2014-09-22T14:24:07Z</dc:date>
    </item>
  </channel>
</rss>

