Top | Previous | Next |
Crosstab |
The CrossTab is a DataSet element like the table and graph. It shows a summaries of cross sections of data. To be useful, crosstab data should have the following:
The CrossTab template is much simpler than the table template. By default it just shows one cell of a simple table. This is usually configured with an aggregate key, like "@total.getAmount@". After that, grouping keys are dragged to the horizontal and vertical axis.
We will use a crosstab to illustrate total downtime by equipment and location. Employee data can be retrieved from the accounting database with the following SQL query: SELECT * FROM downtime;
Notice that the example only has 2 unique sites. This is because we only have 12 rows of data.
|