This section explains how to set up CiviReports. It assumes a basic understanding of why you would want to use CiviReport, and describes the workflow for creating a report from a template through to making these reports available for users. It also assumes that the report you require can be achieved using the report templates supplied with CiviCRM.
If the report template you need does not exist you (or your developer) should refer to the Custom Reports chapter in the Extensions section of the Developer Guide for information about creating new templates.
Report templates are general reports that can be further customised to create specific report instances. These report instances can then be made available to users.
The Create new report from templates page lists all available report templates and is found in the Administer > CiviReport menu. The templates are grouped by component, and each has a brief description of its intended scenario. If there are already report instances for a given template, you'll see a link to view Existing Reports.
Clicking on the report template name will bring up a screen where the report can be configured.
There are two steps to configuring a report:
When you create a new report you will be presented with two or more tabs that will let you define the information the will be displayed in your report. The tabs available will depend on the template you have selected with the most common being:
The options available for these criteria change from report to report. General principles for the different types of report criteria are outlined below.
These check boxes allow you to select the data to be displayed for each record in your report. In most reports, at least one display column is required and cannot be unselected. For example in the membership detail report Contact Name and Membership Type are required fileds
This is not available in all reports, but it is useful when creating a report which summarises data, rather than displaying each individual row, and for reports that compare different types of data.
For example you can choose to compare donations per year.
You can specify more than one grouping criteria. When you do this, results will be nested based on both groupings. Not all combinations of groupings will make sense for your data. You may need to spend time experimenting with Group By Columns to become familiar with this functionality.
Note that some Groups By Columns interact with Display Columns and can't be selected at the same time. The system will warn you if you try to make an invalid selection.
This is not available in all reports, but can be useful in "detail" reports as shown below.
Filters are the main way to specify the records that you want to include in the report. For example, running the Membership Detail report without choosing any filters will show you all membership records. You could then filter the report to show all members of a specific membership type who joined last year. Most filter are self-explanatory; the date range filter is explained below.
The Date Range Filter
Most reports will have a date range filter. This can be configured in two ways:
Relative date ranges are very useful for reports that you want to run on an ongoing basis for example:
The "Last ..." ranges are particularly useful when used in combination with Group By Columns. Combining Ending Year with Group By Month gives a report that summarises data by month for the previous 12 months.
The report below shows the total amount of contributions received in the past 12 months, as well as each month's total.
Once you have selected your report criteria, click Preview Report. (You will see that the tabs that define the report settings are now visible.) If the information displayed isn't exactly what you wanted, you can select the appropriate tab to modify your criteria. You may need to make several modifications before you achieve the report you want.
Once you are happy with the report criteria you have entered into the template, you need to save this criteria as a new report so that it can be run again. To do this:
On the Access tab, you can set if and where the report will
appear in the menu. All reports will be included in Report > Report listing. Check Include Report in Navigation Menu? and
specify the parent menu to include the report in another menu. For
example, you might want to add an Event report to the Event menu.
On the Access tab, you can also set up permissions to view or edit reports on a report-by-report basis. This allows you to simplify the user interface for junior users and set sensitive reports to be accessible only to certain users. For example, you might select "access CiviContribute" for contribution reports so that only the people that can see contribution data can access the report.
Alternatively you can limit access to a report to (a) particular ACL role(s). Refer to the Permissions and Access Control in the Initial Set Up chapter.
A Reserved Report can only be altered by someone with the Administer Reserved Reports permission.
Checking the box Available for Dashboard? lets users with appropriate permissions to add this report to their dashboard (this is done by clicking the Configure Your Dashboard button on the individual's dashboard).
Click Create Report. The report will now appear in Reports > All Reports as well as in any navigation menu you defined on the Access tab.
As well as entering the email delivery settings described above, the Mail Reports (mail_report) scheduled job must be enabled to send report emails. Alternatively a cron job can be scheduled to run this specific task apart from other scheduled jobs. The specific report instance and, optionally, format are specified as part of the scheduled job configuration. Refer to the Scheduled Jobs chapter for more information.
There are four permission specifically associated with reports: