<?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: How to use Quater function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554187#M687906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;see link, hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://elebacram.wordpress.com/2012/09/17/qlikview-creating-a-calendar/" title="http://elebacram.wordpress.com/2012/09/17/qlikview-creating-a-calendar/"&gt;QLIKView creating a calendar | elebAcraM&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Nov 2013 04:55:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-21T04:55:01Z</dc:date>
    <item>
      <title>How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554183#M687900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;How can i use Quater funtion if i have mnths in one column and year in other column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554183#M687900</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2013-11-21T04:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554184#M687902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can add your quarter in a load script and&amp;nbsp; use as other columns.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Write this in your load script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; Load &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; Ceil(Month(Date)/3) As Quarterly&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from tableName&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashutosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:48:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554184#M687902</guid>
      <dc:creator />
      <dc:date>2013-11-21T04:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554185#M687904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;'Q' &amp;amp; Ceil(CalendarMonthNameField/3) as Quarter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554185#M687904</guid>
      <dc:creator>er_mohit</dc:creator>
      <dc:date>2013-11-21T04:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554186#M687905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//************************* Example one*******************************&lt;/P&gt;&lt;P&gt;SET STARTDATE = ’01-01-2006′; //fill in your start date&lt;BR /&gt; LET ENDDATE = date(today());&lt;BR /&gt; [TEMP_DATE]:&lt;BR /&gt; LOAD&lt;BR /&gt; date( date#(‘$(STARTDATE)’,'DD-MM-YYYY’)-1 + recno() ,’DD-MM-YYYY’) as DATE&lt;BR /&gt; AUTOGENERATE (date#(‘$(ENDDATE)’) – date#(‘$(STARTDATE)’))+1;&lt;BR /&gt; [DATETABLE]:&lt;BR /&gt; LOAD&lt;BR /&gt; DATE,&lt;BR /&gt; Year(DATE) as YEAR,&lt;BR /&gt; Month(DATE) as MONTH,&lt;BR /&gt; Week(DATE) as WEEK,&lt;BR /&gt; WeekDay(DATE) as WEEKDAY,&lt;BR /&gt; Day(DATE) as DAY,&lt;BR /&gt; Year(DATE) &amp;amp; right(’00′ &amp;amp; week(DATE),2) as YYYYWW,&lt;BR /&gt; Year(DATE) &amp;amp; right(’00′ &amp;amp; num(Month(DATE)),2) as YYYYMM,&lt;BR /&gt; Year(DATE) &amp;amp; ceil(num(Month(DATE))/3) as YYYYK,&lt;BR /&gt; ‘Quarter’ &amp;amp; ceil(num(Month(DATE))/3) as QUARTER&lt;BR /&gt; RESIDENT [TEMP_DATE];&lt;/P&gt;&lt;P&gt;DROP TABLE [TEMP_DATE];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//************************* Example two*******************************&lt;/P&gt;&lt;P&gt;We need the highest and lowest date values from the fact table and place these values into variables that we use to create a Calender table. Search for the date field (in this example we will call the field FactDate) in the fact table. FactDate will be the connecting field to the Calendar table. Sort the fact table by typing the following at the end of the select statement before the semicolon:&lt;/P&gt;&lt;P&gt;* ORDER BY FactDate ASC;&lt;BR /&gt; * Your fact table should look something like this:&lt;/P&gt;&lt;P&gt;//************************* Fact table*********************************&lt;/P&gt;&lt;P&gt;Facts:&lt;BR /&gt; LOAD FactID,&lt;BR /&gt; FactName,&lt;BR /&gt; FactFreight,&lt;BR /&gt; FactShipperID,&lt;BR /&gt; FactDate&lt;BR /&gt; FROM facts ORDER BY FactDate ASC;&lt;/P&gt;&lt;P&gt;(Remember that you should only have one date / time field in the fact table, the master calendar table will contain all the date formats.)&lt;/P&gt;&lt;P&gt;* Create a new tab in the script editor and call it Calendar.&lt;BR /&gt; * Create a new variable for the first date by typing the following script statement:&lt;BR /&gt; LET varMinDate = Num(Peek(‘FactDate’, 0, ‘Facts’));&lt;/P&gt;&lt;P&gt;Where FactDate is the linking Date field, 0 is the first row of the table and Facts is the FactTable. When there is more then one fact table, for example Facts2, your statement should look like this:&lt;BR /&gt; LET varMinDate = Num(rangemin(Peek(‘FactDate’, 0,’Facts’), Peek(‘FactDate’, 0,’Facts2′)));&lt;/P&gt;&lt;P&gt;* Create a second variable for the last date by typing the following statement:&lt;BR /&gt; LET varMaxDate = Num(Peek(‘FactDate’, -1, ‘Facts’));&lt;/P&gt;&lt;P&gt;* Create a third variable for the last date by typing the following statement:&lt;BR /&gt; LET vToday = num(today());&lt;/P&gt;&lt;P&gt;* Create a new table by typing the following script into the script editor:&lt;/P&gt;&lt;P&gt;//************************Temporary Calendar***************************&lt;/P&gt;&lt;P&gt;//Create all days in the range from varMinDate to varMaxDate&lt;BR /&gt; TempCalendar:&lt;BR /&gt; LOAD&lt;BR /&gt; $(varMinDate)+Iterno()-1 AS Num,&lt;BR /&gt; Date($(varMinDate)+Iterno()-1) AS TempDate&lt;BR /&gt; AUTOGENERATE 1 WHILE $(varMinDate)+Iterno()-1&amp;lt;= $(varMaxDate);&lt;/P&gt;&lt;P&gt;* Once we have created all the dates needed, we can start creating a Master Calendar table where we create all the date fields needed.&lt;/P&gt;&lt;P&gt;//**************************Master Calendar******************************&lt;/P&gt;&lt;P&gt;//Building the master calendar with most date dimensions&lt;BR /&gt; MasterCalendar:&lt;BR /&gt; load TempDate as FactDate,&lt;BR /&gt; week(TempDate) as Week,&lt;BR /&gt; Year(TempDate) as Year,&lt;BR /&gt; Month(TempDate) as Month,&lt;BR /&gt; Day(TempDate) as Day,&lt;BR /&gt; Year2date(TempDate)*-1 as CurYTDFlag,&lt;BR /&gt; Year2date(TempDate,-1)*-1 as LastYTDFlag,&lt;BR /&gt; Date(monthstart(TempDate), ‘MMM-YYYY’) AS MonthYear,&lt;BR /&gt; Week(TempDate)&amp;amp;’-'&amp;amp;Year(TempDate) as WeekYear,&lt;BR /&gt; Weekday(TempDate) as WeekDay&lt;BR /&gt; resident TempCalendar order by TempDate Asc;&lt;/P&gt;&lt;P&gt;* Before we reload the script, we need to get rid of the TempCalendar table used for creating the dates:&lt;BR /&gt; Drop Table TempCalendar;&lt;/P&gt;&lt;P&gt; Save and reload your script&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:51:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554186#M687905</guid>
      <dc:creator />
      <dc:date>2013-11-21T04:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554187#M687906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;see link, hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;A href="http://elebacram.wordpress.com/2012/09/17/qlikview-creating-a-calendar/" title="http://elebacram.wordpress.com/2012/09/17/qlikview-creating-a-calendar/"&gt;QLIKView creating a calendar | elebAcraM&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 04:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554187#M687906</guid>
      <dc:creator />
      <dc:date>2013-11-21T04:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554188#M687907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Agnivesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&amp;nbsp;&amp;nbsp; MONTH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q' &amp;amp; Ceil(Num(MONTH)/3) As Quarter&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&amp;nbsp; TableName;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it will work for u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 05:16:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554188#M687907</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2013-11-21T05:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554189#M687908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Agnivesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. You can create the Quarter using Inline also&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;INLINE&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[&lt;BR /&gt;Month, Quarter&lt;BR /&gt;Jan, Q1&lt;BR /&gt;Feb, Q1&lt;BR /&gt;Mar, Q1&lt;BR /&gt;Apr, Q2&lt;BR /&gt;May, Q2&lt;BR /&gt;Jun, Q2&lt;BR /&gt;Jul, Q3&lt;BR /&gt;Aug, Q3&lt;BR /&gt;Sep, Q3&lt;BR /&gt;Oct, Q4&lt;BR /&gt;Nov, Q4&lt;BR /&gt;Dec, Q4&lt;BR /&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By this way you can create the Quarter for Fiscal Calendar also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. You can create in the script using "if" condition.&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;Please get back in case more help required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 07:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554189#M687908</guid>
      <dc:creator>vinothkumarr</dc:creator>
      <dc:date>2013-11-21T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554190#M687909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the meaning of &lt;STRONG&gt;Ceil&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 10:17:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554190#M687909</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2013-11-21T10:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554191#M687910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi agnivesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you value is 3.2 then Ceil function will return 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor function will return 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vishal Waghole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 10:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554191#M687910</guid>
      <dc:creator>VishalWaghole</dc:creator>
      <dc:date>2013-11-21T10:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554192#M687911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="syntax"&gt;&lt;A name="kanchor293"&gt;&lt;/A&gt;&lt;A name="Ch_ceil"&gt;&lt;/A&gt;&lt;SPAN class="Bold"&gt;ceil(&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;x [ , base [ , offset ]]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;Rounding of &lt;SPAN class="Italic"&gt;x&lt;/SPAN&gt; upwards to the nearest multiple of &lt;SPAN class="Italic"&gt;base&lt;/SPAN&gt; with an offset of &lt;SPAN class="Italic"&gt;offset&lt;/SPAN&gt;. The result is a number. &lt;/P&gt;&lt;P class="example"&gt;Examples:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;ceil( 2.4 ) &lt;/SPAN&gt;returns 3&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;ceil( 2.6 ) &lt;/SPAN&gt;returns 3&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;ceil( 3.88 , 0.1 ) &lt;/SPAN&gt;returns 3.9&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;ceil( 3.88 , 5 ) &lt;/SPAN&gt;returns 5&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;ceil( 1.1 , 1 , 0.5 ) &lt;/SPAN&gt;returns 1.5&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 10:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554192#M687911</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-11-21T10:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Quater function</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554193#M687912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks bro very nice. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Nov 2013 05:03:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-Quater-function/m-p/554193#M687912</guid>
      <dc:creator>agni_gold</dc:creator>
      <dc:date>2013-11-25T05:03:00Z</dc:date>
    </item>
  </channel>
</rss>

