<?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: Set Analysis solution in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-solution/m-p/733265#M262717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should solve on script side, simply doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your table name is myTable then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * resident myTable;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;Load max([creation date]) as [creation date], '1' as flag resident myTable group by [Vendor Name], Item;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a flag field showing max (per Vendor and Item), use this field in your expression with set analysis and it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me Know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Oct 2014 08:29:01 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-10-01T08:29:01Z</dc:date>
    <item>
      <title>Set Analysis solution</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-solution/m-p/733263#M262715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a syntax for the following problem&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I have a table with dimensions; Vendor,Item,Time (po date) and the expression is unit price. &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;What I need is the &lt;SPAN style="text-decoration: underline;"&gt;lastest Po date&lt;/SPAN&gt; of that item with the corresponding unit price. With that price I will calculate with other fields. So when I troggle on Vendor or Item and time, I always need the latest PO with unit price from the database. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;VENDOR NAME&lt;/TD&gt;&lt;TD&gt;ITEM&lt;/TD&gt;&lt;TD&gt;PO LINE CREATION DATE&lt;/TD&gt;&lt;TD&gt;UNIT PRICE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AxFloX&lt;/TD&gt;&lt;TD&gt;005870&lt;/TD&gt;&lt;TD&gt;14-1-2014&lt;/TD&gt;&lt;TD&gt;37,62&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AxFloX&lt;/TD&gt;&lt;TD&gt;005870&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;17-6-2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="color: #ff0000;"&gt;40,68&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this can be achieved with the correct set analysis in the presentation layer but perhaps a solution in the script is also no problem...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 08:04:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-solution/m-p/733263#M262715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-01T08:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis solution</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-solution/m-p/733264#M262716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try first sorted value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like below&lt;/P&gt;&lt;P&gt;FirstSortedValue(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;UNIT PRICE&lt;/SPAN&gt;, -&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;PO LINE CREATION DATE&lt;/SPAN&gt;) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;ASHFAQ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 08:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-solution/m-p/733264#M262716</guid>
      <dc:creator>ashfaq_haseeb</dc:creator>
      <dc:date>2014-10-01T08:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis solution</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-solution/m-p/733265#M262717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should solve on script side, simply doing this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your table name is myTable then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load * resident myTable;&lt;/P&gt;&lt;P&gt;left join&lt;/P&gt;&lt;P&gt;Load max([creation date]) as [creation date], '1' as flag resident myTable group by [Vendor Name], Item;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a flag field showing max (per Vendor and Item), use this field in your expression with set analysis and it will work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me Know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Oct 2014 08:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-solution/m-p/733265#M262717</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-10-01T08:29:01Z</dc:date>
    </item>
  </channel>
</rss>

