- Pentaho 5.0 Reporting by Example
- Mariano García Mattío Dario R. Bernabeu
- 343字
- 2021-08-13 16:24:38
Time for action – modifying the report's footer
We will configure the Details Footer section for it to be repeated on every page of our report. We will configure the top border of the Details Footer section. We will modify the name of the labels on the Details Footer section to match the ones in our data set. Finally, we will modify the SumQty function to perform a sum on the sum_amount
field.
- We will go to Report tree structure (Structure tab) and search the tree for the node by navigating to: Master Report | Group | Details Footer. We will select this node and modify it in the following way:
- Style.repeat-header:
true
This modification will make this section present on every page.
- Style.repeat-header:
- We will delete horizontal-line from the Details Footer section.
- We will go to Report tree structure (Structure tab), navigate to Master Report | Group | Details Body | Details Footer, and set the following:
- Style.top-style:
solid
- Style.top-size:
4.0
- Style.top-color :
#009933
- Style.top-style:
- At this point, we will modify the text belonging to the two labels of the Details Footer section. On the upper label, we will place the text Total Customers, on the lower one we will put Total Amount:
- We will now modify the SumQty function so that it performs a sum on the
sum_amount
field. We will access the Data Panel (Panel tab), inside Functions we will select SumQty and change the following:- Field Name:
sum_amount
Note
We should modify the Function Name of this function, as well as the Product Counter one, but these modifications will not be done now so that we do not introduce too many extra steps. Feel free to perform these changes in your report.
- Field Name:
To see what our report looks like so far we can use the Preview option.
What just happened?
We configured the Details Footer section to be repeated on every page. Also, in this section, we delete the horizontal-line and we set its border top. We configured two labels and the function so that they match our current data set.
- 五筆打字精品教程
- Hands-On G Suite for Administrators
- 新編Office 2016從入門到精通
- Word/Excel 2016商務辦公實戰從新手到高手
- 從零開始學Excel 2010
- WPS Office辦公應用從入門到精通
- 大話PPT:幻燈片制作真經
- Project 2007企業項目管理實踐
- 炫舞Power Point:PPT動畫創意設計
- AI智能辦公實戰108招:ChatGPT+Word+PowerPoint+WPS
- 數據分析:企業的賢內助
- 電腦辦公從入門到精通
- Excel統計分析:方法與實踐
- Unity3D平臺AR與VR開發快速上手
- Word/Excel/PPT 2016從新手到高手(全彩版)