Report Analysis Using YonBuilder - Extension

Report Analysis Using YonBuilder - Extension

In the previous article, we explained how to build a simple report and the basic configuration of the crosstab. This article provides an extended introduction to YonBuilder's report configuration by creating master-subtables, tree tables, and data penetration.

  1. create report

First, create an employee information entity to store information data. Second, create a new page and associate the data source as the information entity just created. For the specific employee information entity and data import process, please refer to the Data Analysis Chapter of YonBuilder Development.

After creating a report, click Edit to enter the report editing page. Among them, the fields contained in the bound data model are on the left, and the specific configuration options of the cells are on the right.

  1. master table

In addition to the basic crosstab, we can also use the extended function in the report to create a main and sub-table, so that the data in the sub-table can be displayed according to the conditions of the main table. First, we create a template for the report in the designer.

Secondly, drag the corresponding field of the data model to the corresponding field of the table; and select the data setting of the number of people as aggregation, and the aggregation type as summation.

Next, select the area that needs to be expanded and set it to identify the extended area, so that the data can be expanded.

Finally, select the employee code cell, and select the left parent cell as a custom item in the extended settings on the right.

There are two ways to configure the custom left parent cell: one is to click the small button of the positioning icon on the left side of the column, position the mouse to the corresponding parent cell on the right, and click Bind; the other is to configure directly through the coordinates of the parent cell.

In addition, in order to facilitate the distinction between the main and sub-tables, the table styles of the main and sub-tables can be configured separately through the table filling and table styles above the designer.

After completing all the settings and saving them, you can view the configured main and sub-tables through preview. You can see that on the preview page, the main table is divided according to different fields, and the data in the sub-tables is filtered and displayed according to the fields in the main table.

  1. tree table

Using the form setting in report design can realize the effect of tree table, which is more convenient to display multi-level data. First, create a corresponding template for the age group and the number of people on the page, drag and drop the fields to the corresponding position, and identify the area where the table is located as the extended area.

Secondly, select the age group cell, and select Tree Settings under Morphological Classification in the cell property bar on the right.

After selecting the tree setting, you can configure the tree in detail, click "Set Tree" to enter the configuration page of the hierarchy field. Here we add a model field "gender" to form a hierarchical effect divided by gender under different age groups.

Finally, select the cell to configure the report style and save the preview.

It can be seen that the report displays the personnel data of the first level of age group by default. If you click to expand the first level, you can see the distribution of personnel of different genders under this age group.

  1. data penetration

The report provides an interactive method to achieve data penetration between different reports. Here, the interactive function is used to combine the newly created master and sub-tables with the tree table. Select the data cell on the tree table page, and add link settings in the interaction options under the cell properties on the right.

Select the current analysis object on the link setting page, and select the corresponding jump page at the page selection, add a filter rule in the general filter bar below, and select the corresponding field that matches in the interaction between the two tables. 

After saving the modification, check the effect by previewing the page. It can be seen that the fields in the tree table at this time have become jumpable links. Clicking on the field will jump and display the specific information matching the age group in the main and sub-tables.

To sum up, this article introduces how to use the built-in functions in YonBuilder to create more complex reports such as master-sub-tables and tree tables. In practical applications, as the scale and type of data increase, the relationship between different data becomes more complex. You can use the report configuration in YonBuilder to analyze the data visually and improve the efficiency of data analysis.

If you have any questions, welcome to discuss in the comment area!

Guess you like

Origin blog.csdn.net/weixin_43947457/article/details/128716070