<?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: Add column with ascending numbers in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232665#M588703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, I figured this out.&amp;nbsp; I used the aggr and rank functions to do this. This ranks a customer by their current vs prior gap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code (simplified):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr( rank(total &lt;/P&gt;&lt;P&gt;aggr( Sum (YTDSales) - Sum (PrevYrSales),PayerName) ,0,1) ,PayerName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jul 2011 13:17:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-28T13:17:58Z</dc:date>
    <item>
      <title>Add column with ascending numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232661#M588699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a pivot table that shows totals in the order that I want to show them.&lt;/P&gt;&lt;P&gt;I'd like to add a column at the beginning that simply enumerates the rows that are already there (so 1,2,3,4,...) just to help people see the ranking of each row (similar to the row numbers on the left in Excel).&lt;/P&gt;&lt;P&gt;Is there an easy way just to add these numbers? I'd use the rank feature but my columns are already complicated dimensions using multiple ranking calculations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 16:25:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232661#M588699</guid>
      <dc:creator />
      <dc:date>2011-02-28T16:25:05Z</dc:date>
    </item>
    <item>
      <title>Add column with ascending numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232662#M588700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the rowno() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 16:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232662#M588700</guid>
      <dc:creator>boorgura</dc:creator>
      <dc:date>2011-02-28T16:30:03Z</dc:date>
    </item>
    <item>
      <title>Add column with ascending numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232663#M588701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The RowNo function might mess up your ranking functions in the expressions. If so, I would simply use a Count distinct of a unique value that defines each row, such as an ID:&lt;/P&gt;&lt;P&gt;Count(Distinct ID)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aline&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Feb 2011 18:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232663#M588701</guid>
      <dc:creator />
      <dc:date>2011-02-28T18:18:05Z</dc:date>
    </item>
    <item>
      <title>Add column with ascending numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232664#M588702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neither of those suggestions are working for me.&lt;/P&gt;&lt;P&gt;Rocky, in the help docs it only describes rowNo in the context of input files. Could you give an example of how this might work in a chart as a calculated dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2011 05:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232664#M588702</guid>
      <dc:creator />
      <dc:date>2011-03-01T05:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add column with ascending numbers</title>
      <link>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232665#M588703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FYI, I figured this out.&amp;nbsp; I used the aggr and rank functions to do this. This ranks a customer by their current vs prior gap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my code (simplified):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr( rank(total &lt;/P&gt;&lt;P&gt;aggr( Sum (YTDSales) - Sum (PrevYrSales),PayerName) ,0,1) ,PayerName)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 13:17:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-column-with-ascending-numbers/m-p/232665#M588703</guid>
      <dc:creator />
      <dc:date>2011-07-28T13:17:58Z</dc:date>
    </item>
  </channel>
</rss>

