Table Management: Summary
## Overview
The number of records in the "Child Table" to which a "[Link](/en/manual/table-management-choices-text-link)" has been set, as well as the sum, average, maximum, and minimum of the "[Numerical Item](/en/manual/table-management-num)", are stored in the "[Numerical Item](/en/manual/table-management-num)" of the records to which the link has been set in the "Parent Table". The "「Summary」" function works when a linked child record is added, updated, or deleted.
## Limitations
1. If the link item is set to multiple selections, it cannot be aggregated correctly.
1. If child records exist before the summary settings are made, the sync function must be used to reflect the aggregation results.
1. The summary function only works one level from the "Child Table" to the "Parent Table". Even if a summary is set for the "Parent Table" to its "Parent Table", multi-level summarization will not be performed.
## Prerequisites
1. "Site Administration Permission" is required to configure settings.
1. To use the summary function, set a "[Link](/en/manual/table-management-choices-text-link)" to the child table as a preliminary step.
## Operation Procedure
1. Open the "Child Table" where a "[Link](/en/manual/table-management-choices-text-link)" is set.
1. Click "[Table Management](/en/manual/table-management)" from the "Manage" menu.
1. Open the "「Summary」" tab.
1. Click the "Create New" button.
1. In "[Site](/en/manual/site)" on the left side of the dialog, set the "Parent Table" where the summary results will be saved.
1. In "[Item](/en/manual/table-management-column)" on the left side of the dialog, set the "[Item](/en/manual/table-management-column)" of the "Parent Table" where the summary results will be saved.
1. If "[View](/ja/manual/table-management-view)" is set for "Parent Table", you can specify "[View](/ja/manual/table-management-view)" for "「Condition」" on the left side of the dialog, "「Summary」" will not be performed for "Parent Record" that do not match the "[Filter](/en/manual/table-management-filter)" specified for "[View](/ja/manual/table-management-view)".
1. If "「Condition」" is selected on the left side of the dialog, you can specify "Set to zero if the condition is not met". Check this box to store zero when the "[View](/ja/manual/table-management-view)" condition is not met. If this box is unchecked, the numerical value will not change.
1. In "Link Item" on the right side of the dialog, set the "[Item](/en/manual/table-management-column)" that is associated with the "Parent Table".
1. In "Summary Type" on the right side of the dialog, set either count, total, average, maximum, or minimum.
1. Set the "[Numerical Item](/en/manual/table-management-num)" that contains the numerical value to be aggregated in the "Summary Item" on the right side of the dialog. If "Summary Type" is set to "Count", this item will not be displayed.
1. If [View](/ja/manual/table-management-view) is set in the "Child Table", you can specify "[View](/ja/manual/table-management-view)" in "「Condition」" on the right side of the dialog. "Child Record" that do not match the "[Filter](/en/manual/table-management-filter)" specified in "[View](/ja/manual/table-management-view)" will not be aggregated in the summary.
1. Click the "Add" button.
1. Click the "Update" button at the bottom of the screen.
1. If there are already records to be aggregated, check the target "「Summary」" and click the "Sync" button to execute the summary of the existing records.
## Operation Image
![image](https://pleasanter.org/binaries/5280a4bb2c44492e8062b35e49a8f4ee)
You can select the summary type from "Count", "Total", "Average", "Minimum", and "Maximum". In this case, insert the "Total (Set by Summary Type)" of the "Amount" item of the child table for which the summary is set into the "Purchase Total" item of the parent table "Business Negotiation" table. Data registered before the summary setting registration will not be aggregated, so click the "Sync" button after setting. To synchronize, check the box to the left of the row of the summary you want to synchronize from the list and click the "Sync" button.
![image](https://pleasanter.org/binaries/a72d7f73fb7d4c73b1c9110c88044ea5)
## Usage Example
As an example, create an application to manage inventory.
![image](https://pleasanter.org/binaries/2b07b1e86040446b9900abd6139e6622)
Create two record tables: Inventory Management and Inbound/Outbound Management.
Inventory Management Table
![image](https://pleasanter.org/binaries/6adfc68e31c249529441e9e8f3885cdb)
Inbound/Outbound Management Table
![image](https://pleasanter.org/binaries/5e215d2b90ac4778a75cc45274ec1290)
Link the Inventory Management table as the parent and the Inbound/Outbound Management table as the child.
![image](https://pleasanter.org/binaries/3387f71b938f416d9b2e949b35da1b80)
Since the Inventory Management table will be the master for products, register the product names.
Leave the inbound quantity, outbound quantity, and inventory quantity as zero since they will be calculated automatically.
![image](https://pleasanter.org/binaries/28defb6334c1465e92f3d41891b694b1)
Set up the calculation formula to automatically calculate the inventory quantity.
![image](https://pleasanter.org/binaries/19c7520007ce4e1a97ec02c9b9f19b4f)
Set up the summary in the Inbound/Outbound Management table as follows to automatically calculate the inbound and outbound quantities.
![image](https://pleasanter.org/binaries/cb5867dafb0a4776914cbb085e4ce791)
![image](https://pleasanter.org/binaries/7751ff81f40541b9bfec0fec26102363)
![image](https://pleasanter.org/binaries/1d2f8ffa848742cf8d515a79139f91d3)
Create a new record in the Inbound/Outbound Management table.
The product name linked to the Inventory Management table will be displayed in the product name linked to the Inventory Management table.
![image](https://pleasanter.org/binaries/66287489ba4c41b9b64e5f73eca6c8ef)
Enter the outbound quantity and register.
![image](https://pleasanter.org/binaries/476e9d85f14743b6a26a2d91a2ef3d36)
The content registered in the Inbound/Outbound Management table is automatically reflected in the Inventory Management table.
![image](https://pleasanter.org/binaries/08063d42ac6f42f2bb900e1410d26bfc)
## Related Information
<div id="ManualList"><ul><li><a href="/en/manual/site">Site Function</a><span>10.07.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management">Manage Table</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-column">Manage Table: Column</a><span>10.07.2024 up</span></li>
<li><a href="/en/manual/table-management-num">Manage Table: Column: Numerical Value</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-choices-text-link">Manage Table: Editor: Column Advanced Settings: Option List: Link</a><span>10.11.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-filter">Manage Table: Filter</a><span>10.02.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/table-management-view">Manage Table: View</a><span>10.03.2024 up</span></li></ul></article>
<ul><li><a href="/en/manual/api-view">開発者向け機能:JSONデータレイアウト:View</a><span>11.06.2023 up</span></li></ul></article></div><input id="SearchTextHidden" type="hidden" value="" />