<?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: Evaluate max date in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Evaluate-max-date-in-set-analysis/m-p/840912#M295527</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the sum is 110000. Both the third and fourth row satisfy the conditions. Payment Date 01-11-2014 is smaller than CalDate 31-03-2015. The max Delivery Date is 13-06-2014 and for both these two rows the Payment Date 01-11-2014 is larger than &lt;SPAN style="font-size: 13.3333330154419px;"&gt;13-06-2014. See attached qvw.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 17:00:59 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2015-06-17T17:00:59Z</dc:date>
    <item>
      <title>Evaluate max date in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-max-date-in-set-analysis/m-p/840911#M295526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="VariableNotWorking.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89726_VariableNotWorking.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;From Above table, i want &lt;STRONG&gt;Amount Paid &lt;/STRONG&gt;to be calculated&lt;STRONG&gt; &lt;/STRONG&gt;with conditions:-&lt;/P&gt;&lt;P&gt;1) Payment Date &amp;lt;= CalDate&lt;/P&gt;&lt;P&gt;2) &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Payment Date &amp;gt;= max(Delivery Date) with condition 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;for the time period of March-2015 month with linked to CalDate.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I used below expression , but it is not working.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt; link_Date={"&amp;gt;=$(vCurrentMonthStart)&amp;lt;=$(vCurrentDate)"} ,[Payment Date]={"&amp;lt;=$(vCurrentDate)"} &amp;gt;} &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(([Payment Date]&amp;gt;=vMaxDelDate ) , [Amount Paid]) )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;here variable &lt;STRONG&gt;vMaxDelDate&lt;/STRONG&gt; contains &lt;STRONG&gt;=Aggr(date(max([Delivery Date]),'DD-MM-YYYY'), link_Advance)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All these conditions has to give output as 55000&lt;/P&gt;&lt;P&gt;&lt;IMG alt="VariableNotWorking-AmountPaid.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/89727_VariableNotWorking-AmountPaid.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Kindly help me to get the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 09:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-max-date-in-set-analysis/m-p/840911#M295526</guid>
      <dc:creator>csurajbhan</dc:creator>
      <dc:date>2015-06-17T09:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate max date in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-max-date-in-set-analysis/m-p/840912#M295527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually the sum is 110000. Both the third and fourth row satisfy the conditions. Payment Date 01-11-2014 is smaller than CalDate 31-03-2015. The max Delivery Date is 13-06-2014 and for both these two rows the Payment Date 01-11-2014 is larger than &lt;SPAN style="font-size: 13.3333330154419px;"&gt;13-06-2014. See attached qvw.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 17:00:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-max-date-in-set-analysis/m-p/840912#M295527</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-06-17T17:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Evaluate max date in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Evaluate-max-date-in-set-analysis/m-p/840913#M295528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert, &lt;/P&gt;&lt;P&gt;Thanx for your input.&lt;/P&gt;&lt;P&gt;After Condition 1, we have to evaluate Max Delivery Date rows only, here it is row 2 &amp;amp; row 4.&lt;/P&gt;&lt;P&gt;after this, we have to check whether Payment Date &amp;gt;= Delivery Date, which results in&amp;nbsp; row 4 as output.&lt;/P&gt;&lt;P&gt;Hence Amount Paid is only 55000 with row 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly suggest,&lt;/P&gt;&lt;P&gt;Thanx in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 06:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Evaluate-max-date-in-set-analysis/m-p/840913#M295528</guid>
      <dc:creator>csurajbhan</dc:creator>
      <dc:date>2015-06-18T06:09:35Z</dc:date>
    </item>
  </channel>
</rss>

