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 Pro. If necessary, type your user name and password on the ArcGIS Sign In screen and click Sign in.
- Under the list of Recent Templates, click Select another project 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 configure the data, apply field grouping and sorting, and choose a template and styling theme prior to the creation of the report. To learn more about using this pane, see Add a new report to your project.
- Open ArcGIS Pro. 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, 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 beneath 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. Group sorting is set to Ascending by default.
- In the Sorting column, open the (Add item) drop-down menu and select 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 Template drop-down menu and confirm the Attribute List with Grouping template is selected.
- 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 or a report file. In this scenario, a PDF file has been requested..
- Ensure that the report view is active. On the Share tab, in the Export group, click 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, you received 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 Catalog view in the Reports folder.
- In the Contents pane, click the Report Footer element to activate that section 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 Format Text element pane.
- In the Format Text 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 Field 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 Field 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 element to activate it in the view.
- Under Details, on the Format 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 section to activate it in the view.
- In the view, using the resize handle centered at the bottom of the section, drag down to resize the section.
- 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 section 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 Export group, click Report to create a new 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 if 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 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 section and click New Related Report to open the Create New Related Report pane.
- 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 USStates_USCities:Related Report section to view the related report sections.
- Right-click the US Cities Report: Related Report section and click Properties to open the Report Relate 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.
- Under Details, on the Format 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.
- Under Details, on the Format 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 Export group, click Report to create a new 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 if 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 section, since the supplemental page will be used in its place.
- In the Contents pane, right-click the Report section and click Add Page Above .
The Supplemental Page dialog box appears.
- Browse to the Layouts project folder and select the Overview layout. Click OK.
The page is added to the report, but it is not visible in the view.
- In the Contents pane, select the top node US States Report to open the report document view.
- 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 Export group, click Report to create a new 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 if 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 both exported a report as a new PDF and overwrote an existing PDF.