<?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: Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script/m-p/887944#M1005095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you are using this in if statement or where clause, but the basic idea for checking should be something like this, if you are checking it against one year back from &lt;STRONG&gt;Today:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;MonthStart(Date(PeriodDate)) &amp;gt; AddYears(Today(), -1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Slight update: &lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333330154419px;"&gt;Date(PeriodDate) &amp;gt; AddYears(MonthStart(Today()), -1)&lt;/STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 12:43:58 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-06-01T12:43:58Z</dc:date>
    <item>
      <title>Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/887943#M1005094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey all&lt;/P&gt;&lt;P&gt;i need your help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i write in a script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PeriodDate &amp;gt; one year back (noting that periodDate is a number)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and my request is if i am in 15 of april 2015 i need my PeriodDate become Greater in 1 of april 2014 not 15 of april .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you can help thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 12:36:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/887943#M1005094</guid>
      <dc:creator>mario-sarkis</dc:creator>
      <dc:date>2015-06-01T12:36:17Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/887944#M1005095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you are using this in if statement or where clause, but the basic idea for checking should be something like this, if you are checking it against one year back from &lt;STRONG&gt;Today:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;MonthStart(Date(PeriodDate)) &amp;gt; AddYears(Today(), -1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Slight update: &lt;/SPAN&gt;&lt;STRONG style="color: #ff0000; font-size: 13.3333330154419px;"&gt;Date(PeriodDate) &amp;gt; AddYears(MonthStart(Today()), -1)&lt;/STRONG&gt;&lt;SPAN style="text-decoration: line-through;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 12:43:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/887944#M1005095</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-01T12:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/887945#M1005096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are lots of Date time functions, MonthStart() set the starting day of the month starting from a date, you can use it for your problem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 12:51:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/887945#M1005096</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2015-06-01T12:51:46Z</dc:date>
    </item>
  </channel>
</rss>

