<?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 Display Latest Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222103#M74849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning-&lt;/P&gt;&lt;P&gt;I'm hoping the more experienced QV users can help me with a logic issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with several dimensions and expressions. I'm trying to show the most recent cost for items no matter when they were ordered. The table below shows the key elements (including the date field, which I would remove from the output) that I'd like to have rolled up to one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="margin: auto auto auto 4.55pt; width: 270.85pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" width="361"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P&gt;StockNo&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="55"&gt;&lt;P&gt;Desc&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="86"&gt;&lt;P&gt;EndDate&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="62"&gt;&lt;P&gt;DocCnt&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="94"&gt;&lt;P&gt;UnitPrice&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 1;"&gt;&lt;TD style="padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; padding-top: 0in; mso-border-alt: solid white .5pt; border: white 1pt solid;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="86"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;2010141&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="62"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; background: yellow; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="94"&gt;&lt;P&gt;$2,166.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 2;"&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt; mso-border-left-alt: solid white .5pt;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="86"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;2010112&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="62"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="94"&gt;&lt;P&gt;$2,100.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 3;"&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt; mso-border-left-alt: solid white .5pt;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="86"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;2010004&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="62"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="94"&gt;&lt;P&gt;$2,272.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 4; mso-yfti-lastrow: yes;"&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt; mso-border-left-alt: solid white .5pt;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="86"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;2009310&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="62"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="94"&gt;&lt;P&gt;$1,999.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this logic, I should see a UnitPrice of $2166.00 with a count of 4. Here's what I'm looking to output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="margin: auto auto auto 4.55pt; width: 195pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" width="260"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P&gt;StockNo&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="55"&gt;&lt;P&gt;Desc&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 50pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="67"&gt;&lt;P&gt;DocCnt&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 56pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="75"&gt;&lt;P&gt;UnitPrice&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 1; mso-yfti-lastrow: yes;"&gt;&lt;TD style="padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; padding-top: 0in; mso-border-alt: solid white .5pt; border: white 1pt solid;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 50pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="67"&gt;&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 56pt; padding-right: 5.4pt; background: yellow; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="75"&gt;&lt;P&gt;$2,166.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;I've tried if(END_DATE=max(END_DATE),UNITPRICE) but that doesn't work. How can I do this without doing an IF condition on the END_DATE field? Any ideas on what I can try?&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Dec 2010 22:10:57 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-13T22:10:57Z</dc:date>
    <item>
      <title>Display Latest Data</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222103#M74849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning-&lt;/P&gt;&lt;P&gt;I'm hoping the more experienced QV users can help me with a logic issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a straight table with several dimensions and expressions. I'm trying to show the most recent cost for items no matter when they were ordered. The table below shows the key elements (including the date field, which I would remove from the output) that I'd like to have rolled up to one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="margin: auto auto auto 4.55pt; width: 270.85pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" width="361"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P&gt;StockNo&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="55"&gt;&lt;P&gt;Desc&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="86"&gt;&lt;P&gt;EndDate&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="62"&gt;&lt;P&gt;DocCnt&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="94"&gt;&lt;P&gt;UnitPrice&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 1;"&gt;&lt;TD style="padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; padding-top: 0in; mso-border-alt: solid white .5pt; border: white 1pt solid;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="86"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;2010141&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="62"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; background: yellow; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="94"&gt;&lt;P&gt;$2,166.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 2;"&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt; mso-border-left-alt: solid white .5pt;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="86"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;2010112&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="62"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="94"&gt;&lt;P&gt;$2,100.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 3;"&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt; mso-border-left-alt: solid white .5pt;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="86"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;2010004&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="62"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="94"&gt;&lt;P&gt;$2,272.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 4; mso-yfti-lastrow: yes;"&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: white 1pt solid; padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt; mso-border-left-alt: solid white .5pt;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 64.85pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="86"&gt;&lt;P style="margin: 0in 0in 0pt; text-align: right"&gt;2009310&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 46.65pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="62"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 70.35pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: #f0f0f0; border-right: white 1pt solid; padding-top: 0in; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="94"&gt;&lt;P&gt;$1,999.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this logic, I should see a UnitPrice of $2166.00 with a count of 4. Here's what I'm looking to output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="margin: auto auto auto 4.55pt; width: 195pt; border-collapse: collapse; mso-yfti-tbllook: 1184; mso-padding-alt: 0in 5.4pt 0in 5.4pt;" width="260"&gt;&lt;TBODY&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 0; mso-yfti-firstrow: yes;"&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="64"&gt;&lt;P&gt;StockNo&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="55"&gt;&lt;P&gt;Desc&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 50pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="67"&gt;&lt;P&gt;DocCnt&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding-bottom: 0in; background-color: transparent; padding-left: 5.4pt; width: 56pt; padding-right: 5.4pt; height: 15pt; padding-top: 0in; border: #f0f0f0;" valign="bottom" width="75"&gt;&lt;P&gt;UnitPrice&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15pt; mso-yfti-irow: 1; mso-yfti-lastrow: yes;"&gt;&lt;TD style="padding-bottom: 0in; padding-left: 5.4pt; width: 48pt; padding-right: 5.4pt; background: white; height: 15pt; padding-top: 0in; mso-border-alt: solid white .5pt; border: white 1pt solid;" valign="bottom" width="64"&gt;&lt;P&gt;1021&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 41pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="55"&gt;&lt;P&gt;WIDGIT&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 50pt; padding-right: 5.4pt; background: white; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="67"&gt;&lt;P&gt;4&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-bottom: white 1pt solid; border-left: #f0f0f0; padding-bottom: 0in; padding-left: 5.4pt; width: 56pt; padding-right: 5.4pt; background: yellow; height: 15pt; border-top: white 1pt solid; border-right: white 1pt solid; padding-top: 0in; mso-border-top-alt: solid white .5pt; mso-border-bottom-alt: solid white .5pt; mso-border-right-alt: solid white .5pt;" valign="bottom" width="75"&gt;&lt;P&gt;$2,166.00&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;I've tried if(END_DATE=max(END_DATE),UNITPRICE) but that doesn't work. How can I do this without doing an IF condition on the END_DATE field? Any ideas on what I can try?&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt; mso-layout-grid-align: none;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 22:10:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222103#M74849</guid>
      <dc:creator />
      <dc:date>2010-12-13T22:10:57Z</dc:date>
    </item>
    <item>
      <title>Display Latest Data</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222104#M74850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use function "FirstSortedValue", using Date * -1 as your sorting parameter.&lt;/P&gt;&lt;P&gt;Keep in mind that this is an aggregation funtion. If you need to use the result inside another aggregation function, you'll have to use Advanced Aggregation (function AGGR() ).&lt;/P&gt;&lt;P&gt;If you could pre-calculated the most recent Price in the load script, your expressions could be much simpler...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Dec 2010 22:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222104#M74850</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2010-12-13T22:24:15Z</dc:date>
    </item>
    <item>
      <title>Display Latest Data</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222105#M74851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FirstSortedValue(distinct NETPRICE, END_DATE * -1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works perfectly and exactly what I was looking for. Thanks for the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ps - I'm looking for the Verified Answer option but don't see it in the post. Soon as I find it, I'll verify. Thanks again...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 15:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222105#M74851</guid>
      <dc:creator />
      <dc:date>2010-12-14T15:48:05Z</dc:date>
    </item>
    <item>
      <title>Display Latest Data</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222106#M74852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="jive_text_macro jive_macro_quote" jivemacro="quote"&gt;&lt;BR /&gt;JuanitaR wrote:&lt;BR /&gt;ps - I'm looking for the Verified Answer option but don't see it in the post. Soon as I find it, I'll verify. Thanks again...&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify option was missing because your initial post was submitted as a "discussion" instead of a "question". I changed the type to question - verify is available now.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 16:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222106#M74852</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2010-12-14T16:17:00Z</dc:date>
    </item>
    <item>
      <title>Display Latest Data</title>
      <link>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222107#M74853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it. I'll be sure to post as a question in the future!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Dec 2010 22:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Display-Latest-Data/m-p/222107#M74853</guid>
      <dc:creator />
      <dc:date>2010-12-14T22:08:28Z</dc:date>
    </item>
  </channel>
</rss>

