<?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 Get max date from last month variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645217#M236445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The vlastmonth is a variable used to compute total. My question is how to get only the very latest date and its corresponding ie&lt;/P&gt;&lt;P&gt;25/09/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,244.31&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to use the firstsortedvalue(amount,-Date) but returned null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/69080_Capture.PNG" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 12:34:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-10-16T12:34:46Z</dc:date>
    <item>
      <title>Get max date from last month variable</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645217#M236445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The vlastmonth is a variable used to compute total. My question is how to get only the very latest date and its corresponding ie&lt;/P&gt;&lt;P&gt;25/09/2014&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5,244.31&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried to use the firstsortedvalue(amount,-Date) but returned null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image" src="https://community.qlik.com/legacyfs/online/69080_Capture.PNG" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:34:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645217#M236445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T12:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from last month variable</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645218#M236446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;firstsortedvalue(Distinct amount,-Date)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645218#M236446</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-10-16T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from last month variable</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645219#M236447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can use the below to get sales on latest date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date={'(=$(Max(Date)))'}&amp;gt;}amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:39:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645219#M236447</guid>
      <dc:creator />
      <dc:date>2014-10-16T12:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from last month variable</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645220#M236448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the vLastMonth the last transactional date is 25/09/2014 not the the 30/09/2014 as we all know. The requirement is to display the amount for the last transactional date.That is where my challenge layst.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manish and Shruthi I didn't get the desired results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how can I get the max date from the vlastMonth variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645220#M236448</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T12:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from last month variable</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645221#M236449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How have you defined vLastMonth? Should be able to just Max() on that to give you the date then&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645221#M236449</guid>
      <dc:creator />
      <dc:date>2014-10-16T12:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from last month variable</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645222#M236450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;vLastMonth=Month(date(AddMonths(max(Date), -1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps it's the date format?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 12:57:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645222#M236450</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-16T12:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get max date from last month variable</title>
      <link>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645223#M236451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you mean by that you&amp;nbsp; want the maximum date&amp;nbsp; and its corresponding amount no matter what the active selection is you could create a variable&amp;nbsp; for example vDateMax et put the following in it &lt;/P&gt;&lt;P&gt;=date(max({1}Date))&amp;nbsp; &lt;/P&gt;&lt;P&gt; this will give the latest date no matter the selection and to get its corresponding amount &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=only({&amp;lt;Date={"$(vDateMax)"}&amp;gt;}montant)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; other wise to get the latest date and its amount , taking into account selections, you need to put =date(max(Date))&amp;nbsp; in&amp;nbsp; &lt;/P&gt;&lt;P&gt;vDateMax .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See if it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 13:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Get-max-date-from-last-month-variable/m-p/645223#M236451</guid>
      <dc:creator />
      <dc:date>2014-10-16T13:18:44Z</dc:date>
    </item>
  </channel>
</rss>

