<?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 Date issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-issue/m-p/1550282#M598276</link>
    <description>&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;I have written under mentioned script in my data load&lt;/P&gt;&lt;P&gt;IF(Num(YEAR(CEN_CL_LOSS_DATE))&amp;amp; num(MONTH(CEN_CL_LOSS_DATE))=Num(YEAR(CEN_CL_INT_DATE))&amp;amp; num(MONTH(CEN_CL_INT_DATE)),'SAME_MONTH',&lt;BR /&gt;IF(DATE(AddMonths(CEN_CL_LOSS_DATE)=DATE(AddMonths(CEN_CL_INT_DATE,-1),'LAST_MONTH'),'OTHER_MONTHS'))AS PERIOD,&lt;/P&gt;&lt;P&gt;But it does give a error message with&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error in expression:AddMonths takes 2-3 parameters"&lt;/P&gt;&lt;P&gt;Kindly help me to solve the issue.&lt;/P&gt;&lt;P&gt;My requirement is&amp;nbsp; if Month &amp;amp; Year of&amp;nbsp; CEN_CL_LOSS_DATE= month &amp;amp; year CEN_CL_LOSS_DATE it should be categarised as same month. If the two fields are not equal by 1 month it should be 'Last Minth' otherwise 'Other Months'&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2019 08:42:47 GMT</pubDate>
    <dc:creator>upaliwije</dc:creator>
    <dc:date>2019-02-28T08:42:47Z</dc:date>
    <item>
      <title>Date issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issue/m-p/1550282#M598276</link>
      <description>&lt;P&gt;Hi Friends&lt;/P&gt;&lt;P&gt;I have written under mentioned script in my data load&lt;/P&gt;&lt;P&gt;IF(Num(YEAR(CEN_CL_LOSS_DATE))&amp;amp; num(MONTH(CEN_CL_LOSS_DATE))=Num(YEAR(CEN_CL_INT_DATE))&amp;amp; num(MONTH(CEN_CL_INT_DATE)),'SAME_MONTH',&lt;BR /&gt;IF(DATE(AddMonths(CEN_CL_LOSS_DATE)=DATE(AddMonths(CEN_CL_INT_DATE,-1),'LAST_MONTH'),'OTHER_MONTHS'))AS PERIOD,&lt;/P&gt;&lt;P&gt;But it does give a error message with&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error in expression:AddMonths takes 2-3 parameters"&lt;/P&gt;&lt;P&gt;Kindly help me to solve the issue.&lt;/P&gt;&lt;P&gt;My requirement is&amp;nbsp; if Month &amp;amp; Year of&amp;nbsp; CEN_CL_LOSS_DATE= month &amp;amp; year CEN_CL_LOSS_DATE it should be categarised as same month. If the two fields are not equal by 1 month it should be 'Last Minth' otherwise 'Other Months'&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 08:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issue/m-p/1550282#M598276</guid>
      <dc:creator>upaliwije</dc:creator>
      <dc:date>2019-02-28T08:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: Date issue</title>
      <link>https://community.qlik.com/t5/QlikView/Date-issue/m-p/1550312#M598277</link>
      <description>&lt;P&gt;I guess the problem lies in this part of the sentence:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IF(Num(YEAR(CEN_CL_LOSS_DATE))&amp;amp; num(MONTH(CEN_CL_LOSS_DATE))=Num(YEAR(CEN_CL_INT_DATE))&amp;amp; num(MONTH(CEN_CL_INT_DATE)),'SAME_MONTH',&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IF(DATE(&lt;STRONG&gt;AddMonths(CEN_CL_LOSS_DATE&lt;FONT color="#FF0000"&gt;, 0&lt;/FONT&gt;)&lt;/STRONG&gt;=DATE(AddMonths(CEN_CL_INT_DATE,-1),'LAST_MONTH'),'OTHER_MONTHS'))AS PERIOD,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/addmonths.htm" target="_blank"&gt;https://help.qlik.com/en-US/qlikview/12.0/Subsystems/Client/Content/Scripting/DateAndTimeFunctions/addmonths.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-issue/m-p/1550312#M598277</guid>
      <dc:creator>MindaugasBacius</dc:creator>
      <dc:date>2019-02-28T09:14:10Z</dc:date>
    </item>
  </channel>
</rss>

