<?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: Add Months in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434469#M804417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah Meant that only,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My only concern is it should not give 2016 but if months are going beyond the current month then should give the minimum month i.e. for that year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Nov 2017 08:11:24 GMT</pubDate>
    <dc:creator>rahulsingh12</dc:creator>
    <dc:date>2017-11-08T08:11:24Z</dc:date>
    <item>
      <title>Add Months</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434467#M804415</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;Is there a way to restrict addmonths from taking previous month.&lt;/P&gt;&lt;P&gt;E.g: addmonths('01-02-2017',-3) should give '01-01-2017' not &lt;SPAN style="font-size: 13.3333330154419px;"&gt; '01-12-2016'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434467#M804415</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add Months</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434468#M804416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;AddMonths(01-FEB-2017,-3) shouldn't give January 1 2017 OR December 1 2016. It should give November 1 2016. You may want to clarify your goal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 08:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434468#M804416</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-11-08T08:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add Months</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434469#M804417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah Meant that only,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My only concern is it should not give 2016 but if months are going beyond the current month then should give the minimum month i.e. for that year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 08:11:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434469#M804417</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2017-11-08T08:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Add Months</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434470#M804418</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;Is this a restriction you are trying to add for some calculation or mentioned above, it would 01/11/2016?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to make sure it does go back a year wou would need something like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(YEAR(ADDMONTHS(DATE,-3)) &amp;lt;&amp;gt; YEAR(ADDYEARS(DATE,-1)), &lt;SPAN style="font-size: 13.3333px;"&gt;YEAR(ADDMONTHS(DATE,-3)), YEARSTART(DATE))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 08:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434470#M804418</guid>
      <dc:creator>Mark_Little</dc:creator>
      <dc:date>2017-11-08T08:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Add Months</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434471#M804419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;RangeMax(YearStart(YourDate),AddMonths(YourDate,-3)) should do the trick. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 08:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434471#M804419</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-11-08T08:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add Months</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434472#M804420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will never get the min date for the selection here.&lt;/P&gt;&lt;P&gt;I need to get the l3m data here and this will give me max of the date I would need to get the min as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 09:28:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434472#M804420</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2017-11-08T09:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add Months</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434473#M804422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You didn't ask for the minimum. You asked for "Three months ago, unless that's last year, in which case January 1st of this year". &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 09:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434473#M804422</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2017-11-08T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Add Months</title>
      <link>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434474#M804424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Description={'Actual'},MonthYear={"&amp;gt;=$(=vL3MLYMinYear)&amp;lt;=$(=vL3MLYMaxYear)"}&amp;gt;}[Volume(HL)])&lt;/P&gt;&lt;P&gt;where &lt;SPAN style="font-size: 13.3333330154419px;"&gt;vL3MLYMinYear=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;IF(MONTH(DateNew)&amp;lt;=2,DATE(YearStart(AddYears(DATE(DateNew,'DD-MM-YYYY'),-1)),'DD-MM-YYYY'),&lt;/P&gt;&lt;P&gt;IF(MONTH(DateNew)&amp;gt;2,&lt;/P&gt;&lt;P&gt;DATE(RANGEMin(AddYears(DATE(DateNew,'DD-MM-YYYY'),-1),AddYears(AddMonths(DATE(DateNew,'DD-MM-YYYY'),-2),-1)),'DD-MM-YYYY')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vL3MLYMaxYear=&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;DATE(RANGEMax(AddYears(DATE(DateNew,'DD-MM-YYYY'),-1),AddYears(AddMonths(DATE(DateNew,'DD-MM-YYYY'),-2),-1)),'DD-MM-YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;But the some of sales comes as 0 in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Nov 2017 10:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-Months/m-p/1434474#M804424</guid>
      <dc:creator>rahulsingh12</dc:creator>
      <dc:date>2017-11-08T10:08:22Z</dc:date>
    </item>
  </channel>
</rss>

