<?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: Addmonth function with field name in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684738#M593693</link>
    <description>&lt;P&gt;Did you add this line:&lt;/P&gt;&lt;PRE&gt;AddMonths(due_date, 1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;?&lt;/P&gt;</description>
    <pubDate>Sun, 15 Mar 2020 07:22:57 GMT</pubDate>
    <dc:creator>HeshamKhja</dc:creator>
    <dc:date>2020-03-15T07:22:57Z</dc:date>
    <item>
      <title>Addmonth function with field name</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684090#M593688</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Batch&lt;/SPAN&gt;&lt;SPAN&gt;='A','18'&amp;amp;'/'&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;Month&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;'/'&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;Year&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;Batch&lt;/SPAN&gt;&lt;SPAN&gt;='B','3'&amp;amp;'/'&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;Month&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;'/'&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;Year&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;)) as due_date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;now I want when I select a value like 18-12-2019 under the field name due date then I want output as 18-01-2020&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please tell me for this how to use add month&amp;nbsp; function with a field name&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2020 10:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684090#M593688</guid>
      <dc:creator>sakshikaul</dc:creator>
      <dc:date>2020-03-12T10:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonth function with field name</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684104#M593689</link>
      <description>&lt;P&gt;I think you should create due_date like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Batch = 'A',
    MakeDate(Year, Month, 18),
If(Batch = 'B',
    MakeDate(Year, Month, 3))) as due_date&lt;/LI-CODE&gt;&lt;P&gt;If Month is not a number, but text, you can try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If(Batch = 'A',
    MakeDate(Year, Month(Date#(Month, 'MMM')), 18),
If(Batch = 'B',
    MakeDate(Year, Month(Date#(Month, 'MMM')), 3))) as due_date&lt;/LI-CODE&gt;&lt;P&gt;and then to add 1 month, you can just do this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;AddMonths(due_date, 1)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 12 Mar 2020 11:33:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684104#M593689</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-12T11:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonth function with field name</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684422#M593690</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Its not working right for batch 'B'&lt;/P&gt;&lt;P&gt;Please check the attached screenshot&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 10:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684422#M593690</guid>
      <dc:creator>sakshikaul</dc:creator>
      <dc:date>2020-03-13T10:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonth function with field name</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684441#M593691</link>
      <description>&lt;P&gt;Just by looking at the screenshot, I have no idea what you mean when you say it isn't working? Can you share your qvw and explain what exactly isn't working?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Mar 2020 11:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684441#M593691</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-13T11:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonth function with field name</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684698#M593692</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I have attached QVW with sample data. I am having following issue.&lt;/P&gt;&lt;P&gt;When I select batch 'B' following functionality is not working for batch 'B"&lt;/P&gt;&lt;PRE&gt;If(Batch = 'A',
    MakeDate(Year, Month, 18),
If(Batch = 'B',
    MakeDate(Year, Month, 3))) as due_date&lt;/PRE&gt;&lt;P&gt;But its working fine for when I am selecting batch 'A'&lt;/P&gt;&lt;P&gt;for eg-&lt;/P&gt;&lt;P&gt;I want when i select batch 'B' if credit note date is 16-12-2019 ie greater than date 15th jan then packing slip date should be shown as 3 JAN 2020 and due date&amp;nbsp;@wprc should be 3 jan 2020 +30 = 3 feb 2020&lt;/P&gt;&lt;P&gt;simillarly if batch ='A' ,credit note date is 2-12-2019 ie less than 15 Jan then Packing slip should be 18 dec 2019 and due date&amp;nbsp;@wprc should be 18 jan 2020&amp;nbsp;&lt;/P&gt;&lt;P&gt;so,above code is&amp;nbsp; working fine when I select&amp;nbsp; batch 'A' but not giving correct output for when I select batch='B"&lt;/P&gt;&lt;P&gt;Please check&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;sakshi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Mar 2020 15:42:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684698#M593692</guid>
      <dc:creator>sakshikaul</dc:creator>
      <dc:date>2020-03-14T15:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonth function with field name</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684738#M593693</link>
      <description>&lt;P&gt;Did you add this line:&lt;/P&gt;&lt;PRE&gt;AddMonths(due_date, 1)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 07:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684738#M593693</guid>
      <dc:creator>HeshamKhja</dc:creator>
      <dc:date>2020-03-15T07:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonth function with field name</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684924#M593694</link>
      <description>&lt;P&gt;Is this resolved now? You marked a solution to this post which is why I ask&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 10:51:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684924#M593694</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-16T10:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Addmonth function with field name</title>
      <link>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684948#M593695</link>
      <description>&lt;P&gt;Yes resolved&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 11:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Addmonth-function-with-field-name/m-p/1684948#M593695</guid>
      <dc:creator>sakshikaul</dc:creator>
      <dc:date>2020-03-16T11:35:54Z</dc:date>
    </item>
  </channel>
</rss>

