<?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: Calculate Nth distinct value of dimension in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-Nth-distinct-value-of-dimension-in-straight-table/m-p/55962#M9288</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't matter, I've solved it myself!&lt;/P&gt;&lt;P&gt;If anyone is interested, instead of Area as a dimension, I used:&lt;/P&gt;&lt;P&gt;=if(Aggr(RowNo(TOTAL),Area)=n,Area)&lt;/P&gt;&lt;P&gt;where 'n' is an integer representing the nth instance of the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2018 14:04:50 GMT</pubDate>
    <dc:creator>Ben_P</dc:creator>
    <dc:date>2018-06-20T14:04:50Z</dc:date>
    <item>
      <title>Calculate Nth distinct value of dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Nth-distinct-value-of-dimension-in-straight-table/m-p/55961#M9287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a bit of a strange request, but I'm hoping someone can help.&lt;/P&gt;&lt;P&gt;I have a table as below left, with a dimension limit showing the largest 3 Sum(Sales) values on the Sub-Area field. This gives me 3 entries per Area.&lt;/P&gt;&lt;P&gt;What I would like to do is to split this into separate tables for each value of Area (the three tables on the right). The values in the Area field may change, so I don't want to hard-code them. Essentially what I want is to be able to replicate the table on the left, but only where e.g. the value of the Area field is the second distinct value (in this case 'B') of Area. For simplicity we can assume that there will always be 3 distinct values of Area.&lt;/P&gt;&lt;P&gt;I'm assuming I can do something with aggr() and rank(, but I've had no success so far. Any assistance would be much appreciated!&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/205747_Capture.PNG" style="height: 148px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:41:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Nth-distinct-value-of-dimension-in-straight-table/m-p/55961#M9287</guid>
      <dc:creator>Ben_P</dc:creator>
      <dc:date>2018-06-20T13:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate Nth distinct value of dimension in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-Nth-distinct-value-of-dimension-in-straight-table/m-p/55962#M9288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't matter, I've solved it myself!&lt;/P&gt;&lt;P&gt;If anyone is interested, instead of Area as a dimension, I used:&lt;/P&gt;&lt;P&gt;=if(Aggr(RowNo(TOTAL),Area)=n,Area)&lt;/P&gt;&lt;P&gt;where 'n' is an integer representing the nth instance of the dimension.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 14:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-Nth-distinct-value-of-dimension-in-straight-table/m-p/55962#M9288</guid>
      <dc:creator>Ben_P</dc:creator>
      <dc:date>2018-06-20T14:04:50Z</dc:date>
    </item>
  </channel>
</rss>

