<?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 Is it possible to count the firstsortedvalues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073887#M922715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mates,&lt;/P&gt;&lt;P&gt;I am new to qlikview,currently pursuing a developer course.&lt;/P&gt;&lt;P&gt;I had given an assignment to do a simple statistics on some past data.Everything went well but now I am stuck on.I need to get the count of group who have gained maximum points.I was able to show it in a straight box but cant show the same on a line chart.I need to know is it possible to count the firstsortedvalue.For your understanding I have given a sample.I have two tables,one having location,points and groupid and the other table having groupid and groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;location,points,groupid&lt;/P&gt;&lt;P&gt;aa,100,A1&lt;/P&gt;&lt;P&gt;aa,150,B2&lt;/P&gt;&lt;P&gt;aa,300,C3&lt;/P&gt;&lt;P&gt;bb,200,A2&lt;/P&gt;&lt;P&gt;bb,300,B2&lt;/P&gt;&lt;P&gt;bb,100,C3&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;groupid,group&lt;/P&gt;&lt;P&gt;A1,A&lt;/P&gt;&lt;P&gt;A2,A&lt;/P&gt;&lt;P&gt;B1,B&lt;/P&gt;&lt;P&gt;B2,B&lt;/P&gt;&lt;P&gt;C3,C&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;So here winner groupid from location aa is C3 which belongs to group C ,which I got using firstSortedVlaue,likewise there are more than 100 locations so I need to count the number of times each group came like A=10,B=5,C=12 etc.&lt;/P&gt;&lt;P&gt;I created a straight table with location as dimension and used the expression firstsortedvalue(group,-points) to get group with maximum points .&lt;/P&gt;&lt;P&gt;So please help me to find out the solution.Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Is it possible to count the firstsortedvalues</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073887#M922715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mates,&lt;/P&gt;&lt;P&gt;I am new to qlikview,currently pursuing a developer course.&lt;/P&gt;&lt;P&gt;I had given an assignment to do a simple statistics on some past data.Everything went well but now I am stuck on.I need to get the count of group who have gained maximum points.I was able to show it in a straight box but cant show the same on a line chart.I need to know is it possible to count the firstsortedvalue.For your understanding I have given a sample.I have two tables,one having location,points and groupid and the other table having groupid and groups.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;location,points,groupid&lt;/P&gt;&lt;P&gt;aa,100,A1&lt;/P&gt;&lt;P&gt;aa,150,B2&lt;/P&gt;&lt;P&gt;aa,300,C3&lt;/P&gt;&lt;P&gt;bb,200,A2&lt;/P&gt;&lt;P&gt;bb,300,B2&lt;/P&gt;&lt;P&gt;bb,100,C3&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;groupid,group&lt;/P&gt;&lt;P&gt;A1,A&lt;/P&gt;&lt;P&gt;A2,A&lt;/P&gt;&lt;P&gt;B1,B&lt;/P&gt;&lt;P&gt;B2,B&lt;/P&gt;&lt;P&gt;C3,C&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;So here winner groupid from location aa is C3 which belongs to group C ,which I got using firstSortedVlaue,likewise there are more than 100 locations so I need to count the number of times each group came like A=10,B=5,C=12 etc.&lt;/P&gt;&lt;P&gt;I created a straight table with location as dimension and used the expression firstsortedvalue(group,-points) to get group with maximum points .&lt;/P&gt;&lt;P&gt;So please help me to find out the solution.Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073887#M922715</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to count the firstsortedvalues</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073888#M922716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as the dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(FirstSortedValue(group, -points), location)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Count(Aggr(FirstSortedValue(group, -points), location))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 16:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073888#M922716</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-21T16:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to count the firstsortedvalues</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073889#M922717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny for your prompt and quick response.The solution is exactly what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 04:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073889#M922717</guid>
      <dc:creator />
      <dc:date>2016-04-22T04:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to count the firstsortedvalues</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073890#M922718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your question is answered, please flag the correct answer as Correct Answer. This will "close" the topic.&lt;/P&gt;&lt;P&gt;Please use "Helpful" for those (other) replies that helped you, but where not the or the best answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If made the correction for you in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 08:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073890#M922718</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-04-22T08:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to count the firstsortedvalues</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073891#M922719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for marking the same and I am sorry to say that I tried to mark it as right answer but couldnt see that option,this is my first time to this community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 12:09:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073891#M922719</guid>
      <dc:creator />
      <dc:date>2016-04-22T12:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to count the firstsortedvalues</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073892#M922720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All good &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;Welcome to the Qlik Community!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 12:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073892#M922720</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2016-04-22T12:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to count the firstsortedvalues</title>
      <link>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073893#M922721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In the example above if I add one more field 'year',how can I show which group Id wins each year in each location.I tried to plot a chart with location as dimension but couldnt get the desired result.The purpose of this chart is to predict the winning probability of groupid in respective location in coming years.I hope my query is clear.&lt;/P&gt;&lt;P&gt;Thank you for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2016 12:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Is-it-possible-to-count-the-firstsortedvalues/m-p/1073893#M922721</guid>
      <dc:creator />
      <dc:date>2016-04-28T12:10:45Z</dc:date>
    </item>
  </channel>
</rss>

