<?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: Latest\Earliest Value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986264#M649617</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be look at this for an example: &lt;A href="https://community.qlik.com/docs/DOC-9044"&gt;Value Associated with Min/Max Value of Another Field (Front End Solution)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Sep 2015 13:28:47 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-09-20T13:28:47Z</dc:date>
    <item>
      <title>Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986262#M649614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am new in Qlik.&lt;/P&gt;&lt;P&gt;I have asked this question in the past but now I created an example for my data ( I am working with SQL DB but I hope this example will do).&lt;/P&gt;&lt;P&gt;I wish to show, calculate, find the &lt;STRONG&gt;earliest&lt;/STRONG&gt; and the &lt;STRONG&gt;latest&lt;/STRONG&gt; value (by date) from my Data Base. (See text Box in red)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not the Max or Min value!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have searched for the formula in the forum but with no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2015 09:22:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986262#M649614</guid>
      <dc:creator />
      <dc:date>2015-09-20T09:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986263#M649615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW - in my real DB the Date field is Day\Month\Year field.&lt;/P&gt;&lt;P&gt;And the SUM expression is an aggregation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2015 10:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986263#M649615</guid>
      <dc:creator />
      <dc:date>2015-09-20T10:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986264#M649617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be look at this for an example: &lt;A href="https://community.qlik.com/docs/DOC-9044"&gt;Value Associated with Min/Max Value of Another Field (Front End Solution)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2015 13:28:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986264#M649617</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-20T13:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986265#M649618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For you example, are you looking for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="99449" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/99449_Capture.PNG" style="max-width: 620px; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for Max Date Value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For Quantity 1: &lt;STRONG&gt;='Qunatity1 on ' &amp;amp; FirstSortedValue(Date, -Date) &amp;amp; ': ' &amp;amp; FirstSortedValue(Qty1, -Date)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;For Quantity 2: &lt;STRONG&gt;='Qunatity2 on ' &amp;amp; FirstSortedValue(Date, -Date) &amp;amp; ': ' &amp;amp; FirstSortedValue(Qty2, -Date)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Expression for Min Date Value:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For Quantity 1: &lt;STRONG&gt;='Qunatity1 on ' &amp;amp; FirstSortedValue(Date, Date) &amp;amp; ': ' &amp;amp; FirstSortedValue(Qty1, Date)&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;For Quantity 2: &lt;STRONG&gt;='Qunatity2 on ' &amp;amp; FirstSortedValue(Date, Date) &amp;amp; ': ' &amp;amp; FirstSortedValue(Qty2, Date)&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not what you are looking for, can you let us know what you want. Unfortunately, I am working with personal edition of QlikView and can't open the qvw you have shared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Sep 2015 14:26:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986265#M649618</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-20T14:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986266#M649619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;Thank you for your reply but this is not what I am looking for.&lt;/P&gt;&lt;P&gt;Q1 and Q2 are only an example to the fact that in my real DB i have aggregated qty.&lt;/P&gt;&lt;P&gt;I am looking for an expression which display the latest date value from the selected time period. &lt;/P&gt;&lt;P&gt;It should be simple. &lt;/P&gt;&lt;P&gt;If I pick the Jan and Feb I would like to see the qty value of the last day in Feb.&lt;/P&gt;&lt;P&gt;If I pick the year 2014 I would like to see the qty value of the last day of the year.&lt;/P&gt;&lt;P&gt;If I pick from&amp;nbsp; 16.11.14 to 13.06.15 I would like to see the qty value of the date 13.06.15&lt;/P&gt;&lt;P&gt;If I pick 4 dates&amp;nbsp; the first of month of the first quarter of 2015 (1.1.15,&amp;nbsp; 1.2.15,&amp;nbsp; 1.3.15,&amp;nbsp; 1.4.15) I would like to see the qty value of the 1.4.15.&lt;/P&gt;&lt;P&gt;In my data there is a qty value for each day (input) and my qty value is an aggregated expression since the user can select the qty value of&amp;nbsp; s single container, or few containers from one city or few containers from few cities from a certain country and Set.&amp;nbsp; The &lt;SPAN style="font-size: 13.3333px;"&gt;aggregated expression exist and works fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In addition , when I pick a time period (using my day and month and year list boxes) I see the relevant qty on a line chart. I just need an extra text box to show me the first and last input qty value from the time period I selected (The final goal is to use the first qty value minus the last qty value and to calculate how much was "lost"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I am clear now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nir &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 06:54:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986266#M649619</guid>
      <dc:creator />
      <dc:date>2015-09-21T06:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986267#M649620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your expression is correct in text box&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Date={'$(=Max(Date))'}&amp;gt;} Qty1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You just need to convert your Date from Text to Proper date format, so that your expression will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Convert your date as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(date#(Date,'DD.MM.YY'),'DD/MM/YYYY') as Date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:12:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986267#M649620</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-09-21T07:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986268#M649621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much Kush - It worked.&lt;/P&gt;&lt;P&gt;One more silly problem, in my text box , when I write:&lt;/P&gt;&lt;P&gt;=Sum({&amp;lt;Date={'$(=MIn(Date))'}&amp;gt;} Qty1+Qty2)&amp;nbsp; -&amp;nbsp; Sum({&amp;lt;Date={'$(=Max(Date))'}&amp;gt;} Qty1+Qty2)&amp;nbsp;&amp;nbsp;&amp;nbsp; - - - - -&amp;nbsp;&amp;nbsp; It Good.&lt;/P&gt;&lt;P&gt;But when I add a syntax before: &lt;/P&gt;&lt;P&gt; = 'Lost qty = ' &amp;amp; Sum({&amp;lt;Date={'$(=MIn(Date))'}&amp;gt;} Qty1+Qty2)&amp;nbsp; -&amp;nbsp; Sum({&amp;lt;Date={'$(=Max(Date))'}&amp;gt;} Qty1+Qty2)&lt;/P&gt;&lt;P&gt;It fail , result a dash ( - ) sign.&lt;/P&gt;&lt;P&gt;BTW , when I write only :&lt;/P&gt;&lt;P&gt;='Latest Value = ' &amp;amp; Sum({&amp;lt;Date={'$(=Max(Date))'}&amp;gt;} Qty1+Qty2)&amp;nbsp;&amp;nbsp;&amp;nbsp; It is OK.&lt;/P&gt;&lt;P&gt;Nir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986268#M649621</guid>
      <dc:creator />
      <dc:date>2015-09-21T07:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986269#M649622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give this a try:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;&lt;STRONG&gt;= 'Lost qty = ' &amp;amp; &lt;SPAN style="color: #ff0000;"&gt;(&lt;/SPAN&gt;Sum({&amp;lt;Date={'$(=MIn(Date))'}&amp;gt;} Qty1+Qty2)&amp;nbsp; -&amp;nbsp; Sum({&amp;lt;Date={'$(=Max(Date))'}&amp;gt;} Qty1+Qty2)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986269#M649622</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-21T07:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986270#M649623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986270#M649623</guid>
      <dc:creator />
      <dc:date>2015-09-21T07:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986271#M649624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not a problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you got what you want, I suggest closing this thread by marking the correct answer &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:51:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986271#M649624</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-21T07:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986272#M649625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try&lt;/P&gt;&lt;P&gt;= 'Lost qty = ' &amp;amp;&lt;STRONG&gt;(&lt;/STRONG&gt; Sum({&amp;lt;Date={'$(=MIn(Date))'}&amp;gt;} Qty1+Qty2)&amp;nbsp; -&amp;nbsp; Sum({&amp;lt;Date={'$(=Max(Date))'}&amp;gt;} Qty1+Qty2)&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 07:59:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986272#M649625</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-21T07:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Latest\Earliest Value</title>
      <link>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986273#M649626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A _jive_internal="true" data-avatarid="10593" data-externalid="" data-online="false" data-presence="null" data-userid="198252" data-username="SasiParupudi1" href="https://community.qlik.com/people/SasiParupudi1" style="font-weight: bold; font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; text-decoration: underline; background-color: #f2f2f2;"&gt;Sasidhar Parupu&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:10:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Latest-Earliest-Value/m-p/986273#M649626</guid>
      <dc:creator />
      <dc:date>2015-09-21T08:10:45Z</dc:date>
    </item>
  </channel>
</rss>

