Example 2: Charting summary data
This example is based on the membership database of a fictitious travel firm, The Corporate Travelers Club. Use the FileMaker Pro tutorial sample file, Sample.fp7, to create this chart. The sample file is located in:
FileMaker Pro 11/English Extras/Tutorial
FileMaker Pro 11 Advanced/English Extras/Tutorial
In this example, you will create a pie chart that displays the number of travel club members employed by each of the three companies in the sample database. The pie chart shows the percentage of total members held by each company.
1.
|
Right-click the Company column heading and choose Sort Ascending to sort the data in alphabetical order by company name.
|
2.
|
Right-click the Company column heading and choose Add Trailing Group by Company in the shortcut menu.
|
3.
|
Right-click the Company heading, choose Trailing Subtotals and select Count in the shortcut menu.
|
1.
|
Choose View menu > Layout Mode to switch to layout mode.
|
3.
|
For Layout Name, type Membership Chart.
|
4.
|
Select Blank layout, then click Finish.
|
1.
|
Click the Chart tool in the status toolbar, then click in the body layout part and drag a large rectangle where you want the chart to appear.
|
|
|
|
Note The chart preview updates when you make formatting changes to chart settings. However, the chart does not show data from your database until you view the chart in Browse, Find, or Preview modes.
|
|
Type Membership by Company
Note FileMaker Pro encloses your title text in quotation marks when you click outside the Chart Title field.
|
|
Click , choose Specify Field Name, choose Current Table (Members), choose Company in the list, then click OK.
|
|
Click , choose Specify Field Name, choose Current Table (Members), choose Company Count in the list, then click OK.
|
|
Choose Current Found Set and select Show data points for groups of records when sorted.
When you select Show data points for groups of records when sorted and sort by the Label Data field, FileMaker Pro charts summary data based on the Label Data series.
|
3.
|
Click OK to close the dialog box.
|
•
|
Click Save Layout, then Exit Layout in the layout bar.
|
You see the finished chart. In pie charts, FileMaker Pro calculates and displays percentages for each portion of the whole.
Important In FileMaker Pro, charts update dynamically as data changes. This chart will remain accurate as long as you maintain the sort order and grouping you set up for this chart. If you change the sort order or grouping, the chart will no longer show your data comparison.