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.

Note that Tab2 shown here is a table box and not the table itself. The table box will show all possible combinations<br />

between the fields of its columns. Since there is no logic between fields A and C all combinations<br />

of their respective possible values are shown.<br />

Avoid Circular <strong>Reference</strong><br />

The next example shows how loosely coupled tables can be useful for avoiding circular references in the<br />

data structure:<br />

This data structure is actually not a very good one since the field name Country is used for two different purposes.<br />

In one table it indicates where the car owner lives and in another it shows where the car manufacturer<br />

resides. With the data in the tables an impossible logical situation is faced. Wherever a selection is made, it<br />

is possible to follow associations leading through every single cell in all three tables.<br />

A decision whether the home country or the car manufacturing country is most important has to be made. If<br />

the Carmaker table is loosely coupled, the associations from Cadillac to USA and from Volvo to Sweden<br />

will be broken. By clicking Sweden it will associate with Björn Borg and Cadillac. By clicking Volvo it<br />

will associate with George Bush and USA.<br />

If it is prefered to concentrate on car manufacturers it would make sense to make the Home table loosely coupled<br />

instead.<br />

Another Example<br />

Let us have a look at another common situation where loosely coupled tables can be useful. Below three<br />

tables are found in a rather typical structure: one transaction table and two dimension tables associating to it<br />

via one field each.<br />

Now, let us say a pivot table showing sales per year and product group is wanted. If we just create one<br />

beside two list boxes showing the dimension fields it will look like this:<br />

119

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

Saved successfully!

Ooh no, something went wrong!