<?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: Sum per quarter in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Sum-per-quarter/m-p/903856#M314320</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;if(len(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ORDERS_DATE_INSERT&lt;/SPAN&gt;)&amp;gt;0,'Q' &amp;amp; Ceil(Month(ORDERS_DATE_INSERT/3))) as Quarter,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year(ORDERS_DATE_INSERT) as Year&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;expression&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({&amp;lt;Quarter={'Q3'}, Year={'Year(today()-1)'}&amp;gt;} ORDER_QTY)&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;it displays 01-04-2014 to 30-06-2014 sum of ORDER_QTY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Jun 2015 12:02:40 GMT</pubDate>
    <dc:creator>pratap6699</dc:creator>
    <dc:date>2015-06-03T12:02:40Z</dc:date>
    <item>
      <title>Sum per quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-per-quarter/m-p/903854#M314318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello. I've got table looking like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tab1.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/88242_tab1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;When i have column with date, everything works.&lt;/P&gt;&lt;P&gt;Expression from table Q3:&lt;/P&gt;&lt;P&gt;IF(Month(ORDERS_DATE_INSERT) &amp;gt; 6 and Month(ORDERS_DATE_INSERT) &amp;lt;= 9 and Year(ORDERS_DATE_INSERT) = Year(Today()) - 1, SUM(ORDER_QTY))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried do something like this:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;ORDERS_DATE_INSERT={"&amp;lt;=QuarterEnd('2014-12-12')"}&amp;gt;} ORDER_QTY)&lt;/P&gt;&lt;P&gt;or this:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Month(ORDERS_DATE_INSERT)={"&amp;lt;=3"}&amp;gt;} ORDER_QTY)&lt;/P&gt;&lt;P&gt;but none of this is working properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I remove date, the table looks like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tab2.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/88243_tab2.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;None value is displayed.&lt;/P&gt;&lt;P&gt;Have you got any idea what should I do to make it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:28:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-per-quarter/m-p/903854#M314318</guid>
      <dc:creator />
      <dc:date>2015-06-03T11:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sum per quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-per-quarter/m-p/903855#M314319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zelman, the easiest is create the quarter field in the script, in the table where you load ORDERS_DATE_INSERT create a field:&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(ORDERS_DATE_INSERT/3) as Quarter,&lt;/P&gt;&lt;P&gt;Year(ORDERS_DATE_INSERT) as Year&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you only need:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Quarter={'Q3'}, Year={'2014'}&amp;gt;} ORDER_QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you must work with those timestamps, something like:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;ORDERS_DATE_INSERT={"&amp;gt;=2014-04-01 00:00:00&amp;lt;=2014-06-30 23:59:59"}&amp;gt;} ORDER_QTY)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 11:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-per-quarter/m-p/903855#M314319</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-03T11:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sum per quarter</title>
      <link>https://community.qlik.com/t5/QlikView/Sum-per-quarter/m-p/903856#M314320</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;if(len(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ORDERS_DATE_INSERT&lt;/SPAN&gt;)&amp;gt;0,'Q' &amp;amp; Ceil(Month(ORDERS_DATE_INSERT/3))) as Quarter,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Year(ORDERS_DATE_INSERT) as Year&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;expression&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SUM({&amp;lt;Quarter={'Q3'}, Year={'Year(today()-1)'}&amp;gt;} ORDER_QTY)&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;it displays 01-04-2014 to 30-06-2014 sum of ORDER_QTY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 12:02:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Sum-per-quarter/m-p/903856#M314320</guid>
      <dc:creator>pratap6699</dc:creator>
      <dc:date>2015-06-03T12:02:40Z</dc:date>
    </item>
  </channel>
</rss>

