<?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 Displaying Total Sales for Top SalesPerson In Text Box in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842586#M1008551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;I want to display the total sales for the top sales person, total sales for the top performing region and total sales for the top performing product&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I can use an expression in a text box to display the name of the sales person and the name of the region but I'd like also to display the amount of sales &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;( FIRSTSORTEDVALUE(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesPerson&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(SaleAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),SalesPerson&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;( FIRSTSORTEDVALUE(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesRegion&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(SaleAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),SalesRegion&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;( FIRSTSORTEDVALUE(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(SaleAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The problem I think is that I don't have the sales amounts aggregrated across the Sales Person, Region and Product and was wondering if there was a way to display e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Top Sales Person - Sale Person Name - $20,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Top Region - USA - $100000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Top Product - ProductBrandName - $54,000&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2015 11:28:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-05-12T11:28:26Z</dc:date>
    <item>
      <title>Displaying Total Sales for Top SalesPerson In Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842586#M1008551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;I want to display the total sales for the top sales person, total sales for the top performing region and total sales for the top performing product&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I can use an expression in a text box to display the name of the sales person and the name of the region but I'd like also to display the amount of sales &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;( FIRSTSORTEDVALUE(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesPerson&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(SaleAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),SalesPerson&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;( FIRSTSORTEDVALUE(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SalesRegion&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(SaleAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),SalesRegion&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;( FIRSTSORTEDVALUE(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, -&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(SaleAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),Product&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;The problem I think is that I don't have the sales amounts aggregrated across the Sales Person, Region and Product and was wondering if there was a way to display e.g.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Top Sales Person - Sale Person Name - $20,000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Top Region - USA - $100000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Top Product - ProductBrandName - $54,000&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 11:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842586#M1008551</guid>
      <dc:creator />
      <dc:date>2015-05-12T11:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Total Sales for Top SalesPerson In Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842587#M1008552</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: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;Max&lt;/STRONG&gt;(AGGR&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(SaleAmount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;),SalesPerson&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 11:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842587#M1008552</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-05-12T11:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Total Sales for Top SalesPerson In Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842588#M1008553</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;try like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="300"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="89"&gt;Sales_Person&lt;/TD&gt;&lt;TD width="64"&gt;Product&lt;/TD&gt;&lt;TD width="64"&gt;Region&lt;/TD&gt;&lt;TD width="83"&gt;SaleAmount&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;S1&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;S1&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;S1&lt;/TD&gt;&lt;TD&gt;P2&lt;/TD&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD align="right"&gt;100&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;S2&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;UK&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;S2&lt;/TD&gt;&lt;TD&gt;P2&lt;/TD&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;S2&lt;/TD&gt;&lt;TD&gt;P1&lt;/TD&gt;&lt;TD&gt;US&lt;/TD&gt;&lt;TD align="right"&gt;200&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PFA attached qvw &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify as required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:21:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842588#M1008553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-12T12:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Total Sales for Top SalesPerson In Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842589#M1008554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for replying but I'm using the PE so cant open the qvw file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:38:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842589#M1008554</guid>
      <dc:creator />
      <dc:date>2015-05-12T12:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Total Sales for Top SalesPerson In Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842590#M1008555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tresesco has answered your question -- the full expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;='Top sales person - ' &amp;amp; FIRSTSORTEDVALUE(SalesPerson, -AGGR(SUM(SaleAmount),SalesPerson)) &amp;amp; ' - ' &amp;amp; Num(Max(AGGR(SUM(SaleAmount),SalesPerson)), '$#,##0', '.', ',')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 12:46:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842590#M1008555</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-05-12T12:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Total Sales for Top SalesPerson In Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842591#M1008556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this : &lt;/P&gt;&lt;P&gt;='Sales person name -'&amp;amp;'&amp;nbsp;&amp;nbsp; '&amp;amp; SubField(concat ( ( Sales_Person),'@',1/SaleAmount ),'@',1) &amp;amp;'&amp;nbsp;&amp;nbsp; '&amp;amp;'Amount is '&amp;amp;':' &amp;amp; SubField(concat ( ( Aggr(sum(SaleAmount),Sales_Person) ),'@',1/SaleAmount),'@',1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 13:47:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842591#M1008556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-12T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Total Sales for Top SalesPerson In Text Box</title>
      <link>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842592#M1008557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys...both of these solutions worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll have to spend a bit more time looking at the AGGR function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2015 15:46:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Displaying-Total-Sales-for-Top-SalesPerson-In-Text-Box/m-p/842592#M1008557</guid>
      <dc:creator />
      <dc:date>2015-05-12T15:46:00Z</dc:date>
    </item>
  </channel>
</rss>

