<?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: Max Value based on a date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799124#M664100</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;I would you recommend you to generate two field (for Process A &amp;amp; B score) which already contains the scores based on the latest date. You can do it as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temptabale:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Process A score]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Process_A_score_latest&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800080;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Process B score]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Process_B_score_latest&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;from&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\\Your&lt;A href="https://community.qlik.com/"&gt;.qvd&lt;/A&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;by&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The generated fields you can join to the relevant table.&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Feb 2015 09:57:18 GMT</pubDate>
    <dc:creator>maternmi</dc:creator>
    <dc:date>2015-02-13T09:57:18Z</dc:date>
    <item>
      <title>Max Value based on a date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799120#M664096</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;I know the answer to this is simple and I am just having a brain-fart. I have a table with site names, dates, and scores. For each site name, I need to pull the scores based on the latest date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="300" style="border: 1px solid #000000; width: 486px; height: 267px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Site Name&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Date&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Process&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Process A Score&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Process B Score&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Boston&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/10/15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Boston&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9/8/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11/11/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8/1/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A,B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2/2/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Memphis&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;11/1/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;New York&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/6/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;New York&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8/5/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A,B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Philadelphia&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1/1/15&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Philadelphia&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;10/10/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Philadelphia&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4/1/14&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A,B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a straight table that shows the most recent score based upon the process. In the example below, last time we went to Philadelphia and looked at Process A was 1/1/15 and the score was 4. Last time we went to Philadelphia and looked at Process B was 10/10/14 and the score was 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="150" style="border: 1px solid #000000; width: 314px; height: 124px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;Site Name&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Process A Score&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Process B Score&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Boston&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Chicago&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Memphis&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;New York&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Philadelphia&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tired the FirstSortedValue() function but end up getting null values for certain sites and I cannot figure out why. It's driving me crazy!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Drew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 21:12:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799120#M664096</guid>
      <dc:creator />
      <dc:date>2015-02-12T21:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on a date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799121#M664097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know how you are planning to handle Process A,B case but try adding set analysis to your formula. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For A &lt;/P&gt;&lt;P&gt;FirstSortedValue({$ &amp;lt;Process = {'A'}&amp;gt; }[Process A Score],-Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For B &lt;/P&gt;&lt;P&gt;FirstSortedValue({$ &amp;lt;Process = {'B'}&amp;gt; }[Process B Score],-Date)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 22:02:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799121#M664097</guid>
      <dc:creator />
      <dc:date>2015-02-12T22:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on a date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799122#M664098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Drew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use Erdal's solution you need to load your table in such a format where 'Process' field doesn't have any comma separated values. Add additional records for second 'Process' values. such like shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="300" style="width: 300pt; border-spacing: 0px;" width="399"&gt;&lt;TBODY&gt;&lt;TR style="height: 26.25pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl65" height="35" style="height: 26.25pt; width: 77pt;" width="102"&gt;Site Name&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 79pt;" width="105"&gt;Date&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 48pt;" width="64"&gt;Process&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 48pt;" width="64"&gt;Process A Score&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none; width: 48pt;" width="64"&gt;Process B Score&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Boston&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;1/10/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Boston&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;9/8/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Chicago&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;11/11/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Chicago&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;8/1/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt;" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Chicago&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;8/1/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Chicago&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;2/2/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Memphis&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;11/1/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;New York&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;12/6/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;New York&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;8/5/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;New York&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;8/5/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Philadelphia&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;1/1/2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Philadelphia&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;10/10/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt; font-weight: inherit; font-style: inherit;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Philadelphia&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;4/1/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;A&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt;" width="64"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.75pt;"&gt;&lt;TD class="xl66" height="21" style="height: 15.75pt; border-top: none; width: 77pt; font-style: inherit;" width="102"&gt;Philadelphia&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none; width: 79pt; font-style: inherit;" width="105"&gt;4/1/2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;B&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt;" width="64"&gt; &lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none; width: 48pt; font-style: inherit;" width="64"&gt;3&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do concatenate load of the same table two times like:&lt;/P&gt;&lt;P&gt;Load SiteName, Date, Left(Process,1), [Process A Score], if(index(Process,','),null(),&lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Process B Score]) as &lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Process B Score]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;from &amp;lt;TableName&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;concatenate&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;SiteName, Date, Right(Process,1), '' &lt;SPAN style="font-size: 13.3333330154419px;"&gt;as &lt;SPAN style="font-size: 13.3333330154419px;"&gt;[Process A Score], &lt;SPAN style="font-size: 13.3333330154419px;"&gt; [Process B Score], &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;from &amp;lt;TableName&amp;gt; where index(Process,',')&amp;gt;=1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other methods also to create above table like load A process once and then load B process etc. (Depends upon your requirement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One you get this table structure you can use Erdal's formula's in expression to get the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Anosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 22:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799122#M664098</guid>
      <dc:creator />
      <dc:date>2015-02-12T22:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on a date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799123#M664099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the solution attached. You will get null only for Memphis because you don.t have any Process B score&amp;nbsp; for Memphis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FirstSortedValue({ &amp;lt;Process = {'A*'}&amp;gt; }[Process A Score],-DateA)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 22:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799123#M664099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-12T22:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on a date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799124#M664100</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;I would you recommend you to generate two field (for Process A &amp;amp; B score) which already contains the scores based on the latest date. You can do it as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temptabale:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Process A score]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Process_A_score_latest&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #800080;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;([&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Process B score]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,-Date&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;as&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;Process_B_score_latest&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;from&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;\\Your&lt;A href="https://community.qlik.com/"&gt;.qvd&lt;/A&gt;&lt;SPAN style="font-size: 8pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;group&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;by&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;ID&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The generated fields you can join to the relevant table.&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;BR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 09:57:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799124#M664100</guid>
      <dc:creator>maternmi</dc:creator>
      <dc:date>2015-02-13T09:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on a date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799125#M664101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael. Your suggestion was where my brain was going. I am going to test it today and see how it works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 15:46:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799125#M664101</guid>
      <dc:creator />
      <dc:date>2015-02-13T15:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on a date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799126#M664102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Drew,&lt;/P&gt;&lt;P&gt;If you want to keep the final structure with site having process score in your datamodel and link it further with other tables, than it is a good idea to do it in datamodel otherwise i would suggest you to either go with Qlikranjan or my explained solution (depends upon the table structure you would like to keep in datamodel). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should incorporate business logic in data load script only when&lt;/P&gt;&lt;P&gt;1. You would like to keep the output (eg Aggregated table)&amp;nbsp; in datamodel and don't want the source data&lt;/P&gt;&lt;P&gt;2. There is no possible way to achieve it in UI other than doing it in load script;&lt;/P&gt;&lt;P&gt;if you keep only the aggregated table in datamodel, you would be eliminating the future need of source data.&lt;/P&gt;&lt;P&gt;if you keep both source and aggregated table in datamodel, you would be replicating the data in datamodel, which would increase the load time, size of app and memory footprint on server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help,&lt;/P&gt;&lt;P&gt;Anosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 18:15:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799126#M664102</guid>
      <dc:creator />
      <dc:date>2015-02-13T18:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max Value based on a date</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799127#M664103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using your solution, I still get null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="115" style="width: 304px; height: 116px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="63"&gt;Site&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="62"&gt;Process A&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="61"&gt;Process B&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="63"&gt;Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Philadelphia&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;4&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1/1/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Philadelphia&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;10/10/2014&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Philadelphia&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;4/1/2014&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the above, I would expect to get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philadelphia 4 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I get the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="72" style="width: 468px; height: 72px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="75"&gt;Site&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="148"&gt;Process A Score (Latest)&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="147"&gt;Process B Score (Latest)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;Philadelphia&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Any idea what causes the null values?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2015 18:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Value-based-on-a-date/m-p/799127#M664103</guid>
      <dc:creator />
      <dc:date>2015-02-16T18:10:02Z</dc:date>
    </item>
  </channel>
</rss>

