<?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 Quarter &amp; Trimester breakdown in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Quarter-Trimester-breakdown/m-p/1053068#M928566</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;I have the following in the script which is working fine for the Quarter's (the fiscal year is July - June):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; (mod(Ceil(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))/3)+1,4)+1) as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q' &amp;amp; (mod(Ceil(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))/3)+1,4)+1) &amp;amp; '-' &amp;amp; Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))), Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) &amp;amp; (mod(Ceil(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))/3)+1,4)+1)) as QtrYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) &amp;gt; 6, Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))+1, Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))) as FiscalYear, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))),month(addmonths(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)),6))) as FiscalMonth,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) as Week;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now require a trimester breakdown maintaining the Fiscal Year from July-June.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replaced MakeDate(2000,1,1)))/3)+1,4)+1) with MakeDate(2000,1,1)))/4),4). It shows three quarters which is fine but the months are not aligned to the Fiscal Year (July - June).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>shamitshah</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Quarter &amp; Trimester breakdown</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-Trimester-breakdown/m-p/1053068#M928566</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;I have the following in the script which is working fine for the Quarter's (the fiscal year is July - June):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; (mod(Ceil(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))/3)+1,4)+1) as Quarter,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dual('Q' &amp;amp; (mod(Ceil(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))/3)+1,4)+1) &amp;amp; '-' &amp;amp; Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))), Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) &amp;amp; (mod(Ceil(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))/3)+1,4)+1)) as QtrYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) &amp;gt; 6, Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))+1, Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))) as FiscalYear, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))),month(addmonths(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)),6))) as FiscalMonth,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Week(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) as Week;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now require a trimester breakdown maintaining the Fiscal Year from July-June.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I replaced MakeDate(2000,1,1)))/3)+1,4)+1) with MakeDate(2000,1,1)))/4),4). It shows three quarters which is fine but the months are not aligned to the Fiscal Year (July - June).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-Trimester-breakdown/m-p/1053068#M928566</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter &amp; Trimester breakdown</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-Trimester-breakdown/m-p/1053069#M928567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dual('T'&amp;amp; Ceil(num(month(Monthstart(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[SAL_InvoiceDate]&lt;/SPAN&gt;,-6)))/4),&lt;SPAN style="font-size: 13.3333px;"&gt;Ceil(num(month(Monthstart(&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[SAL_InvoiceDate]&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;,-6)))/4) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 13:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-Trimester-breakdown/m-p/1053069#M928567</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-03-23T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter &amp; Trimester breakdown</title>
      <link>https://community.qlik.com/t5/QlikView/Quarter-Trimester-breakdown/m-p/1053070#M928568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;Hi Gysbert,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;I made the change to the script (highlighted below). The script is now as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt; Date([SAL_InvoiceDate] + MakeDate(2000,1,1)) as SaleDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt; Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) as Year,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt; Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) as Month,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt; Date(MonthStart(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))), 'MMMYY') as MonthYear,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'T' &amp;amp; (Mod(Ceil(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))/4),4)) as TQuarter,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; Dual('T'&amp;amp; Ceil(num(month(Monthstart([SAL_InvoiceDate],-6)))/4),Ceil(num(month(Monthstart([SAL_InvoiceDate],-6)))/4)) as TQtrYear&lt;/STRONG&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt; if(Month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))) &amp;gt; 6, Year(Date([SAL_InvoiceDate] +&amp;nbsp;&amp;nbsp;&amp;nbsp; MakeDate(2000,1,1)))+1, Year(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)))) as FiscalYear,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt; dual(month(Date([SAL_InvoiceDate] + MakeDate(2000,1,1))),month(addmonths(Date([SAL_InvoiceDate] + MakeDate(2000,1,1)),6))) as FiscalMonth;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;I have a list box field TQtrYear with the following result for Fiscal Year 2016:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;T1: July 2015 - Oct 2015&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;T2:&amp;nbsp; Nov 2015 - Mar 2016 (picking up the 1 Mar 2016) &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;T3:&amp;nbsp; Apr 2016 - June 2016 (starts from 2 Mar 2016)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-top: auto; margin-bottom: auto;"&gt;&lt;SPAN style="font-size: 12.0pt; font-family: 'Times New Roman',serif;"&gt;T2 should be Nov 2015 -&amp;nbsp; Feb 2016. Any idea why T2 and T3 is out of sync?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 08:40:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Quarter-Trimester-breakdown/m-p/1053070#M928568</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2016-03-29T08:40:17Z</dc:date>
    </item>
  </channel>
</rss>

