<?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 Trying to return value if another value is the maximum in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trying-to-return-value-if-another-value-is-the-maximum/m-p/425933#M484454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Aggr(max(ModifiedDate), UserId, ReportStatus)&amp;nbsp; ...but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pure English, what I am trying to do is return a User's report status if their Modified Date is the latest.&amp;nbsp; Is something in my statement incorrect or am I approaching the problem incorrectly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2013 21:07:40 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-30T21:07:40Z</dc:date>
    <item>
      <title>Trying to return value if another value is the maximum</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-return-value-if-another-value-is-the-maximum/m-p/425933#M484454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was trying to do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(Aggr(max(ModifiedDate), UserId, ReportStatus)&amp;nbsp; ...but it's not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pure English, what I am trying to do is return a User's report status if their Modified Date is the latest.&amp;nbsp; Is something in my statement incorrect or am I approaching the problem incorrectly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 21:07:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-return-value-if-another-value-is-the-maximum/m-p/425933#M484454</guid>
      <dc:creator />
      <dc:date>2013-05-30T21:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to return value if another value is the maximum</title>
      <link>https://community.qlik.com/t5/QlikView/Trying-to-return-value-if-another-value-is-the-maximum/m-p/425934#M484455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with Firstsortedvalue() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;firstsortedvalue(&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;ReportStatus&lt;/SPAN&gt;, Orderdate) gets the &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;UserId &lt;/SPAN&gt;with the minumum orderdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;firstsortedvalue(&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;ReportStatus&lt;/SPAN&gt;, -Orderdate) gets the &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;UserId&lt;/SPAN&gt; with the maximum orderdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/message/342392#342392"&gt;http://community.qlik.com/message/342392#342392&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 21:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trying-to-return-value-if-another-value-is-the-maximum/m-p/425934#M484455</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2013-05-30T21:38:26Z</dc:date>
    </item>
  </channel>
</rss>

