<?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 sales calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814596#M287320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are using the wrong modifier. try $ instead of {1} because $ is the current selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Nov 2014 10:21:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-25T10:21:39Z</dc:date>
    <item>
      <title>Top sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814593#M287317</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;I have used the following expression&lt;/P&gt;&lt;P&gt;='The spend and savings of ' &amp;amp;GetFieldSelections(Supplier)&amp;amp;' is '&amp;amp;&amp;nbsp; sum(Spend)&amp;amp;', '&amp;amp;sum([MPN Savings])&amp;amp;'&lt;/P&gt;&lt;P&gt;'&amp;amp;'Top Spend is '&amp;amp; firstsortedvalue(Supplier, -Aggr(sum({1}[Spend]),Commodity,Supplier))&amp;amp;'&lt;/P&gt;&lt;P&gt;'&amp;amp;max(aggr(sum({1}Spend),Commodity,Supplier))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a text box to show the selected supplier and top supplier spend and it is fine when nothing is selected but when for eg&lt;/P&gt;&lt;P&gt;a supplier is selected the selected and top supplier are the same, to avoid this I have also applied the identifier {1} but not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to calculate the top supplier in the edit script or is there any alternative the front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;KK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814593#M287317</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2014-11-25T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Top sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814594#M287318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're simply missing a few {1)s, try inserting:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;firstsortedvalue({1}Supplier..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max({1}Aggr(..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it should work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:14:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814594#M287318</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2014-11-25T10:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Top sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814595#M287319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post your example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:16:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814595#M287319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-25T10:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Top sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814596#M287320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are using the wrong modifier. try $ instead of {1} because $ is the current selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 10:21:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814596#M287320</guid>
      <dc:creator />
      <dc:date>2014-11-25T10:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Top sales calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814597#M287321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron for the above data set , if I want to know the top three suppliers we can use concat along with aggr,&lt;/P&gt;&lt;P&gt;I know it, but if I want to know the sum of spend of top three suppliers and average of spend of top three suppliers &lt;/P&gt;&lt;P&gt;in a text box , how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: here I have indirect set analysis i.e. the average i cannot calculate directly by having sum(spend)/3 because&lt;/P&gt;&lt;P&gt;for a commodity I may not have three suppliers sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Nov 2014 10:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Top-sales-calculation/m-p/814597#M287321</guid>
      <dc:creator>kkkumar82</dc:creator>
      <dc:date>2014-11-26T10:48:21Z</dc:date>
    </item>
  </channel>
</rss>

