<?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: RowNo() Help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610551#M225378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create an additonal field in the data model in order to rank your categories:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name, Category, Rank&lt;/P&gt;&lt;P&gt;James, Top, 1&lt;/P&gt;&lt;P&gt;Ben, Top, 1&lt;/P&gt;&lt;P&gt;Harry, Med, 2&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other aproximation could be declaring Category field as dual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Feb 2014 11:09:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-05T11:09:56Z</dc:date>
    <item>
      <title>RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610550#M225377</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;As an example, here is a base table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name, Category&lt;/P&gt;&lt;P&gt;James, Top&lt;/P&gt;&lt;P&gt;Ben, Top&lt;/P&gt;&lt;P&gt;Harry, Med&lt;/P&gt;&lt;P&gt;Sophie, Med&lt;/P&gt;&lt;P&gt;Sally, Low&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I create a straight table, which looks like the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name, Category, expr1&lt;/P&gt;&lt;P&gt;James, Top, 1&lt;/P&gt;&lt;P&gt;Ben, Top, 1&lt;/P&gt;&lt;P&gt;Harry, Med, 2&lt;/P&gt;&lt;P&gt;Sophie, Med, 2&lt;/P&gt;&lt;P&gt;Sally, Low, 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To summarise, I need to build an expression which "autonumbers" on the dimension "Category"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610550#M225377</guid>
      <dc:creator />
      <dc:date>2014-02-05T11:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610551#M225378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create an additonal field in the data model in order to rank your categories:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Name, Category, Rank&lt;/P&gt;&lt;P&gt;James, Top, 1&lt;/P&gt;&lt;P&gt;Ben, Top, 1&lt;/P&gt;&lt;P&gt;Harry, Med, 2&lt;/P&gt;&lt;P&gt;etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other aproximation could be declaring Category field as dual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:09:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610551#M225378</guid>
      <dc:creator />
      <dc:date>2014-02-05T11:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610552#M225379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately- I can't make any changes to the data model. This must all be done inside an expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610552#M225379</guid>
      <dc:creator />
      <dc:date>2014-02-05T11:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610553#M225380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wallerjc,&lt;/P&gt;&lt;P&gt;Here you have a sample solution only in front end.. Still, solving this issue in Script will be recomended..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:17:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610553#M225380</guid>
      <dc:creator />
      <dc:date>2014-02-05T11:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610554#M225381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use either mixmatch() or wildmatch() functions&lt;/P&gt;&lt;P&gt;sth like : mixmatch(Category, 'Top', 'Mid', 'Low')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabrice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:20:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610554#M225381</guid>
      <dc:creator />
      <dc:date>2014-02-05T11:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610555#M225382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;in script write this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pick(match(Category,'Top','Med','Low'),'1','2','3')&amp;nbsp; as newfield&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:26:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610555#M225382</guid>
      <dc:creator />
      <dc:date>2014-02-05T11:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610556#M225383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;pick(match(Category,'Top','Med','Low'),'1','2','3')&amp;nbsp; as newfield&lt;/P&gt;&lt;P&gt; Inline [&lt;/P&gt;&lt;P&gt;Name, Category&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James, Top&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben, Top&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harry, Med&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sophie, Med&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sally, Low&lt;/P&gt;&lt;P&gt;] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then output like this&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="294"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Name&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Category&lt;/TD&gt;&lt;TD class="xl65" width="98"&gt;newfield&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;James&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Top&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Ben&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Top&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Harry&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Med&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Sophie&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Med&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Sally&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Low&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610556#M225383</guid>
      <dc:creator />
      <dc:date>2014-02-05T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610557#M225384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;also try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Previous(Category)=Category,peek(field),rangesum(1,peek(field))) as field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inline [&lt;/P&gt;&lt;P&gt;Name, Category&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James, Top&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ben, Top&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harry, Med&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sophie, Med&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sally, Low&lt;/P&gt;&lt;P&gt;] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then output like this&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="294"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Name&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Category&lt;/TD&gt;&lt;TD class="xl65" width="98"&gt;field&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;James&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Top&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Ben&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Top&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Harry&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Med&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Sophie&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Med&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" style="border-top: none;"&gt;Sally&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Low&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 11:50:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610557#M225384</guid>
      <dc:creator />
      <dc:date>2014-02-05T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610558#M225385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add Dimension Name Category in straight table and add expression&lt;/P&gt;&lt;P&gt;Aggr(NODISTINCT RowNo(),Category)&amp;nbsp; //label Autonumber&lt;/P&gt;&lt;P&gt;hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:03:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610558#M225385</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2014-02-05T12:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610559#M225386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This solution works but isn't scalable at all, my actual data set has around 2,000 "Category's" do you have any further ideas? Perhaps this isn't possible... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:04:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610559#M225386</guid>
      <dc:creator />
      <dc:date>2014-02-05T12:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610560#M225387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This solution works but isn't scalable at all, my actual data set has around 2,000 "Category's" do you have any further ideas? Perhaps this isn't possible... ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:04:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610560#M225387</guid>
      <dc:creator />
      <dc:date>2014-02-05T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610561#M225388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to do this outside of the load script, although i thank you for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610561#M225388</guid>
      <dc:creator />
      <dc:date>2014-02-05T12:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610562#M225389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ding ding ding, we have a winner!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't believe I didn't think to simply Aggr() the table, many thanks for your time and solution here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:05:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610562#M225389</guid>
      <dc:creator />
      <dc:date>2014-02-05T12:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: RowNo() Help</title>
      <link>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610563#M225390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A href="https://community.qlik.com/people/wallerjc"&gt;wallerjc&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;my last post fullfill your requirment. because this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Previous(Category)=Category,peek(field),rangesum(1,peek(field))) as field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;work on any number of records.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and expression posted by &lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="6250" data-externalid="" data-presence="null" data-userid="99292" data-username="ER.Mohit" href="https://community.qlik.com/people/ER.Mohit"&gt;Mohit Sahrma is &lt;BR /&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;also well.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-post-author"&gt;Regards&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="j-post-author"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 12:19:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/RowNo-Help/m-p/610563#M225390</guid>
      <dc:creator />
      <dc:date>2014-02-05T12:19:56Z</dc:date>
    </item>
  </channel>
</rss>

