<?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(date) and previous month same date sales in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/max-date-and-previous-month-same-date-sales/m-p/451798#M569027</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;the expression would look like for your max(date) like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {'$(=(max(Date)))'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for the previous:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {'$(=(MakeDate(year(max(Date)),Month(Max(Date))-1,day(max(Date)))))'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps there might be some () missing cause I haven't tested it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Oct 2012 09:04:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-25T09:04:19Z</dc:date>
    <item>
      <title>max(date) and previous month same date sales</title>
      <link>https://community.qlik.com/t5/QlikView/max-date-and-previous-month-same-date-sales/m-p/451797#M569026</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;In my pivot table,i want to display max(date) sales in one column and previous month same date sales in one column.I tried alot,but i am not getting.&lt;/P&gt;&lt;P&gt;how to write the expresion for this two in set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;baru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 08:54:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-date-and-previous-month-same-date-sales/m-p/451797#M569026</guid>
      <dc:creator />
      <dc:date>2012-10-25T08:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: max(date) and previous month same date sales</title>
      <link>https://community.qlik.com/t5/QlikView/max-date-and-previous-month-same-date-sales/m-p/451798#M569027</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;the expression would look like for your max(date) like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {'$(=(max(Date)))'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for the previous:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Date = {'$(=(MakeDate(year(max(Date)),Month(Max(Date))-1,day(max(Date)))))'}&amp;gt;}sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps there might be some () missing cause I haven't tested it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;MT&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 09:04:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/max-date-and-previous-month-same-date-sales/m-p/451798#M569027</guid>
      <dc:creator />
      <dc:date>2012-10-25T09:04:19Z</dc:date>
    </item>
  </channel>
</rss>

