<?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: Date Modifiction in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5305#M792001</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this based on required condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(If(Len(Trim(Field)) = 0 and PeriodDate = 43160, PeriodDate - 1, PeriodDate)) as PeriodDate&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Jan 2018 09:56:32 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-01-23T09:56:32Z</dc:date>
    <item>
      <title>Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5304#M792000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to put condition as following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(isnull([Field]),endofMonth(Month(PeriodDate),-1), PeriodDate) as PeriodDate&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;If the Field is null and my periodDate='43160' I need to replace it by '43159'&lt;/P&gt;&lt;P&gt; hope you can help.&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;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&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/Date-Modifiction-in-the-script/m-p/5304#M792000</guid>
      <dc:creator>mario-sarkis</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5305#M792001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this based on required condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(If(Len(Trim(Field)) = 0 and PeriodDate = 43160, PeriodDate - 1, PeriodDate)) as PeriodDate&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 09:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5305#M792001</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-23T09:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5306#M792002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Use function &lt;STRONG&gt;MonthEnd,Addmonths&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I&lt;STRONG&gt;f(isnull([Field]),MonthEnd(AddMonths(PeriodDate),-1), PeriodDate) as PeriodDate&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 10:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5306#M792002</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2018-01-23T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5307#M792003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date(if(len(Trim(Field))=0,Monthend(Addmonths(PeriodDate),-1),PeriodDate)) as PeriodDate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 10:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5307#M792003</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-01-23T10:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5308#M792004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/people/sasikanth_narne"&gt;sasikanth_narne&lt;/A&gt;‌ &amp;amp; &lt;A href="https://community.qlik.com/people/shiveshsingh"&gt;shiveshsingh&lt;/A&gt;‌ - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't mind me asking, why do you need AddMonths here? You are not even giving any value for second paramater and MonthEnd() is handling going back one period... In fact, it would be advisable to add Floor() because MonthEnd() will give you a timestamp. So, if this is what the requirement is, I would use 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;&lt;STRONG&gt;Date(If(Len(Trim(Field)) = 0, Floor(MonthEnd(PeriodDate, -1)), PeriodDate)) as PeriodDate&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5308#M792004</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-23T12:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5309#M792005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per requirement(to counter this &lt;EM&gt;endofMonth(Month(PeriodDate),-1&lt;/EM&gt;),, i put monthend before (Addmonths(PeriodDate),-1).&lt;/P&gt;&lt;P&gt;Monthend will not give timestamp, i guess.. or i missed this part.. I need to check.&lt;/P&gt;&lt;P&gt;Thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5309#M792005</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-01-23T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5310#M792006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MonthEnd, YearEnd, WeekEnd functions always give a timestamp to the last second of the end date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, MonthEnd(Today()) will give this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;01/31/2018 23:59:59&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:22:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5310#M792006</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-23T12:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5311#M792007</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;Do i need to do some setting for timestamp, cz when i tried this in textbox (&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Monthend&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()) &lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i got 1/31/2018&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:28:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5311#M792007</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-01-23T12:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5312#M792008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It displays date, but underlying is a TimeStamp. Adding TimeStamp() on top of MonthEnd() will show you that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/191017_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you add floor, you will remove the time (as you would already know this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/191027_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 12:32:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5312#M792008</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-01-23T12:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date Modifiction in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5313#M792009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Got it Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jan 2018 13:04:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-Modifiction-in-the-script/m-p/5313#M792009</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-01-23T13:04:44Z</dc:date>
    </item>
  </channel>
</rss>

