<?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: Help set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348200#M573380</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everybody but nothing you suggest me works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2012 13:04:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-10T13:04:36Z</dc:date>
    <item>
      <title>Help set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348196#M573376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I'm trying to build a function that I pull out, per customer, the last date on which he purchased, and on that date, the item purchased with the highest economic value. That is the record with the highest value of the last sale per customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote something like this, but it doesn't work.&lt;/P&gt;&lt;P&gt;sum({&amp;lt;DATA_DDT={$( aggr(max(DATA_DDT),C_CLIENTE))}&amp;gt;} aggr(max({&amp;lt;DDT_SN={'S'}&amp;gt;}VAL_DDT),C_CLIENTE,C_ARTICOLO))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA_DDT is the date&lt;/P&gt;&lt;P&gt;C_CLIENTE is the customer code&lt;/P&gt;&lt;P&gt;C_ARTICOLO is the article code&lt;/P&gt;&lt;P&gt;VAL_DDT is the article value €&lt;/P&gt;&lt;P&gt;DDT_SN is only a flag to reduce data, it's not important&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2012 15:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348196#M573376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-12T15:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348197#M573377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could probably try something like this sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2012 17:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348197#M573377</guid>
      <dc:creator />
      <dc:date>2012-07-14T17:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Help set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348198#M573378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG __jive_id="18377" alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/18377_Untitled.png" /&gt;&lt;/P&gt;&lt;P&gt;The above result is produced by the attached application. Is this what is needed? (The data used in this application is the same as that used by beanz above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Nagaian Krishnamoorthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2012 18:33:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348198#M573378</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-07-14T18:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348199#M573379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think that could be better to do it in the load script.&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MaxSales:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(Date) as MaxDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(distinct SalesAmount, -Date) as&amp;nbsp; MaxSalesAmountDate&lt;/P&gt;&lt;P&gt;from TABLEX&lt;/P&gt;&lt;P&gt;group by&amp;nbsp; Customer;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jul 2012 21:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348199#M573379</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-07-14T21:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348200#M573380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everybody but nothing you suggest me works...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 13:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348200#M573380</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-10T13:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348201#M573381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;MaxSales:&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;Load&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;C_CLIENTE &lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;C_ARTICOLO &lt;/SPAN&gt;,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;DATA_DDT&lt;/SPAN&gt;) as MaxDate,&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FirstSortedValue(distinct &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;VAL_DDT&lt;/SPAN&gt;, -&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;DATA_DDT&lt;/SPAN&gt;) as&amp;nbsp; MaxSalesAmountDate&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;from TABLEX&lt;/P&gt;&lt;P style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;group by&amp;nbsp; &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;C_CLIENTE &lt;/SPAN&gt;, &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;C_ARTICOLO &lt;/SPAN&gt;;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-set-analysis/m-p/348201#M573381</guid>
      <dc:creator>chematos</dc:creator>
      <dc:date>2012-08-10T14:10:18Z</dc:date>
    </item>
  </channel>
</rss>

