<?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: question on expression with two or more rows in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/question-on-expression-with-two-or-more-rows/m-p/776065#M1048486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Daniel.&lt;/P&gt;&lt;P&gt;I was still getting the sum of both the values. Further searching I found a solution as below:&lt;/P&gt;&lt;P&gt;Sum(If(Aggr(NODISTINCT Max(LastChangedDate), P8_OpportunityID) = LastChangedDate, P8_EstimatedValue)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Nov 2014 01:48:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-06T01:48:02Z</dc:date>
    <item>
      <title>question on expression with two or more rows</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-expression-with-two-or-more-rows/m-p/776063#M1048484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to create an expression to only return value based on the latest Date?&lt;/P&gt;&lt;P&gt;For example, there are two entries for the same item but I want to return $100,000 as it has the latest date changed.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Latest Date.JPG.jpg" class="jive-image" src="/legacyfs/online/70598_Latest Date.JPG.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;Derrell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 00:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-expression-with-two-or-more-rows/m-p/776063#M1048484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-06T00:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: question on expression with two or more rows</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-expression-with-two-or-more-rows/m-p/776064#M1048485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like this in your P8_EstimatedValue expression: I use 'sum' - maybe in your case you rather use only(), avg() or whatever suits your calculation:&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;LastChangedDate={"=max(LastChangedDate)"}&amp;gt;}&amp;nbsp; P8_EstimatedValue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edited: sorry - I meant to write LastChangedDate...not CreatedDate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 00:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-expression-with-two-or-more-rows/m-p/776064#M1048485</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-11-06T00:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: question on expression with two or more rows</title>
      <link>https://community.qlik.com/t5/QlikView/question-on-expression-with-two-or-more-rows/m-p/776065#M1048486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Daniel.&lt;/P&gt;&lt;P&gt;I was still getting the sum of both the values. Further searching I found a solution as below:&lt;/P&gt;&lt;P&gt;Sum(If(Aggr(NODISTINCT Max(LastChangedDate), P8_OpportunityID) = LastChangedDate, P8_EstimatedValue)) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 01:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/question-on-expression-with-two-or-more-rows/m-p/776065#M1048486</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-06T01:48:02Z</dc:date>
    </item>
  </channel>
</rss>

