In this tutorial, you'll learn how to create a report from a feature class in a file geodatabase, modify it to meet additional needs, and include a related report and supplemental page.
In this scenario, you have been asked to generate a report that contains city and state information. You have been given a regional map with an accompanying layout. The focus of this report is a basic listing of cities and states by region. You have been asked to provide a PDF format file of the final report to share with all interested parties.
Get the data
The data for this tutorial is available for download on ArcGIS Online.
- Go to the item description web page of the Cities in the United States report tutorial project template on arcgis.com.
- Click Download to save the template locally.
- Start ArcGIS AllSource. If necessary, type your username and password on the ArcGIS Sign In screen and click Sign in.
- Next to the Recent Templates heading, click Start with another template .
The Create New Project From Template dialog box appears.
- Browse to your locally saved file, select it, and click OK.
The Create a New Project dialog box appears.
- Provide values for Name and Location, and click OK.
The new project, based on the downloaded template, opens.
Design the report
First, you need to create a report specific to this scenario. You will use the Create New Report pane to choose a template, configure the data, apply field grouping and sorting, and choose a styling theme prior to the creation of the report. To learn more about using this pane, see Add a new report to a project.
- Start ArcGIS AllSource. If necessary, sign in to ArcGIS Online.
- Open the Cities in the United States report tutorial project template you downloaded.
- On the Insert tab, in the Project group, click New Report to open the Create New Report pane.
- In the Create New Report pane, click the Use a default Esri template button then pick the Attribute List with Grouping template in the drop-down menu.
- Click Next to continue to the Set the data source options, then change the Report Name field to US States Report. To learn more about the settings on this page of the pane, see Set the data source.
- Under the Data source heading, click the drop-down menu to select the US States layer.
- Click Next to continue to the Filter the data options. To learn more about the settings on this page of the pane, see Filter report data.
- On the Filter the data page, uncheck the Select all option to deselect all fields.
- Under the Fields heading, check the Abbreviation, State Name, Subregion, and Population 2000 fields to include them in the report.
- Drag Abbreviation so that it is under State Name.
- Click Next to continue to the Organize the data options. To learn more about the settings on this page of the pane, see Organize report data.
- On the Organize the data page, under the Grouping and Sorting heading, in the Grouping column, open the (Add item) drop-down menu and select Subregion {SUB_REGION}. Group sorting is set to Ascending by default.
- In the Sorting column, open the (Add item) drop-down menu and select State Name {STATE_NAME}. Sorting direction is similarly set to Ascending by default.
- Click Next to continue to the Design the report options. To learn more about the settings on this page of the pane, see Design the report.
- On the Design the report page, under the Display heading, click the Styling drop-down menu and choose the Cool Tones styling theme.
- Click the Margins drop-down menu and choose Narrow.
For reference, the measurements for the current margin are listed below the Margins menu. Margin areas are cropped in the report view but are visible when the report is exported.
- Click Finish to generate the report using the current configuration.
The report is added to the project and opened.
Export the report as a PDF
The next step is to export and share the report. A report can be shared as either a PDF file, a report file, or a report template. In this scenario, a PDF file has been requested.
- Ensure that the report view is active. On the Share tab, in the Output group, click Export Report .
- In the Export Report pane, browse to the location to save the PDF file.
- Update or accept the file name.
- In the Fonts group, confirm Embed Fonts is checked to support proper display of the exported report. This way, if anyone reading the PDF does not have Esri fonts installed, the content will display correctly.
- Click Export.
When the export is finished, a green bar appears at the bottom of the pane stating that it has completed. Click View exported file to open the resulting PDF in your default PDF viewer. It can then be shared.
Modify the existing report in the report view
After sharing the PDF report with your colleagues, you receive feedback requesting additional information. You will now modify your report using the Report ribbon to include the following updates: add a summary statistic, add a dynamic picture, and include a chart.
- If necessary, open the US States Report you created earlier.
Reports, like other project items, are listed in the Catalog pane and in catalog views in the Reports folder.
- In the Contents pane, click the Report Footer element to activate that subsection in the view.
- On the Insert tab, in the Data group, click the Statistics drop-down gallery and select Mean to open the Insert Statistic dialog box.
- Click the Field drop-down menu, select Population (2000), and click OK.
- In the view, drag a box above the Count: {Count:SUB_REGION} element to outline the new statistic element location.
- Right-click the new {MEAN: POP2000} element and click Properties to open the Element pane.
- In the Element pane, ensure that Tag View is turned on for the Text box.
- In the Text box, click the field-mean button to open the Update Statistic window.
- On the Update Statistic dialog box, click the Number Format Properties button to the right of the Number Format drop-down menu.
- Under Rounding, change the Decimal places value to zero.
- Check the Show thousands separator option and click OK to save these formatting changes.
- Click OK to close the Update Statistic dialog box and save the changes.
- In the Text box, click to place the cursor before the field-mean button and type "Average population: ". Press the Tab key.
The text value updates in the view as well. A red ellipsis may appear next to the text box to indicate that some text will be cut off in the final PDF. If necessary, drag the resize handles and expand the width to remove the ellipsis.
- In the Contents pane, select the Details subsection to activate it in the view.
- On the Details tab, in the Size group, change the Height value to 1.25.
- On the Insert tab, in the Data group, click the Dynamic Picture button to open the Insert Dynamic Picture dialog box.
- In the Field drop-down menu, choose State Seal and click OK.
- In the view, drag a box to the right of the {POP2000} element to insert the dynamic picture element.
- If necessary, open and activate the USA map. In the Contents pane, note that the US States layer has one chart: Total Population by Subregion. Return to the US States Report.
- In the Contents pane, click the Group Footer: SUB_REGION subsection to activate it in the view.
- In the view, using the resize handle centered at the bottom of the subsection, drag down to resize the subsection to approximately twice its current size.
- On the Insert tab, in the Data group, click the Chart Frame drop-down menu to select the Total Population by Subregion chart.
- Drag a box at the bottom of the active subsection to place the chart.
The Chart Frame element references the chart in the USA map. If the chart is modified or deleted, those changes will be reflected in the report. You may need to resize the Chart Frame element to view the whole chart.
- With the report view active, on the Share tab, in the Output group, click Export Report to create a PDF that reflects the updates.
- In the Export Report pane, browse to the location to save the PDF file.
- Update or accept the file name and ensure the Embed Fonts option is checked.
- Click Export.
You will be prompted to confirm whether you are overwriting the existing PDF file. Open PDF files cannot be overwritten.
The updated report can now be shared.
Include related data
The PDF report has been sent back to you again with an additional request. You will now modify your report using the Report ribbon to include related data.
- If necessary, open the US States Report you created earlier. Reports, like other project items, are listed in the Catalog pane and Catalog view in the Reports folder.
- In the Contents pane, right-click the Details subsection and click New Related Report to open the Create New Related Report pane.
- In the Create New Related Report pane, pick the Attribute List template in the drop-down menu and click Next.
- Set the Related report name parameter to US Cities Report. In the Relate or relationship class drop-down menu, select the US Cities relationship class and click Next.
- On the Filter the data page, uncheck the Select all option to deselect all fields.
- Under the Fields heading, check the City Name, City FIPS, and Elevation fields to include them in the related report.
- Click Next to continue to the Organize the data options. The properties on the Organize the data page can be modified after creating the report.
- Click Next to continue to the Design the related report options.
- On the Design the related report page, click the Styling drop-down menu and choose the Cool Tones styling theme to match the primary report. Click Finish.
- In the Contents pane, expand the US Cities Report: Related Report section to view the related report subsections.
- Right-click the US Cities Report: Related Report section and click Properties to open the Related Report Properties dialog box.
- On the General tab, change the Name value to Cities in the USA.
- On the Grouping and Sorting tab, under the Sorting column, open the (Add item) drop-down menu and select City Name {CITY_NAME}. Sorting direction is similarly set to Ascending by default.
- Click OK to save these changes.
- In the Contents pane, select US Cities Report: Page Header.
- On the Page Header tab, in the Appearance group, use the color palette to set the Background Color value to Gray 30%.
- In the Contents pane, select US Cities Report: Details.
- On the Details tab, in the Appearance group, use the color palette to set the Background Color value to Gray 10%.
- Check the Alternate row color option and use the color palette to set the color to Gray 30%.
- With the report view active, on the Share tab, in the Output group, click Export Report to create a PDF that reflects the updates.
- In the Export Report pane, browse to the location to save the PDF file.
- Update or accept the file name and ensure the Embed Fonts option is checked.
- Click Export.
You are prompted to confirm whether you are overwriting the existing PDF file. Open PDF files cannot be overwritten.
The updated report can again be shared.
Include a supplemental page
Next, you decide to add a cover page to the report. You will now modify your report using the Report ribbon to include a layout as a supplemental page.
- If necessary, open the US States Report you created earlier. Reports, like other project items, are listed in the Catalog pane and Catalog view in the Reports folder.
- In the Contents pane, turn off the report header subsection, since the supplemental page will be used in its place.
- In the Contents pane, right-click the US States section, expand the Add Above group , and click Add Supplemental Page Above .
The Supplemental Page dialog box appears.
- Browse to the Layouts project folder and select the Overview layout. Click OK.
The report document view is opened and the supplemental page is listed above the US States report.
- In the report document view, right-click the Supplemental Page section and select Open and Edit Layout .
- In the Layout view, double-click the text box at the bottom of the page to edit the text. Add an additional line of text with your name under ArcGIS Pro Tutorial and close the Layout view.
- With the report view active, on the Share tab, in the Output group, click Export Report to create a PDF that reflects the updates.
- In the Export Report pane, browse to the location to save the PDF file.
- Update or accept the file name and check Embed Fonts.
- Click Export.
You will be prompted to confirm whether you are overwriting the existing PDF file. Open PDF files cannot be overwritten.
Summary
In this tutorial, you created a report from a feature layer using the Create New Report pane. This included defining grouping, sorting, summary statistics, selecting a template and styling theme, and setting up the exported page. You updated the properties of elements in an existing report, including text font and color as well as grouping and sorting, and added a new field. A dynamic image, a related report, and a supplemental page were also included. Finally, you exported a report as a new PDF and overwrote an existing PDF.