<?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: Best Rep. table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979290#M467473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the dimension, take REP_NAME as Dim and Expression wud be =sum(Quantity)&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Nov 2015 07:33:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-11-12T07:33:48Z</dc:date>
    <item>
      <title>FirstSortedValue with  set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979284#M467467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;hi all,&lt;/P&gt;&lt;P&gt;I have a straight table (best reps) with 1 dimension and 2 expressions&lt;/P&gt;&lt;P&gt;dimension is department, and the expressions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Rep. Name&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #800000;"&gt;REP_NAME&lt;/SPAN&gt;, -&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(AMOUNT),&lt;SPAN style="color: #800000;"&gt;DEPARTMENT&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;REP_NAME&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;2. SALES AMOUNT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Max ( aggr ( sum ( AMOUNT ), &lt;SPAN style="color: #800000;"&gt;DEPARTMENT&lt;/SPAN&gt;, REP_NAME ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add an expression that will sum reps (from expression 1) the quantity&amp;nbsp; sold,&lt;/P&gt;&lt;P&gt;by default when I add sum(quantity ) it calculates the dimensions quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 17:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979284#M467467</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-11-11T17:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979285#M467468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;May be try this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #575757; font-size: 10pt; font-family: arial, helvetica, sans-serif;"&gt;&lt;STRONG&gt;Sum({&amp;lt;REP_NAME = {"=FirstSortedValue(REP_NAME, -Aggr(Sum(AMOUNT), DEPARTMENT, REP_NAME))"}&amp;gt;}Quantity)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Nov 2015 17:28:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979285#M467468</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-11T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979286#M467469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did not work&lt;/P&gt;&lt;P&gt;: (&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 07:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979286#M467469</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-11-12T07:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979287#M467470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like below!!&lt;/P&gt;&lt;P&gt;Max (aggr (sum ( Quantity ), &lt;SPAN style="color: #800000;"&gt;DEPARTMENT&lt;/SPAN&gt;, REP_NAME ) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 07:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979287#M467470</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-11-12T07:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979288#M467471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try like:&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;sum({&amp;lt;&lt;STRONG style="font-size: 13.3333320617676px;"&gt;REP_NAME={'*'}&lt;/STRONG&gt;&amp;gt;} quantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 07:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979288#M467471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T07:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979289#M467472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , it gives me the dimension quantity (department),&lt;/P&gt;&lt;P&gt;I need the reps quantity from expression 1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 07:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979289#M467472</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-11-12T07:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979290#M467473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the dimension, take REP_NAME as Dim and Expression wud be =sum(Quantity)&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 07:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979290#M467473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-11-12T07:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979291#M467474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;thank you for your effort,&lt;/P&gt;&lt;P&gt;this Expression retrieve the max quantity of the department, I need the quantity of the rep in Expression 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 07:43:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979291#M467474</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-11-12T07:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979292#M467475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Hi, &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;Is it not similar to what Tamil suggested, just replace the max with sum&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;sum(aggr (sum ( Quantity ), &lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;DEPARTMENT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;, REP_NAME ) )&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;Mark&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 08:28:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979292#M467475</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-12T08:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with  set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979293#M467476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then try with Sum instead of Max (Mentioned by Mark&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 08:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979293#M467476</guid>
      <dc:creator>tamilarasu</dc:creator>
      <dc:date>2015-11-12T08:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Best Rep. table</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979294#M467477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, thank you for your replay,&lt;/P&gt;&lt;P&gt;I tried it with sum, it gives the total quantity of the dimension (department)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 08:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979294#M467477</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-11-12T08:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with  set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979295#M467478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that me missing understanding. &lt;/P&gt;&lt;P&gt;So what we are trying to achieve is the quantity sold by the best sales person per department?&lt;/P&gt;&lt;P&gt;Do we have some sample data to play with? It is going to be a nested aggregation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 08:57:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979295#M467478</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2015-11-12T08:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with  set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979296#M467479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;not sure but try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;FirstSortedValue&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(Sum({&amp;lt;&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333320617676px;"&gt;REP_NAME={"=&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;(AMOUNT),&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;DEPARTMENT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;REP_NAME&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333330154419px;"&gt;)&lt;/SPAN&gt;"}&lt;/SPAN&gt;&amp;gt;}QUANTITY), -&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #0000ff;"&gt;Sum&lt;/SPAN&gt;(AMOUNT),&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;DEPARTMENT&lt;/SPAN&gt;, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333320617676px; font-family: inherit; color: #800000;"&gt;REP_NAME&lt;/SPAN&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 09:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979296#M467479</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-12T09:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with  set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979297#M467480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you are correct.&lt;/P&gt;&lt;P&gt;the quantity sold by the best sales person per department.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attached sample to source post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 09:36:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979297#M467480</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-11-12T09:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: FirstSortedValue with  set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979298#M467481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within your application, where exactly are you wanting to use the required expression??? You have fully loaded application attached and its difficult to find the particular chart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Nov 2015 11:15:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/FirstSortedValue-with-set-analysis/m-p/979298#M467481</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-11-12T11:15:43Z</dc:date>
    </item>
  </channel>
</rss>

