摘要(Summarize)#
使用汇总节点以类似于 Excel 数据透视表的方式聚合项目。
🌐 Use the Summarize node to aggregate items together, in a manner similar to Excel pivot tables.
节点参数(Node parameters)#
要汇总的字段(Fields to Summarize)#
使用这些字段来定义你希望如何汇总输入数据。
🌐 Use these fields to define how you want to summarize your input data.
- 聚合:选择要在给定字段上使用的聚合方法。选项包括:
- 追加: 追加
- 如果你选择此选项,请决定是否要包含空值。
- 平均值:计算你的输入数据的数值平均值。
- 串联:将输入数据中的值组合在一起。
- 如果你选择此选项,请决定是否要包含空值。
- 分隔符:选择你想在连接的值之间插入的分隔符。
- 计数:计算输入数据中的总值数量。
- 计算唯一值:计算输入数据中唯一值的数量。
- Max:在你的输入数据中找到最高的数值。
- 最小值:在你的输入数据中找到最低的数值。
- 求和:将输入数据中的数值相加。
- 追加: 追加
- 字段:输入你要进行聚合操作的字段名称。
要拆分的字段(Fields to Split By)#
输入你想按其拆分摘要的输入字段名称(类似于分组语句)。这允许你根据其他字段的值获取单独的摘要。
🌐 Enter the name of the input fields that you want to split the summary by (similar to a group by statement). This allows you to get separate summaries based on values in other fields.
例如,如果我们的输入数据包含 Sales Rep 和 Deal Amount 列,并且我们对 Deal Amount 字段执行 求和,我们可以按 Sales Rep 拆分,以获得每个销售代表的 求和 总计。
🌐 For example, if our input data contains columns for Sales Rep and Deal Amount and we're performing a Sum on the Deal Amount field, we could split by Sales Rep to get a Sum total for each Sales Rep.
要输入多个要拆分的字段,请输入以逗号分隔的列表。
🌐 To enter multiple fields to split by, enter a comma-separated list.
节点选项(Node options)#
如果未找到字段则继续(Continue if Field Not Found)#
默认情况下,如果 要汇总的字段 不存在于任何项目中,该节点会抛出错误。使用此选项可以继续操作并返回一个空项目(开启状态),或者保持默认的错误行为(关闭状态)。
🌐 By default, if a Field to Summarize isn't in any items, the node throws an error. Use this option to continue and return a single empty item (turned on) instead or keep the default error behavior (turned off).
禁用点号表示法(Disable Dot Notation)#
默认情况下,n8n 启用点符号来引用格式为 parent.child 的子字段。使用此选项可以禁用点符号(开启状态)或继续使用点符号(关闭状态)。
🌐 By default, n8n enables dot notation to reference child fields in the format parent.child. Use this option to disable dot notation (turned on) or to continue using dot (turned off).
输出格式(Output Format)#
选择输出格式。如果你使用按字段分割,建议使用此选项
🌐 Select the format for your output format. This option is recommended if you're using Fields to Split By
- 每个拆分为单独项:使用此选项为每个拆分出的字段生成一个单独的输出项。
- 单项中的所有拆分:使用此选项可以生成一个列出拆分字段的单一项目。
忽略没有有效分组字段的项(Ignore items without valid fields to group by)#
设置是否忽略不包含 拆分字段 的输入项(开启时忽略,关闭时不忽略)。
🌐 Set whether to ignore input items that don't contain the Fields to Split By (turned on) or not (turned off).
模板和示例(Templates and examples)#
相关资源(Related resources)#
Learn more about data structure and data flow in n8n workflows.