MyEclipse Chart Tools Birt Tips (ii) Use of--cross tab

Source: Internet
Author: User
Tags crosstab

The most convenient operation of the Birt plugin is to support the generation of crosstab cross table

Here's a simple example of how to set up a cross-table

The data sheet is a sales record table with the following fields: Merchant Shop, categories category, sales Amount

Show the effect for the left vertical row for the merchant, the top horizontal for the product category, the middle of sales, the right for the corresponding merchant's total and bottom of the corresponding product category totals, the lower right corner is a total

------------------------------------------

| Category 1 | Category 2 | Category 3 | Total

------------------------------------------

Merchant 1 |    1 |    2 | 3 | 6

------------------------------------------

Merchant 2 |    1 |    2 | 3 | 6

------------------------------------------

Merchant 3|    1 |    2 | 3 | 6

------------------------------------------

Total |    3 |    6 | 9 | 18

------------------------------------------

Implementation steps:

1, new Data Source.

2, new Data sets.

3, New Data Cubes.

Groups and summaries

Drag available fields in the Shop and category drop a field in groups and summaries to create a group of two group;

Drag drop a from amount to groups and summaries in available fields, where you create a summary field;

OK;

In Data Explorer, modify the name of Goup and Summaryfield and modify the name of the display cubes in Chinese.

4. Drag cross tab to design from palette, drag and drop the group shop in Data Explorer to the left column, drag and drop the group category to the top, and summary fields Amount into the middle;

In design, click the down arrow of Group shop and group category to select Totals to increase row and column totals.

5, Outline Select Crosstab-general-for empty cells,show 0, if there is no value when the default display 0.

6, Preview.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

MyEclipse Chart Tools Birt Tips (ii) Use of--cross tab

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.