<?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 Rolling Calendar and IF Statement in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398369#M32443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a rolling 13 month calendar that is used for several clients. However one client's data only starts in Feb 2017.&lt;/P&gt;&lt;P&gt;I need an if statement so any months prior to Feb 2017 will not show (If RollingStartDate is &amp;lt; Feb 2017 ???.&lt;/P&gt;&lt;P&gt;How do I add that to the below?&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Let vYear = Year(Today()-1);&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Let vPriorYear = Year(Today()-1)-1;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Let vRollingStartDate = Date(MonthStart(AddMonths(Today()-1, -12)));&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Let vToday = Date(Today()-1);&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Thanks for the assist - Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Aug 2017 19:01:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-08-28T19:01:31Z</dc:date>
    <item>
      <title>Rolling Calendar and IF Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398369#M32443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a rolling 13 month calendar that is used for several clients. However one client's data only starts in Feb 2017.&lt;/P&gt;&lt;P&gt;I need an if statement so any months prior to Feb 2017 will not show (If RollingStartDate is &amp;lt; Feb 2017 ???.&lt;/P&gt;&lt;P&gt;How do I add that to the below?&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Let vYear = Year(Today()-1);&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Let vPriorYear = Year(Today()-1)-1;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Let vRollingStartDate = Date(MonthStart(AddMonths(Today()-1, -12)));&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Let vToday = Date(Today()-1);&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Thanks for the assist - Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 19:01:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398369#M32443</guid>
      <dc:creator />
      <dc:date>2017-08-28T19:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Calendar and IF Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398370#M32444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RollingStartDate in the standard excel format and have created the date in View, the if statement can be as follows:&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;if (RollingStartDate &amp;lt; 42767,... // 42767 is the equivalent of 02/01/2017 or February 1st in Excel.&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;Felipe.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 19:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398370#M32444</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-08-28T19:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Calendar and IF Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398371#M32445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;How would I add that to the code I gave? (New to Qlik Sense)&lt;/P&gt;&lt;P&gt;Eventually the 13 month calendar would kick in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 20:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398371#M32445</guid>
      <dc:creator />
      <dc:date>2017-08-28T20:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Calendar and IF Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398372#M32446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vYear = Year(Today()-1);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vPriorYear = Year(Today()-1)-1;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;if (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(MonthStart(AddMonths(Today()-1, -12))) &amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;42767) then&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vRollingStartDate = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;42767&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;else&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Let vRollingStartDate = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(MonthStart(AddMonths(Today()-1, -12)));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;end if;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Let vToday = Date(Today()-1);&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In this logic, if twelve months back is lesser then feb 2017, it wil start from feb on, and if not, it will get 12 months back.&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Felipe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 21:23:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398372#M32446</guid>
      <dc:creator>felipedl</dc:creator>
      <dc:date>2017-08-28T21:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling Calendar and IF Statement</title>
      <link>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398373#M32447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is fantastic - just what I needed to help me understand&lt;/P&gt;&lt;P&gt;Thank you - it has been marked as correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Aug 2017 21:40:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Rolling-Calendar-and-IF-Statement/m-p/1398373#M32447</guid>
      <dc:creator />
      <dc:date>2017-08-28T21:40:10Z</dc:date>
    </item>
  </channel>
</rss>

