<?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 Conditional Let in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Let/m-p/433820#M1160799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i need some help to check the current month and then give to a variable a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the month is the first 1 then the variable should go back 1 year , in the end of the 12th month &lt;/P&gt;&lt;P&gt;else point previus&amp;nbsp; monthend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if today is 2013-01-18 variable should give 2012-12-31&lt;/P&gt;&lt;P&gt;if today is 2013-02-01 variable should give 2013-01-31&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do this on the scpirt , to compine if with let ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Month(Today())=1, LET vYTDEndD_LY= MakeDate(Year(Today())-1,MonthEnd(Month(12))), LET vYTDEndD_LY= MakeDate(Year(Today())-1,MonthEnd(Today())-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jan 2013 08:35:58 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-18T08:35:58Z</dc:date>
    <item>
      <title>Conditional Let</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Let/m-p/433820#M1160799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i need some help to check the current month and then give to a variable a date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the month is the first 1 then the variable should go back 1 year , in the end of the 12th month &lt;/P&gt;&lt;P&gt;else point previus&amp;nbsp; monthend.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if today is 2013-01-18 variable should give 2012-12-31&lt;/P&gt;&lt;P&gt;if today is 2013-02-01 variable should give 2013-01-31&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do this on the scpirt , to compine if with let ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (Month(Today())=1, LET vYTDEndD_LY= MakeDate(Year(Today())-1,MonthEnd(Month(12))), LET vYTDEndD_LY= MakeDate(Year(Today())-1,MonthEnd(Today())-1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 08:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Let/m-p/433820#M1160799</guid>
      <dc:creator />
      <dc:date>2013-01-18T08:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Let</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Let/m-p/433821#M1160800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this &lt;STRONG&gt;date(MonthEnd(AddMonths(today(),-1))) as &amp;lt;Fieldname&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This can also be used in any chart that you might be making&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mhatim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2013 10:59:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Let/m-p/433821#M1160800</guid>
      <dc:creator />
      <dc:date>2013-01-18T10:59:41Z</dc:date>
    </item>
  </channel>
</rss>

