<?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: Problem using set analysed in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515502#M436941</link>
    <description>&lt;P&gt;May be you need this&lt;/P&gt;&lt;P&gt;FirstSortedValue(Aggr(Sum(IN_QTY),&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;IN_ProductNr,&amp;nbsp;IN_DeliveryDate), -Aggr(IN_DeliveryDate,&amp;nbsp;IN_ProductNr, IN_DeliveryDate))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Dec 2018 12:06:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-12-03T12:06:55Z</dc:date>
    <item>
      <title>Problem using set analysed</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515490#M436938</link>
      <description>&lt;DIV class="topic-subject-wrapper"&gt;&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;Dear all,&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-component-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I have the following problem using set analyses, and I was wondering if you guys could help me.&lt;/P&gt;&lt;P&gt;We have a table that contains all purchase lines in our company, for example:&lt;/P&gt;&lt;P&gt;IN_ProductNr&lt;BR /&gt;IN_DeliveryDate&lt;BR /&gt;IN_OrderNr&lt;BR /&gt;IN_QTY&lt;/P&gt;&lt;P&gt;In a charttable we would like to show the next delivery (based on DeliveryDate) and the QTY this order contains.&lt;BR /&gt;Showing the next delivery date isn't any problem, but I don't seem to be able to show the correct QTY.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the following code, I only get a correct value when only one product is selected.&amp;nbsp;&lt;BR /&gt;Otherwise the result is always 0.&lt;/P&gt;&lt;PRE&gt;sum({$&amp;lt;IN_DeliveryDate={"$(=Min(IN_DeliveryDate))"}&amp;gt;}IN_QTY) &amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the following code then the QTY is the total for all outstanding orders.&lt;/P&gt;&lt;PRE&gt;sum({$&amp;lt;IN_DeliveryDate={"=Min(IN_DeliveryDate)"}&amp;gt;}IN_QTY) &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could somebody please tell me&amp;nbsp;is this is possible and how to do this?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 03 Dec 2018 11:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515490#M436938</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-03T11:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using set analysed</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515492#M436939</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there are way to attached sample data?&lt;/P&gt;&lt;P&gt;In the absence of sample data, try "=$()"as below&lt;/P&gt;&lt;PRE&gt;sum({$&amp;lt;IN_DeliveryDate={"=$(=Min(IN_DeliveryDate))"}&amp;gt;}IN_QTY)&lt;/PRE&gt;&lt;P&gt;If you can attach sample data it will help&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 11:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515492#M436939</guid>
      <dc:creator>Gabriel</dc:creator>
      <dc:date>2018-12-03T11:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using set analysed</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515502#M436941</link>
      <description>&lt;P&gt;May be you need this&lt;/P&gt;&lt;P&gt;FirstSortedValue(Aggr(Sum(IN_QTY),&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;IN_ProductNr,&amp;nbsp;IN_DeliveryDate), -Aggr(IN_DeliveryDate,&amp;nbsp;IN_ProductNr, IN_DeliveryDate))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 12:06:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515502#M436941</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T12:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using set analysed</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515511#M436942</link>
      <description>&lt;P&gt;Hi Stalwar1,&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is working perfectly!&lt;/P&gt;&lt;P&gt;Could you also provide the sollution if I needed the second ranked value?&lt;BR /&gt;So the delivery QTY for the second shipment ranked by delivery date.&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 03 Dec 2018 12:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515511#M436942</guid>
      <dc:creator>bert_geraerts</dc:creator>
      <dc:date>2018-12-03T12:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using set analysed</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515514#M436944</link>
      <description>&lt;P&gt;Add a 2 at the end like this&lt;/P&gt;&lt;PRE&gt;FirstSortedValue(Aggr(Sum(IN_QTY),  IN_ProductNr, IN_DeliveryDate), -Aggr(IN_DeliveryDate, IN_ProductNr, IN_DeliveryDate)&lt;FONT color="#FF0000"&gt;, 2&lt;/FONT&gt;)&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Dec 2018 12:19:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-using-set-analysed/m-p/1515514#M436944</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-03T12:19:29Z</dc:date>
    </item>
  </channel>
</rss>

