<?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 If statement and dates in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-statement-and-dates/m-p/624741#M1100799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to create the following, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a project end date is between 4/1/2014 and 6/30/2014, then 2014 2nd qtr should display or if it ends between 10/1/2015 and 12/31/2015, then it should read 2015 4th qtr etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to do that in the expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Project End]&amp;lt;'3/31/2014','2014 1st Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'4/1/2014' or &amp;lt; '6/30/2014','2014 2nd Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'7/1/2014' or &amp;lt; '9/31/2014','2014 3rd Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'10/1/2014' or &amp;lt; '12/31/2014','2014 4th Qtr',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'1/1/2015' or &amp;lt; '3/31/2015','2015 1st Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'4/1/2015' or &amp;lt; '6/30/2014','2015 2nd Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'7/1/2015' or &amp;lt; '9/31/2014','2015 3rd Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'10/1/2015' or &amp;lt; '12/31/2014','2015 4th Qtr'))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 15:09:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-04-10T15:09:31Z</dc:date>
    <item>
      <title>If statement and dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-and-dates/m-p/624741#M1100799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to be able to create the following, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a project end date is between 4/1/2014 and 6/30/2014, then 2014 2nd qtr should display or if it ends between 10/1/2015 and 12/31/2015, then it should read 2015 4th qtr etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to do that in the expressions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Project End]&amp;lt;'3/31/2014','2014 1st Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'4/1/2014' or &amp;lt; '6/30/2014','2014 2nd Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'7/1/2014' or &amp;lt; '9/31/2014','2014 3rd Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'10/1/2014' or &amp;lt; '12/31/2014','2014 4th Qtr',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'1/1/2015' or &amp;lt; '3/31/2015','2015 1st Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'4/1/2015' or &amp;lt; '6/30/2014','2015 2nd Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'7/1/2015' or &amp;lt; '9/31/2014','2015 3rd Qtr',&lt;/P&gt;&lt;P&gt;if([Project End]&amp;gt;'10/1/2015' or &amp;lt; '12/31/2014','2015 4th Qtr'))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 15:09:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-and-dates/m-p/624741#M1100799</guid>
      <dc:creator />
      <dc:date>2014-04-10T15:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: If statement and dates</title>
      <link>https://community.qlik.com/t5/QlikView/If-statement-and-dates/m-p/624742#M1100800</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;Use this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q'&amp;amp; Ceil(Month(DATE)/3) this expression gives you regular quarter&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;if want all dates like [Project End]&amp;lt;'3/31/2014' then it is in 1st Quarter the use following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([Project End]&amp;gt;'3/31/2014','Q'&amp;amp; Ceil(Month([Project End])/3),'1 Q') as Quarter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 15:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-statement-and-dates/m-p/624742#M1100800</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2014-04-10T15:43:04Z</dc:date>
    </item>
  </channel>
</rss>

