<?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: How to show a  specific value of an aggro function? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-show-a-specific-value-of-an-aggro-function/m-p/780194#M276460</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Privet Alex, kak dela?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure I totally understand your question, but &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;how about this expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(IdShop, -aggr(sum(Sales),branch,week,IdShop))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get some ideas here if it does not work in your case&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3857"&gt;QlikView Technical Brief - AGGR.docx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 06 Dec 2014 03:11:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-06T03:11:39Z</dc:date>
    <item>
      <title>How to show a  specific value of an aggro function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-a-specific-value-of-an-aggro-function/m-p/780193#M276459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having a situation and i just can't find an answer. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a pivot table. Rows are "Branches" and columns are "weeks". Each branch can have multiple shops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to show the IdShop with the max sales in the week. So Max(aggr(Sum(Sales), week, branch, IdShop) shows the right sales numbers. But i need to show the IdShop to which each calculated Max Sum Sales belong. How do i return the value of the IdShop, that answers the Max(aggr(Sum(Sales), week, branch, IdShop) criteria? Tried to do it with the&amp;nbsp; IF statement ( If (Max(aggr(Sum(Sales), week, branch, IdShop), IdShop), but it shows only one value of single IdShop in pivot table. Hopefully you can understand what i just wrote. I would love to attach the qwv file, but it is all in Russian though.&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, 04 Dec 2014 22:23:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-a-specific-value-of-an-aggro-function/m-p/780193#M276459</guid>
      <dc:creator />
      <dc:date>2014-12-04T22:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to show a  specific value of an aggro function?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-show-a-specific-value-of-an-aggro-function/m-p/780194#M276460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Privet Alex, kak dela?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not sure I totally understand your question, but &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;how about this expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FirstSortedValue(IdShop, -aggr(sum(Sales),branch,week,IdShop))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can get some ideas here if it does not work in your case&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-3857"&gt;QlikView Technical Brief - AGGR.docx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Dec 2014 03:11:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-show-a-specific-value-of-an-aggro-function/m-p/780194#M276460</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-06T03:11:39Z</dc:date>
    </item>
  </channel>
</rss>

