<?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 Period - 1 Not Working in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439646#M459045</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;what do you want exatly when you say -1 ? day -1, month -1, year -1 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2017 15:46:09 GMT</pubDate>
    <dc:creator>YoussefBelloum</dc:creator>
    <dc:date>2017-11-08T15:46:09Z</dc:date>
    <item>
      <title>Max Period - 1 Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439645#M459044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have periods in my data set formatted as 11/1/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The max period calculation is working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERIOD = {"$(=Max(PERIOD))"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the previous period calculation is not&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERIOD = {"$(=Max(PERIOD)-1)"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any pointers here? &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;- dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:40:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439645#M459044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T15:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Max Period - 1 Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439646#M459045</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;what do you want exatly when you say -1 ? day -1, month -1, year -1 ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439646#M459045</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2017-11-08T15:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Max Period - 1 Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439647#M459046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the periods are set up in a monthly fashion ... i.e&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1/1/2017&lt;/P&gt;&lt;P&gt;2/1/2017&lt;/P&gt;&lt;P&gt;3/1/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to sum({&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;PERIOD = {"$(=Max(PERIOD)-1)"}&amp;gt;} AMT)) ... so if the max period is 3/1/2017 I want to return AMT for 2/1/2017&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:58:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439647#M459046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Max Period - 1 Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439648#M459047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, essentially you are going back a month? May be this&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; font-size: 13px;"&gt;PERIOD = {"$(=AddMonths(Max(PERIOD), -1))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 16:04:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439648#M459047</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-08T16:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Max Period - 1 Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439649#M459048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you do math operation on a date value the resultant will be an Integer value, so there is a data type mismatch&lt;/P&gt;&lt;P&gt;to avoid that you must specify your date format for the field PERIOD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example&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; font-size: 12px;"&gt;$(=DATE(Max(PERIOD)-1)))&amp;nbsp; or&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;$(=DATE(Max(PERIOD)-1,'DD/M/YYYY'))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 16:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439649#M459048</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-11-08T16:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Max Period - 1 Not Working</title>
      <link>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439650#M459049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Works perfect thank you !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 18:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Max-Period-1-Not-Working/m-p/1439650#M459049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-08T18:32:34Z</dc:date>
    </item>
  </channel>
</rss>

