<?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: Top N or Max Count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171237#M380690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for the quick response.&amp;nbsp; I would like to rank by the highest date in the month per count.&amp;nbsp; So it is totaling all of the dates as the count.&amp;nbsp; I would like May 2016, then 5/1,2016, 30(max count), I am getting May 2016, 5/x/2016, count for total month of may instead of just max count for the highest day in the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;MonthYear&lt;/P&gt;&lt;P&gt;DATE&lt;/P&gt;&lt;P&gt;DEPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set analysis to find the (COUNT({$&amp;lt;Dept = {'Sales'}&amp;gt;} distinct [Shipping_Cost]).&amp;nbsp; This part works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2016 19:02:54 GMT</pubDate>
    <dc:creator>detmawin</dc:creator>
    <dc:date>2016-06-10T19:02:54Z</dc:date>
    <item>
      <title>Top N or Max Count</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171234#M380687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day,&lt;/P&gt;&lt;P&gt;I have a table with the following fields, monthyear, date, and a field to count on, and dept.&amp;nbsp; I created a bar chart with a set analysis expression to find the count per dept.&amp;nbsp; I would like to find the highest count for each month for each dept.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used a straight table and sorted on max values, but I am not sure how to get the max count for each month/year in the dimension,and plot on a bar or line chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 17:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171234#M380687</guid>
      <dc:creator>detmawin</dc:creator>
      <dc:date>2016-06-10T17:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Top N or Max Count</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171235#M380688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your bar chart's dimension? and you want to see the maximum by month and dept how?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 17:58:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171235#M380688</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T17:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Top N or Max Count</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171236#M380689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming your fields are as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension:&lt;/P&gt;&lt;P&gt;Month&lt;/P&gt;&lt;P&gt;Dept&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 8.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;=Max ( aggr ( Count( YourfieldNameToCount ), Month , Dept ) )&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, If not please post a small sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171236#M380689</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-10T18:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Top N or Max Count</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171237#M380690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much for the quick response.&amp;nbsp; I would like to rank by the highest date in the month per count.&amp;nbsp; So it is totaling all of the dates as the count.&amp;nbsp; I would like May 2016, then 5/1,2016, 30(max count), I am getting May 2016, 5/x/2016, count for total month of may instead of just max count for the highest day in the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;MonthYear&lt;/P&gt;&lt;P&gt;DATE&lt;/P&gt;&lt;P&gt;DEPT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a set analysis to find the (COUNT({$&amp;lt;Dept = {'Sales'}&amp;gt;} distinct [Shipping_Cost]).&amp;nbsp; This part works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 19:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171237#M380690</guid>
      <dc:creator>detmawin</dc:creator>
      <dc:date>2016-06-10T19:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Top N or Max Count</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171238#M380691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;MonthYear&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DEPT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Expressions:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1) &lt;STRONG&gt;FirstSortedValue(DATE, -Aggr(&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({$&amp;lt;Dept = {'Sales'}&amp;gt;} distinct [Shipping_Cost]), MonthYear, DEPT))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;2) &lt;STRONG&gt;Max(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Count({$&amp;lt;Dept = {'Sales'}&amp;gt;} distinct [Shipping_Cost]), MonthYear, DEPT)&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 19:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171238#M380691</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T19:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Top N or Max Count</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171239#M380692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&amp;nbsp; When I use rank, it I get a -1 to show that this is the highest rank for the date, but how do I get the actual count to show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=rank(COUNT({$&amp;lt;Dept= {'Sales'}&amp;gt;} distinct [Shipping_Cost]))&amp;lt;2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get Date 5/20/2015. Sales -1, instead of the count, but this is the correct date with the highest value.&amp;nbsp; It just doesn't show the count.&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, 10 Jun 2016 19:49:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171239#M380692</guid>
      <dc:creator>detmawin</dc:creator>
      <dc:date>2016-06-10T19:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Top N or Max Count</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171240#M380693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(R&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;ank(Count({$&amp;lt;Dept= {'Sales'}&amp;gt;} distinct [Shipping_Cost]))&amp;lt;2, &lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({$&amp;lt;Dept= {'Sales'}&amp;gt;} distinct [Shipping_Cost]))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2016 20:05:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171240#M380693</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-10T20:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Top N or Max Count</title>
      <link>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171241#M380694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much @Sunny T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 13:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-N-or-Max-Count/m-p/1171241#M380694</guid>
      <dc:creator>detmawin</dc:creator>
      <dc:date>2016-06-14T13:39:48Z</dc:date>
    </item>
  </channel>
</rss>

