Create the basic graph

Note

The report you are working with has three pages, one for each of three years. The graph you create will be on all three pages. Its format will look the same from page to page, but the data will be for the correct year for each page.

This is what a graph for 2003 looks like. It shows the year’s expenses in five categories.

Shown is the same report as in the previous illustration, but with a bar graph inserted at right that represents the same data visually, with description plotted on the x axis and amount in thousands on the y axis.
  1. Select Insert>Control>Graph from the menu bar.

  2. Click in the middle of the Design view.

    The Graph Data dialog box displays.

    Shown is the Graph Data dialog box. It has drop downs for Rows, Category, Value, and Series, a box at bottom left with icons for the graph types, and a sample graph box on the right that displays a sample for each type as it is selected.
  3. Click the down arrow on the Rows box.

    The drop-down list shows choices for rows.

    Shown is the Graph Data dialog box with the Rows drop down list showing row choices All, Group 1, and Group 2 in a scrollable list.

    The All option includes all rows in the graph. Since you want to have the appropriate graph for each of three years, you do not want to include all rows in the graph at the same time.

    The Group 1 option includes the rows for the current Group 1. Group 1 for this report is grouping by year, so Group 1 is what you want. When you specify Group 1, you ensure that the graph includes only rows from the current year.

  4. Select Group 1.

    Next you fill in the Category and Value boxes. The graph will show expenses for the year by type of expense. (For this graph you do not need to fill in the Series box.)

    The description column provides the categories (Administration, Fees, R&D, Sales & Marketing, Services).

    The sum of the amounts for the four quarters for each category provides the values.

    Shown is the Preview view for the Expenses report. At top center is the title Expenses for 1995, the date and page display at upper right, and the text Amount in thousands shows below the title at lower left. Entries are sorted by Description, with a group of data rows for quarter and amount labeled Administration at top, followed by the total for the group, and then a group of data labeled Fees.
  5. Click the down arrow next to the Category box.

    A drop-down list displays the columns you can choose to supply the categories to use in the graph. (You can think of categories as X values.)

    Shown is the Graph Data dialog box with the Category drop down displaying columns named amount, description, quarter, type, and year.
  6. Select description.

    This specifies that the values in the description column are the categories.

  7. Click the down arrow next to the Value box.

    A drop-down list displays all the choices for the column to supply the values to use in the graph. Notice that the choices include expressions such as counts and sums.

    Shown is the Graph Data dialog box with the Value drop down displaying column choices including amount, count ( description for graph ), count ( quarter for graph ), and so on.
  8. Select sum(amount for graph).

    This specifies that the sum of the amount column is the value. A separate value is calculated for each category within each year.

    Shown is the Graph Data dialog box with the entry sum ( amount for graph ) highlighted in the Value drop down.
  9. Click OK.

    The graph displays in the report. What you see in the Design view is a representation of the graph. To see what it looks like in the report, you need to look at it in the Preview view.

    Shown is the Design view for the expenses report with a small representation at right of the bar graph that will appear in the report.
  10. Look at the graph in the Preview view.

    In the Preview view, InfoMaker displays the data retrieved from the database both in the report and in the graph. The graph is small right now. In a few minutes, you will resize it.

    Shown is the Preview view of the expense report with data retrieved from the database shown both in the report at left and in the bar graph on the right.