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.

74 Field Groups<br />

One main difference between <strong>QlikView</strong> and many other database viewers, OLAP tools etc. is that in Qlik-<br />

View there is no need to predefine any hierarchies in the input data. The unique internal logic of <strong>QlikView</strong><br />

gives you the complete freedom to access any field as a full dimension in any order you like. For most purposes<br />

this freedom is extremely powerful.<br />

However, there are occasions when a predefined hierarchy could actually help you to display data more efficiently.<br />

<strong>QlikView</strong> therefore offers the possibility to define groups of fields. The groups can be hierarchic<br />

(drill-down) or non-hierarchic (cyclic).<br />

Groups are created in the Groups page of the Document Properties dialog. They can be used in charts,<br />

where they appear together with the available fields in the dimension drop-down boxes on the Dimension<br />

(see Chart Properties: Dimensions (page 600)).<br />

Any fields can be grouped together.<br />

Drill-down groups are marked with an icon,<br />

while cyclic groups are displayed with an icon.<br />

Hierarchic Groups (Drill-Down)<br />

When several fields form a natural hierarchy, it makes sense to create a drill-down group. Typical examples<br />

of hierarchic groups could be:<br />

Time:Year, Quarter, Month<br />

or<br />

Geography: Continent, Country, State, City<br />

When a drill-down group is used as a dimension in a chart, the chart will use the first field in the group's list<br />

of fields that has more than one possible value. If selections are made that cause the field to have only one<br />

possible value, the next field in the list will be used instead, provided that it has more than one possible<br />

value. If no field in the list has more than one possible value, the last field will be used anyway.<br />

In the first example above, Year will be used as chart dimension until a single year is selected. The chart<br />

will then show Quarter. If a single quarter is selected, the chart will switch to Month.<br />

As selections disappear, so that more than one value becomes possible in the upper fields of the group's field<br />

list, the chart will automatically be drilled back up. Forced drill-up can be achieved by clicking on the drillup<br />

icon in the chart.<br />

74.1 Hierarchic Groups (Drill-Down)<br />

When several fields form a natural hierarchy, it makes sense to create a drill-down group. Typical examples<br />

of hierarchic groups are:<br />

Time: Year, Quarter, Month<br />

or:<br />

Geography: Continent, Country, State, City<br />

When a drill-down group is used as a dimension in a chart, the chart will use the first Fields (page 169) in<br />

the group's list of fields that has more than one possible value. If selections are made that cause the field to<br />

have only one possible value, the next field in the list will be used instead, provided that it has more than<br />

one possible value. If no field in the list has more than one possible value, the last field will be used anyway.<br />

In the first example above, Year will be used as chart dimension until a single year is selected. The chart will<br />

then show Quarter. If a single quarter is selected, the chart will switch to Month.<br />

853

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

Saved successfully!

Ooh no, something went wrong!