<?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: Aggr() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930498#M949239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This as your dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(FirstSortedValue(store, -[date of invoice]), ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Dec 2015 12:43:41 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-12-15T12:43:41Z</dc:date>
    <item>
      <title>Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930494#M949235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a straight table with customer ID , date of invoices and store.&lt;/P&gt;&lt;P&gt;i want to use AGGR() function in order to show only one row with the last date of invoice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aggr(Max(InvoiceDate),CustomerID)&lt;/P&gt;&lt;P&gt;i guess i need another aggr() in order to get what i want..&lt;/P&gt;&lt;P&gt;anyone? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table is like this:&lt;/P&gt;&lt;P&gt;ID | &lt;SPAN style="font-size: 13.3333px;"&gt;date of invoice | &lt;SPAN style="font-size: 13.3333px;"&gt;store&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1 , 1/1/12 , AA&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1 , 1/5/12 ,BB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2 , 1/1/13 , AC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;i need :&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ID | &lt;SPAN style="font-size: 13.3333px;"&gt;date of invoice | &lt;SPAN style="font-size: 13.3333px;"&gt;store&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1 , 1/5/12 , &lt;SPAN style="font-size: 13.3333px;"&gt;BB&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2 , 1/1/13 , AC&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 11:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930494#M949235</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-15T11:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930495#M949236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you just need FirstSortedValue() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension: &lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression1: &lt;STRONG&gt;=Date(Max([date of invoice]&lt;SPAN style="color: #ff0000;"&gt;))&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression2: &lt;STRONG&gt;=FirstSortedValue(store, -[date of invoice])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109073_Capture.PNG" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 12:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930495#M949236</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-15T12:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930496#M949237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny! &lt;/P&gt;&lt;P&gt;But if i want to use AGGR - i need it in as dimension.. can i do it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 12:05:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930496#M949237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-15T12:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930497#M949238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to use this "&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Aggr(Max(InvoiceDate),CustomerID)" expression then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;CustomerID needs to be in the dimensions list &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 12:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930497#M949238</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-12-15T12:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930498#M949239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This as your dimension:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Aggr(FirstSortedValue(store, -[date of invoice]), ID)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 12:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930498#M949239</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-15T12:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930499#M949240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 14:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930499#M949240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-15T14:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930500#M949241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 16:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-function/m-p/930500#M949241</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-15T16:05:20Z</dc:date>
    </item>
  </channel>
</rss>

