<?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: Count with Firstsortedvalue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-with-Firstsortedvalue/m-p/930216#M977050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean with 'second seller based on the sale date'?&lt;/P&gt;&lt;P&gt;Could you post some sample data records, best by posting a small sample QVW and your expected result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 17:54:01 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-08-28T17:54:01Z</dc:date>
    <item>
      <title>Count with Firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-Firstsortedvalue/m-p/930215#M977048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone take a look at the below, %_VNO is the vendor account number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to count UNIT.REGNO if the %_VNO is the second seller based on the sale date (UNIT.SOLD_DATE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;%_VNO={"$(=firstsortedvalue(%_VNO,UNIT.SOLD_DATE ,2))"}&amp;gt;} UNIT.REGNO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 14:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-Firstsortedvalue/m-p/930215#M977048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-28T14:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Count with Firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-Firstsortedvalue/m-p/930216#M977050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean with 'second seller based on the sale date'?&lt;/P&gt;&lt;P&gt;Could you post some sample data records, best by posting a small sample QVW and your expected result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 17:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-Firstsortedvalue/m-p/930216#M977050</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-08-28T17:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Count with Firstsortedvalue</title>
      <link>https://community.qlik.com/t5/QlikView/Count-with-Firstsortedvalue/m-p/930217#M977051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gareth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you want to use Rank() function and aggregate it over Vendor No and Date dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;%_VNO={"=Aggr(Rank(Sum)), %_VNO, UNIT.SOLD_DATE) = 2"}&amp;gt;} UNIT.REGNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; font-size: 13px;"&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&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; font-size: 13px;"&gt;And of course, if you want to ignore all user selections, just add 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({1&amp;lt;%_VNO={"=Aggr(Rank(Sum)), %_VNO, UNIT.SOLD_DATE) = 2"}&amp;gt;} UNIT.REGNO)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 18:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-with-Firstsortedvalue/m-p/930217#M977051</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-08-28T18:02:01Z</dc:date>
    </item>
  </channel>
</rss>

