Tutorial: Create and modify a report

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.

  1. Go to the item description web page of the Cities in the United States report tutorial project template on arcgis.com.
  2. Click Download to save the template locally.
  3. Start ArcGIS Pro. If necessary, type your user name and password on the ArcGIS Sign In screen and click Sign in.
  4. Under the list of Recent Templates, click Select another project template.

    The Create New Project From Template dialog box appears.

  5. Browse to your locally saved file, select it, and click OK.

    The Create a New Project dialog box appears.

  6. 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.

  1. Open ArcGIS Pro. If necessary, sign in to ArcGIS Online.
  2. Open the Cities in the United States report tutorial project template you downloaded.
  3. On the Insert tab, in the Project group, click New Report New Report to open the Create New Report pane.
  4. 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.
  5. Under the Data source heading, click the drop-down menu to select the US States layer.
  6. 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.
  7. On the Filter the data page, uncheck the Select all option to deselect all fields.
  8. Under the Fields heading, check the Abbreviation, State Name, Subregion, and Population 2000 fields to include them in the report.
  9. Drag Abbreviation so that it is beneath State Name.
  10. 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.
  11. 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.
  12. In the Sorting column, open the (Add item) drop-down menu and select State Name. Sorting direction is similarly set to Ascending by default.
  13. 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.
  14. 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.
  15. Click the Styling drop-down menu and choose the Cool Tones styling theme.
  16. 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.

  17. 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..

  1. Ensure that the report view is active. On the Share tab, in the Output group, click Export Report Export Report to PDF.
  2. In the Export Report pane, browse to the location to save the PDF file.
  3. Update or accept the file name.
  4. 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.
  5. 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.

  1. 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.
  2. In the Contents pane, click the Report Footer element to activate that section in the view.
  3. On the Insert tab, in the Data group, click the Statistics drop-down gallery and select Mean to open the Insert Statistic dialog box.
  4. Click the Field drop-down menu, select Population (2000), and click OK.
  5. In the view, drag a box above the Count: {Count:SUB_REGION} element to outline the new statistic element location.
  6. Right-click the new {MEAN: POP2000} element and click Properties to open the Format Text element pane.
  7. In the Format Text element pane, ensure that Tag View Tag View is turned on for the Text box.
  8. In the Text box, click the field-mean button to open the Update Field Statistic window.
  9. On the Update Statistic dialog box, click the Number Format Properties button Properties to the right of the Number Format drop-down menu.
  10. Under Rounding, change the Decimal places value to zero.
  11. Check the Show thousands separator option and click OK to save these formatting changes.
  12. Click OK to close the Update Field Statistic dialog box and save the changes.
  13. 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.

  14. In the Contents pane, select the Details element to activate it in the view.
  15. Under Details, on the Format tab, in the Size group, change the Height value to 1.25.
  16. On the Insert tab, in the Data group, click the Dynamic Picture button Dynamic Picture to open the Insert Dynamic Picture dialog box.
  17. In the Field drop-down menu, choose State seal and click OK.
  18. In the view, drag a box to the right of the {POP2000} element to insert the dynamic picture element.
  19. 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.
  20. In the Contents pane, click the Group Footer: SUB_REGION section to activate it in the view.
  21. In the view, using the resize handle centered at the bottom of the section, drag down to resize the section.
  22. On the Insert tab, in the Data group, click the Chart Frame drop-down menu to select the Total Population by Subregion chart.
  23. 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.

  24. With the report view active, on the Share tab, in the Output group, click Export Report Export Report to PDF to create a new PDF that reflects the updates.
  25. In the Export Report pane, browse to the location to save the PDF file.
  26. Update or accept the file name and ensure the Embed Fonts option is checked.
  27. 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.

  1. 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.
  2. In the Contents pane, right-click the Details section and click New Related Report Add Related Report to open the Create New Related Report pane.
  3. 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.
  4. On the Filter the data page, uncheck the Select all option to deselect all fields.
  5. Under the Fields heading, check the City Name, City FIPS, and Elevation fields to include them in the related report.
  6. 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.
  7. Click Next to continue to the Design the related report options.
  8. 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.
  9. In the Contents pane, expand the US Cities Report: Related Report section to view the related report sections.
  10. Right-click the US Cities Report: Related Report section and click Properties to open the Related Report Properties dialog box.
  11. On the General tab, change the Name value to Cities in the USA.
  12. 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.
  13. Click OK to save these changes.
  14. In the Contents pane, select US Cities Report: Page Header.
  15. Under Page Header, on the Format tab, in the Appearance group, use the color palette to set the Background Color value to Gray 30%.
  16. In the Contents pane, select US Cities Report: Details.
  17. Under Details, on the Format tab, in the Appearance group, use the color palette to set the Background Color value to Gray 10%.
  18. Check the Alternate row color option and use the color palette to set the color to Gray 30%.
  19. With the report view active, on the Share tab, in the Output group, click Export Report Export Report to PDF to create a new PDF that reflects the updates.
  20. In the Export Report pane, browse to the location to save the PDF file.
  21. Update or accept the file name and ensure the Embed Fonts option is checked.
  22. 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.

  1. 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.
  2. In the Contents pane, turn off the report header section, since the supplemental page will be used in its place.
  3. In the Contents pane, right-click the Report section and click Add Page Above Add Page Above.

    The Supplemental Page dialog box appears.

  4. 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.

  5. In the Contents pane, select the top node US States Report to open the report document view.
  6. In the report document view, right-click the Supplemental Page section and select Open and Edit Layout Open and Edit Layout.
  7. 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.
  8. With the report view active, on the Share tab, in the Output group, click Export Report Export Report to PDF to create a new PDF that reflects the updates.
  9. In the Export Report pane, browse to the location to save the PDF file.
  10. Update or accept the file name and check Embed Fonts.
  11. 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.

Related topics