<?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: Getting a Date from Max or Min in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-Date-from-Max-or-Min/m-p/717097#M1051817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using Rank() could help as it assigns a unique (1st) rank to one max or&amp;nbsp; (last rank) to min&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 03:52:44 GMT</pubDate>
    <dc:creator>danieloberbilli</dc:creator>
    <dc:date>2014-10-29T03:52:44Z</dc:date>
    <item>
      <title>Getting a Date from Max or Min</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Date-from-Max-or-Min/m-p/717096#M1051816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I have a line chart for sales and a table where you can see the detail for every sale from a particular sales rep.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;What I need is to get the max and min values (sales) for a specific sales rep with the corresponding date...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I've tried it using the following expressions in a text box:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;MAX&lt;/STRONG&gt;&lt;/SPAN&gt;: &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;MAX&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;DATE (From MAX)&lt;/STRONG&gt;&lt;/SPAN&gt;: &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;FIRSTSORTEDVALUE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;,-&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[Sales Rep]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)),'MM/DD/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;MIN&lt;/STRONG&gt;&lt;/SPAN&gt;: &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;MIN&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;DATE (From MIN)&lt;/STRONG&gt;&lt;/SPAN&gt;: &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;AGGR&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: blue;"&gt;FIRSTSORTEDVALUE&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;Date&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;),&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: maroon;"&gt;[Sales Rep]&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;)),'MM/DD/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 9pt; font-family: Arial, sans-serif; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;IMG alt="Sales.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/69925_Sales.png" style="width: 620px; height: 288px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The expression for &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;DATE&lt;/STRONG&gt;&lt;/SPAN&gt; works well when I have one single value for the &lt;SPAN style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;MAX/MIN&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In the case of MAX, the corresponding date for 60985.12 is 01/28/2010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But, in the case of MIN, that it's 0 for sales rep Amalia Craig, there are multiple dates, and the output shows 12/30/1899.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Do you know if there's any way to show all the possible dates for the MAX/MIN sale?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Please, find QVW attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 03:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Date-from-Max-or-Min/m-p/717096#M1051816</guid>
      <dc:creator>microwin88x</dc:creator>
      <dc:date>2014-10-29T03:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Date from Max or Min</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Date-from-Max-or-Min/m-p/717097#M1051817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe using Rank() could help as it assigns a unique (1st) rank to one max or&amp;nbsp; (last rank) to min&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 03:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Date-from-Max-or-Min/m-p/717097#M1051817</guid>
      <dc:creator>danieloberbilli</dc:creator>
      <dc:date>2014-10-29T03:52:44Z</dc:date>
    </item>
  </channel>
</rss>

