Changes

Jump to: navigation, search

Summarize iReport Template Data

170 bytes added, 10:59, 8 July 2013
no edit summary
==Editing Summarizing Report Data==__NOEDITSECTION__===Adding a Footer or Summary Section to the Report===__NOEDITSECTION__
Totals, averages, and other summary data are typically found at the end of a grouping or at the end of a report. You may add a section—or ''band'' as it is referred to in iReport—by doing the following:
</ol>
===Displaying Counts===__NOEDITSECTION__
iReport has a built-in variable for calculating the number of records in a report and the number of records in each group if the report contains groups. The number of records in the report is stored in the REPORT_COUNT variable. The number of records in each group is stored in the <''GroupField''>_COUNT where GroupField is the name of the field on which the group is created.
{{note|It may be helpful to add a text label beside any counts that you add to report to identify the value. To add a text label, click the [[Image:iRepText.png]] icon. }}
===Displaying Totals===__NOEDITSECTION__
iReport allows you to display the total of a particular attribute in the report.
</ol>
===Creating Custom Variables===__NOEDITSECTION__
In addition to the built-in functions to calculate the number of records and the sum of a field, iReport also allows you to define a variable. A variable is a named object that stores the result of a calculation. iReport allows you to define new variables and how those variables should be calculated. For example, you may define a variable that calculates the average for a particular field such as the area size. Or, you may wish to display the maximum value of a field. In these situations, you may define a custom variable.
</ol>
==Charts==__NOEDITSECTION__
Charts provide a visual representation of the report data. Before you add a chart to your report, you should ensure that your report contains the following:
*At least one variable that contains a calculation. This calculation may be a count, total, or other custom calculation. These calculated variables define the size of the chart segment.
===Pie Chart===__NOEDITSECTION__
{{note|The sample report ''Pie Chart Sample.jrxm l''in the <''iReport Installation Directory''>\iReports_IMSMA\IMSMA reports directory provides an example of a report that includes a pie chart.}}
</div>
===Bar Charts===__NOEDITSECTION__
{{note|The sample report ''Bar Chart Sample.jrxm l''in the <iReport Installation Directory>\iReports_IMSMA\IMSMA reports directory provides an example of a report that includes a bar chart.}}
</ol>
===Grouped Bar Chart===__NOEDITSECTION__
The horizontal axis of the bar charts discussed in the previous section compared the values of a single variable. For example, the bar chart below compares the number of different activity types.
</ol>
===Stacked Bar Chart===__NOEDITSECTION__
A stacked bar chart is similar to a grouped bar in that it allows you to represent two different fields on the chart. The key difference is that the stacked bar chart layers the values of the series expression (the field represented in the legend) allowing you to easily compare the categories to one another.
4,913
edits

Navigation menu