<?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: Report on Max date Vs Status/Priority Status in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224997#M865558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, Can any help me on this. &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;I would appreciate if you guys can spend some time on this to Provide your views.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Dec 2016 17:01:36 GMT</pubDate>
    <dc:creator>ashok1203</dc:creator>
    <dc:date>2016-12-22T17:01:36Z</dc:date>
    <item>
      <title>Report on Max date Vs Status/Priority Status</title>
      <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224996#M865557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a requirement which are consists of ID, Status, Create and Update Dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From the source am getting more no.of records on same ID's. In that records i need to filter the data based on Max (Update Date) followed with Status.If we get multiple rows for the same Update date then we need to take the Priority of the Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Priority Status:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="border: 0px; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: arial, helvetica, sans-serif; background-color: rgba(0, 0, 0, 0); color: #575757;" width="137"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Act&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: arial, helvetica, sans-serif; background-color: rgba(0, 0, 0, 0); color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Rejected XYZ&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: arial, helvetica, sans-serif; background-color: rgba(0, 0, 0, 0); color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Pending XYZ&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: arial, helvetica, sans-serif; background-color: rgba(0, 0, 0, 0); color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Rejected ABC&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: arial, helvetica, sans-serif; background-color: rgba(0, 0, 0, 0); color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Pending ABC&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl65" height="20" style="padding-right: 4px; padding-left: 4px; border-top: none; border-right: 0 solid black; border-bottom: 0 solid black; border-left: 0 solid black; font-style: inherit; font-family: arial, helvetica, sans-serif; background-color: rgba(0, 0, 0, 0); color: #575757;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Dft&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Example:&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt; &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="168" style="height: 170px; width: 607px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="64"&gt;ID&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none; font-style: inherit;" width="142"&gt;Status&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none; font-style: inherit;" width="111"&gt;Create_Date&lt;/TD&gt;&lt;TD class="xl67" style="border-left: none; font-style: inherit;" width="117"&gt;Update_Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl68" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; font-style: inherit;" width="142"&gt;Act&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none; font-style: inherit;"&gt;9/7/2016 4:40:56 AM&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none; font-style: inherit;"&gt;10/6/2016 4:04:03 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl68" height="26" style="border-top: none; font-style: inherit;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; font-style: inherit;" width="142"&gt;pending xyz&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none; font-style: inherit;"&gt;9/7/2016 4:40:56 AM&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none; font-style: inherit;"&gt;10/6/2016 4:04:03 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl68" height="20" style="border-top: none; font-style: inherit;" width="64"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; font-style: inherit;" width="142"&gt;Dft&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none; font-style: inherit;"&gt;9/7/2016 4:40:56 AM&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none; font-style: inherit;"&gt;10/6/2016 4:03:05 AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="20" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Rejected XYZ&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;9/7/2016 4:40:56 AM&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;10/6/2016 4:05:03 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;In the above data, for ID "1" i need to show the record below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Required&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt; Output:&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="461"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD align="right" class="xl66" height="20" width="86"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: none;" width="102"&gt;Rejected XYZ&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: none;" width="129"&gt;9/7/2016 4:40:56 AM&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-left: none;" width="144"&gt;10/6/2016 4:05:03 AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The conditions to filter the data is &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- Consider the maximum Update Date Value&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;- Still we are getting more no. of records for the same ID then based on the Priority Status we need to show the appropriate status value for the ID&amp;nbsp; then we will get only one record for the ID with latest update date and latest Status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Attached a sample data and follows by the desired output. Please let me know for more clarification on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224996#M865557</guid>
      <dc:creator>ashok1203</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Report on Max date Vs Status/Priority Status</title>
      <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224997#M865558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys, Can any help me on this. &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;I would appreciate if you guys can spend some time on this to Provide your views.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 17:01:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224997#M865558</guid>
      <dc:creator>ashok1203</dc:creator>
      <dc:date>2016-12-22T17:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Report on Max date Vs Status/Priority Status</title>
      <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224998#M865559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14824300425105749 jive_text_macro" jivemacro_uid="_14824300425105749"&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD &lt;/P&gt;
&lt;P&gt;&amp;nbsp; ID, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Status, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Create_Date, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Update_Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Ord(Left(Status,1)) as TEMPID&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;Report.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FirstSortedValue(Distinct Status,-Update_Date+TEMPID/100000) as Status, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; FirstSortedValue(Create_Date,-Update_Date+TEMPID/100000) as Create_Date, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; FirstSortedValue(Update_Date,-Update_Date+TEMPID/100000) as Update_Date&lt;/P&gt;
&lt;P&gt;Resident Data&lt;/P&gt;
&lt;P&gt;Group By ID;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Data;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 18:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224998#M865559</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-22T18:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Report on Max date Vs Status/Priority Status</title>
      <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224999#M865560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or based on your priority...&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14824303690769055 jive_text_macro" jivemacro_uid="_14824303690769055" modifiedtitle="true"&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Data:&lt;/P&gt;
&lt;P&gt;LOAD&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Status,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Create_Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Update_Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Pick(Match(Upper(Status),'ACT','REJECTED XYZ','PENDING XYZ','REJECTED ABC','PENDING ABC','DFT'),1,2,3,4,5,6) as TEMPID&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;Report.xlsx&lt;/P&gt;
&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;Load&lt;/P&gt;
&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FirstSortedValue(Distinct Status,-Update_Date+TEMPID/100000) as Status,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FirstSortedValue(Create_Date,-Update_Date+TEMPID/100000) as Create_Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; FirstSortedValue(Update_Date,-Update_Date+TEMPID/100000) as Update_Date&lt;/P&gt;
&lt;P&gt;Resident Data&lt;/P&gt;
&lt;P&gt;Group By ID;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop Table Data;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 18:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1224999#M865560</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-12-22T18:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Report on Max date Vs Status/Priority Status</title>
      <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1225000#M865561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This script will to the trick :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mapping_Priority:&lt;/P&gt;&lt;P&gt;MAPPING LOAD &lt;/P&gt;&lt;P&gt;capitalize(Status) as Status,&lt;/P&gt;&lt;P&gt;Priority;&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Status, Priority&lt;/P&gt;&lt;P&gt;Act, 1&lt;/P&gt;&lt;P&gt;Rejected XYZ, 2&lt;/P&gt;&lt;P&gt;Pending XYZ, 3&lt;/P&gt;&lt;P&gt;Rejected ABC, 4&lt;/P&gt;&lt;P&gt;Pending ABC, 5&lt;/P&gt;&lt;P&gt;Dft, 6&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Update:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID&amp;amp;'/'&amp;amp;max(Update_Date) as ID_MaxUpDate&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;group by ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; capitalize(Status) as Status, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(Update_Date) as UpDateNum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update_Date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; applymap('Mapping_Priority',capitalize(Status),null()) as Status_Priority&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;C&gt;&lt;/C&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;where exists(ID_MaxUpDate,ID&amp;amp;'/'&amp;amp;Update_Date);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop table Temp_Update;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp_Update2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID&amp;amp;'/'&amp;amp;UpDateNum&amp;amp;'/'&amp;amp;min(Status_Priority) as ID_MaxUpDate_MinStatus&lt;/P&gt;&lt;P&gt;resident Temp&lt;/P&gt;&lt;P&gt;group by ID, UpDateNum ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FinalTable:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update_Date&lt;/P&gt;&lt;P&gt;resident Temp&lt;/P&gt;&lt;P&gt;where exists(ID_MaxUpDate_MinStatus,ID&amp;amp;'/'&amp;amp;UpDateNum&amp;amp;'/'&amp;amp;Status_Priority);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drop tables Temp,Temp_Update2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Dec 2016 18:16:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1225000#M865561</guid>
      <dc:creator>thomaslg_wq</dc:creator>
      <dc:date>2016-12-22T18:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Report on Max date Vs Status/Priority Status</title>
      <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1225001#M865562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ashokkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer the below script which will generate desired result using JOIN:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report:&lt;/P&gt;&lt;P&gt;LOAD ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Status,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Match(UPPER(Status),'ACT', 'REJECTED XYZ', 'PENDING XYZ', 'REJECTED ABC', 'PENDING ABC', 'DFT') AS Position, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Create_Date, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Update_Date&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;Report.xlsx&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Find the Max. Update Date for indivial IDs&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;LOAD ID AS ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(TIMESTAMP(Update_Date)) AS Update_Date&lt;/P&gt;&lt;P&gt;RESIDENT Report&lt;/P&gt;&lt;P&gt;GROUP BY ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//If we get multiple rows for the same Update Date then we need to take the Priority of the Status.&lt;/P&gt;&lt;P&gt;INNER JOIN&lt;/P&gt;&lt;P&gt;LOAD ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MIN(Position) AS Position&lt;/P&gt;&lt;P&gt;RESIDENT Report&lt;/P&gt;&lt;P&gt;GROUP BY ID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Rahul !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Dec 2016 18:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1225001#M865562</guid>
      <dc:creator>rahulpawarb</dc:creator>
      <dc:date>2016-12-24T18:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Report on Max date Vs Status/Priority Status</title>
      <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1225002#M865563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 12:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1225002#M865563</guid>
      <dc:creator>ashok1203</dc:creator>
      <dc:date>2017-01-10T12:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Report on Max date Vs Status/Priority Status</title>
      <link>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1225003#M865564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2017 12:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-on-Max-date-Vs-Status-Priority-Status/m-p/1225003#M865564</guid>
      <dc:creator>ashok1203</dc:creator>
      <dc:date>2017-01-10T12:35:37Z</dc:date>
    </item>
  </channel>
</rss>

