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.

By default, the following scheme is used until a complete match is found. (The default format is the format<br />

such as the decimal separator, the order between year, month and day, etc. specified in the operating system,<br />

i.e. in the Control Panel, or in some cases via the special number interpretation variables in the script, see<br />

Number Interpretation Variables (page 354).)<br />

<strong>QlikView</strong> will interpret the data as<br />

1. a number according to the default format for numbers.<br />

2. a date according to the default format for date.<br />

3. a time stamp according to the default format for time and date.<br />

4. a time according to the default format for time.<br />

5. a date according to the following format: yyyy-MM-dd.<br />

6. a time stamp according to the following format: YYYY-MM-DD hh:mm[:ss[.fff]].<br />

7. a time according to the following format: hh:mm[:ss[.fff]].<br />

8. money according to the default format for currency.<br />

9. a number with '.' as decimal separator and ',' as thousands separator, provided that neither the decimal<br />

separator nor the thousand separator is set to ','.<br />

10. a number with ',' as decimal separator and '.' as thousand separator, provided that neither the decimal<br />

separator nor the thousand separator is set to ‘.'.<br />

11. a text string. This last test never fails: if it is possible to read the data, it is always possible to interpret<br />

it as a string.<br />

When loading numbers from text files some interpretation problems may occur, e.g. an incorrect thousand separator<br />

or decimal separator may cause <strong>QlikView</strong> to interpret the number incorrectly. The first thing one<br />

should do is to check that the number interpretation variables in the script (see Number Interpretation Variables<br />

(page 354)) are correctly defined and that the system settings in the Control Panel are correct.<br />

Once <strong>QlikView</strong> has interpreted data as a date or time, it is possible to change to another date or time format<br />

in the properties dialog for the sheet object.<br />

Since there is no predefined format for the data, different records may of course contain differently formatted<br />

data in the same field. It is possible e.g. to find valid dates, integers and text in one field. The data will therefore<br />

not be formatted, but shown in its original form in list boxes etc.<br />

When you first enter a number format dialog for such a field, the format will be set as Mixed. As soon as<br />

you change the number formatting of the field, it will be impossible for <strong>QlikView</strong> to return to the original<br />

formatting of the different field values, unless the script is re-executed with the Survive Reload check box<br />

deselected. The Default from Input button in the number format dialogs is thus unavailable for this kind of<br />

fields once the number format has been changed.<br />

Example:<br />

860

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

Saved successfully!

Ooh no, something went wrong!