Tree-based reports are a common type of reports. From the perspective of development, they actually add reports with several groups and aggregate some data through the group of some fields, this allows end users to get more intuitive data. RS provides a foldable tree property for us to make beautiful fold reports.
The following is a demonstration of its practice.
The data source is:
Select 'a as supplier, 2008 as year, 1 as month, 9 as revenue
Union select 'A' as supplier, 2007,5, 9
Union select 'A' as supplier, 9
Union select 'A' as supplier, 9
Union select 'B' as supplier, 9
Union select 'C' as supplier, 9
Returned data:
Draw a simple layout, and add three groups: supplier, year, and month,
After adding a group, add data to the groupheader respectively. After adding the data, the report is
Set the name of the first cell in the first group in the figure to supplier, the second cell in the second group to year, and the third cell in the third group to month, for example:
After all settings are complete, select the third row and click Properties.
After setting properties, click visibility and set hidden to true. In toggleitem, select supplier.
Set row 4
Set the last line
After the settings are completed, the last foldable figure is: