<?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: Show Minimum Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643549#M1084846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stock_Lot is not a number so it may be better to check with something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if([Stock]&amp;gt;0 and &lt;STRONG&gt;len(trim(Stock_Lot))&lt;/STRONG&gt;,min({$&amp;lt;Catalog_number=&amp;gt;}Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This will not work if Stock and Stock_Lot are ambiguous in the context of your calculation, as in your example when using only dimension Catalo number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Why not just try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=min(Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=min(if( len(trim(Stock_Lot)), Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;resp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=min({&amp;lt;Stock_Lot = {"*"}&amp;gt;} Date)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jun 2014 13:44:14 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2014-06-08T13:44:14Z</dc:date>
    <item>
      <title>Show Minimum Date</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643548#M1084845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have a table that shows lots and dates. i wish to present the earliest date a product entered the system.&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="width: 683px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="109"&gt;Catalog number&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Stock_Lot&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;Date1&lt;/TD&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;Date2&lt;/TH&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Stock&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="84"&gt;Orders&lt;/TD&gt;&lt;TD class="xl64" style="border-left: none;" width="98"&gt;Forecast&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;123456&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;G0121761&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;19/02/2014&lt;/TD&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;19/02/2014&lt;/TH&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;2120&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;9769.965&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;123456&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;G0122446&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;02/04/2014&lt;/TD&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;02/04/2014&lt;/TH&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;5565&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;9769.965&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt;123456&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;G0122457&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;02/04/2014&lt;/TD&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;02/04/2014&lt;/TH&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;265&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;TD class="xl64" style="border-top: none; border-left: none;"&gt;9769.965&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="19" style="border-top: none;"&gt;123456&lt;/TD&gt;&lt;TD class="xl64" 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;TH style="color: #ffffff; background-color: #6690bc; text-align: center;"&gt;-&lt;/TH&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;0&lt;/TD&gt;&lt;TD class="xl69" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;9769.965&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;it's a pivot table and the problem is, that when it's closed i want to show the minimum date of a catalog number in the stock (in that case 19/02/2014)&lt;/P&gt;&lt;P&gt;the orders and the forecast don't have lot number, but still i get "-" as min date when i ask to calculate minimal date when there's lot and stock value. =if([Stock]&amp;gt;0 and Stock_Lot&amp;gt;0,min({$&amp;lt;Catalog_number=&amp;gt;}Date))&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="width: 491px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" style="color: #575757; text-align: center; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="98"&gt;Catalog number&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="98"&gt;Date2&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="98"&gt;Stock&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="99"&gt;Orders&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;" width="98"&gt;Forecast&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;123456&lt;/TD&gt;&lt;TD class="xl65" style="border-top: medium none; border-left: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;7950&lt;/TD&gt;&lt;TD class="xl66" style="border-top: medium none; border-left: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;70&lt;/TD&gt;&lt;TD class="xl64" style="border-top: medium none; border-left: medium none; color: #575757; text-align: left; background-color: transparent; font-family: arial,helvetica,sans-serif; vertical-align: baseline;"&gt;&lt;P&gt;9769.96&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i present the first date in the table?&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;avner&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 13:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643548#M1084845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-08T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Show Minimum Date</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643549#M1084846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stock_Lot is not a number so it may be better to check with something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=if([Stock]&amp;gt;0 and &lt;STRONG&gt;len(trim(Stock_Lot))&lt;/STRONG&gt;,min({$&amp;lt;Catalog_number=&amp;gt;}Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This will not work if Stock and Stock_Lot are ambiguous in the context of your calculation, as in your example when using only dimension Catalo number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Why not just try&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=min(Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=min(if( len(trim(Stock_Lot)), Date))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;resp.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=min({&amp;lt;Stock_Lot = {"*"}&amp;gt;} Date)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 13:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643549#M1084846</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-06-08T13:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Show Minimum Date</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643550#M1084847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a temperary field TempDate2 using any of the 2 methods described below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 1 :&lt;/P&gt;&lt;P&gt;Subfield(Date2,'/',3) &amp;amp; Subfield(Date2,'/',2) &amp;amp; Subfield(Date2,'/',1) AS TempDate2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method 2 :&lt;/P&gt;&lt;P&gt;Year(Date2) &amp;amp; Num(Month(Date2)) &amp;amp; Day(Date2) AS TempDate2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use the below expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Only({&amp;lt;TempDate2={$(=MinString(TempDate2)),[Stock]={"&amp;gt;0"},Stock_Lot={"&amp;gt;0"}}&amp;gt;} Date2)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jun 2014 18:48:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643550#M1084847</guid>
      <dc:creator />
      <dc:date>2014-06-08T18:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: Show Minimum Date</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643551#M1084848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tanks swuehl,&lt;/P&gt;&lt;P&gt;this sentence seems to work just fine&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=min({&amp;lt;Stock_Lot = {"*"}&amp;gt;} Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;all the best&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Jun 2014 04:58:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Minimum-Date/m-p/643551#M1084848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-06-09T04:58:53Z</dc:date>
    </item>
  </channel>
</rss>

