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.

inmonth ( '2006-01-25', '2006-01-01', -1 ) returns false<br />

inmonth ( '2005-12-25', '2006-01-01', -1 ) returns true<br />

InMonthToDate (date, basedate , shift)<br />

Examples:<br />

returns true if date lies inside the part of month containing basedate up until and including the last<br />

millisecond of basedate. The month can be offset by shift. Shift is an integer, where the value 0 indicates<br />

the month which contains basedate. Negative values in shift indicate preceding months and positive<br />

values indicate succeeding months.<br />

inmonthtodate ( '2006-01-25', '2006-01-25', 0 ) returns true<br />

inmonthtodate ( '2006-01-25', '2006-01-24', 0 ) returns false<br />

inmonthtodate ( '2006-01-25', '2006-02-28', -1 ) returns true<br />

InMonths (n, date, basedate , shift [, first_month_of_year = 1])<br />

Examples:<br />

returns true if date lies inside the n month shift (aligned from January 1st) containing basedate. N<br />

must be (1), 2, (3), 4 or 6. The period can be offset by shift. Shift is an integer, where the value 0 indicates<br />

the period which contains basedate. Negative values in shift indicate preceding periods and positive<br />

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

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

inmonths ( 4, '2006-01-25', '2006-01-01', 0 ) returns true<br />

inmonths ( 4, '2006-01-25', '2006-05-01', 0 ) returns false<br />

inmonths ( 4, '2006-01-25', '2006-01-01', -1 ) returns false<br />

inmonths ( 4, '2005-12-25', '2006-01-01', -1 ) returns true<br />

inmonths ( 4, '2006-01-25', '2006-03-01', 0, 3 ) returns false<br />

inmonths ( 4, '2006-04-25', '2006-03-01', 0, 3 ) returns true<br />

InMonthsToDate (n, date, basedate , shift [, first_month_of_year =<br />

1])<br />

Examples:<br />

returns true if date lies inside the part of the n month period (aligned from January 1st) containing<br />

basedate up until and including the last millisecond of basedate. N must be (1), 2, (3), 4 or 6. The<br />

period can be offset by shift. Shift is an integer, where the value 0 indicates the period which contains<br />

basedate. Negative values in shift indicate preceding periods and positive values indicate succeeding<br />

periods. If you want to align with (fiscal) years not starting in January, indicate a value<br />

between 2 and 12 in first_month_of_year.<br />

inmonthstodate ( 4, '2006-01-25', '2006-04-25', 0 ) returns true<br />

inmonthstodate ( 4, '2006-04-25', '2006-04-24', 0 ) returns false<br />

inmonthstodate ( 4, '2005-11-25', '2006-02-01', -1 ) returns true<br />

InWeek (date, basedate , shift [, weekstart])<br />

Examples:<br />

344<br />

returns true if date lies inside the week containing basedate. The week can be offset by shift. Shift is<br />

an integer, where the value 0 indicates the week which contains basedate. Negative values in shift<br />

indicate preceding weeks and positive values indicate succeeding weeks. If you want to work with<br />

weeks not starting midnight between Sunday and Monday, indicate an offset in days in weekstart.<br />

This may be given as a real number indicating days and/or fractions of a day.<br />

inweek ( '2006-01-12', '2006-01-14', 0 ) returns true

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

Saved successfully!

Ooh no, something went wrong!