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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples:<br />

By specifying a firstmonth between 1 and 12 (1 if omitted), the beginning of the year may be moved<br />

forward to the first day of any month. If you e.g. want to work with a fiscal year starting March 1,<br />

specify firstmonth = 3.<br />

DayNumberOfYear(date) returns the day number counted from the first of the year.<br />

DayNumberOfYear(date,3) returns the number of the day as counted from the first of March.<br />

DayNumberOfQuarter(date[,firstmonth])<br />

Examples:<br />

Returns the day number of the quarter according to a timestamp with the first millisecond of the first<br />

day of the quarter containing date.<br />

The function always uses years based on 366 days.<br />

By specifying a firstmonth between 1 and 12 (1 if omitted), the beginning of the year may be moved<br />

forward to the first day of any month. If you e.g. want to work with a fiscal year starting March 1,<br />

specify firstmonth = 3.<br />

DayNumberOfQuarter(Date) returns the day number of the quarter counted from the first day of<br />

the first quarter.<br />

DayNumberOfQuarter(Date,3) returns the day number of the quarter counted from the first of<br />

March<br />

Back to Other Functions.<br />

Number Interpretation Variables<br />

The following variables are system defined, i.e. they are automatically generated according to the current<br />

operating system settings when a new document is created. The number interpretation variables are included<br />

at the top of the script of the new <strong>QlikView</strong> document and may substitute operating system defaults for certain<br />

number formatting settings at the time of the script execution. They may be deleted, edited or duplicated<br />

freely.<br />

ThousandSep<br />

The thousands separator defined replaces the digit grouping symbol of the operating system (Regional Settings).<br />

Example:<br />

Set ThousandSep=','; (for example, seven billion must be specified as:<br />

7,000,000,000)<br />

DecimalSep<br />

The decimal separator defined replaces the decimal symbol of the operating system (Regional Settings).<br />

Example:<br />

Set DecimalSep='.';<br />

MoneyThousandSep<br />

The thousands separator defined replaces the digit grouping symbol for currency of the operating system<br />

(Regional Settings).<br />

354

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

Saved successfully!

Ooh no, something went wrong!