21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

yearend ( '2001-10-19', 0, 4 ) returns '2002-03-31' with an underlying numeric value<br />

corresponding to '2002-03-31 23:59:59.999'<br />

YearName(date [, shift = 0 [, first_month_of_year = 1]] )<br />

Examples:<br />

Returns a four-digit year as display value with an underlying numeric value corresponding to a timestamp<br />

with the first millisecond of the first date of the year containing date. Shift is an integer, where<br />

the value 0 indicates the year which contains date. Negative values in shift indicate preceding years<br />

and positive values indicate succeeding years. If you want to work with (fiscal) years not starting in<br />

January, indicate a value between 2 and 12 in first_month_of_year. The display value will then be a<br />

string showing two years.<br />

yearname ( '2001-10-19') returns '2001' with an underlying numeric value corresponding to<br />

'2001-01-01 00:00:00.000'<br />

yearname ( '2001-10-19', -1 ) returns '2000' with an underlying numeric value corresponding<br />

to '2000-01-01 00:00:00.000'<br />

yearname ( '2001-10-19', 0, 4 ) returns '2001-2002' with an underlying numeric value<br />

corresponding to '2001-04-01 00:00:00.000'<br />

QuarterStart(date [, shift = 0 [, first_month_of_year = 1]])<br />

Examples:<br />

Returns a value corresponding to a timestamp with the first millisecond of the quarter containing<br />

date. The default output format will be the DateFormat set in the script. Shift is an integer, where the<br />

value 0 indicates the quarter which contains date. Negative values in shift indicate preceding quarters<br />

and positive values indicate succeeding quarters. If you want to work with (fiscal) years not starting<br />

in January, indicate a value between 2 and 12 in first_month_of_year.<br />

quarterstart ( '2005-10-29' ) returns '2005-10-01' with an underlying numeric value corresponding<br />

to '2005-10-01 00:00:00.000'<br />

quarterstart ( '2005-10-29', -1 ) returns '2005-07-01' with an underlying numeric<br />

value corresponding to '2005-07-01 00:00:00.000'<br />

quarterstart ( '2005-10-29', 0, 3 ) returns '2005-09-01' with an underlying numeric<br />

value corresponding to '2005-09-01 00:00:00.000'<br />

QuarterEnd(date [, shift = 0 [, first_month_of_year = 1]])<br />

Examples:<br />

Returns a value corresponding to a timestamp with the last millisecond of the quarter containing<br />

date. The default output format will be the DateFormat set in the script. Shift is an integer, where the<br />

value 0 indicates the quarter which contains date. Negative values in shift indicate preceding quarters<br />

and positive values indicate succeeding quarters. If you want to work with (fiscal) years not starting<br />

in January, indicate a value between 2 and 12 in first_month_of_year.<br />

quarterend ( '2005-10-29' ) returns '2005-12-31' with an underlying numeric value corresponding<br />

to '2005-12-31 23:59:59.999'<br />

quarterend( '2005-10-29', -1 ) returns '2005-09-30' with an underlying numeric value<br />

corresponding to '2005-09-30 23:59:59.999'<br />

quarterend ( '2005-10-29', 0, 3 ) returns '2005-11-30' with an underlying numeric<br />

value corresponding to '2005-11-30 23:59:59.999'<br />

QuarterName(date [, shift = 0 [, first_month_of_year = 1]])<br />

Returns a display value showing the months of the quarter (formatted according to the MonthNames<br />

script variable) and year with an underlying numeric value corresponding to a timestamp with the<br />

347

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!