SustainabilityContentResourceInflowsAggregate 表
重要提示
此功能的部分或全部属于预览版内容。 相关内容和功能可能会发生更改。
SustainabilityContentResourceInflowsAggregate 聚合表按资源流入、资源流出、设施和报告周期存储适用可持续内容类型的每个资源流入的聚合“可持续内容”。
CreateAggregateForResourceInflowsSustainabilityContentMetrics_INTB 笔记本包含计算逻辑。
输入
要生成此聚合表,ResourceInflowsAggregate 表应已存在。 此外,您需要将 适用资源流入的可持续内容基准百分比存储在 ProcessedESGData_LH 湖屋的 ItemSustainableContentBaseline 环境、社会和治理(ESG)数据模型表中。
备注
SustainableContentType 是一个引用表,其中包含一组默认的可持续内容类型。 您可以向此表添加所需的可持续内容类型。
有关将数据提取、转换和加载到 ESG 数据模型 表中的详细信息,请转到 ESG 数据资产概述。
下表显示了 SustainabilityContentResourceInflowsAggregate 表的列详细信息以及列到 ESG 数据模型 表的映射。
列名称 | 可为 null | Description | 映射到 ESG 数据模型或聚合表 |
---|---|---|---|
设施 ID | 必需 | 设施的唯一标识符。 | ResourceInflowAggregate.FacilityId |
设施名称 | 可选 | 设施名称 | ResourceInflowsAggregate.FacilityName |
ReportingPeriod | 必需 | 指示 ResourceInflowSustainableContentWeight 的聚合周期。 目前仅支持日历年。 | ResourceInflowAggregate.ReportingPeriod |
资源流出 ID | 可选 | 设施中产生的资源流出的唯一标识符 | ResourceInflowAggregate.ResourceOutflowId |
ResourceOutflowName(资源输出名称) | 可选 | 设施中生成的资源流出的名称 | ResourceInflowAggregate.ResourceOutflowName |
ResourceInflowId | 必需 | 在设施中用于生成资源流出 Item 的 Item 的唯一标识符。 | ResourceInflowAggregate.ResourceInflowId |
ResourceInflowName(资源内流名称) | 可选 | 在工厂中生产的物料的名称 | ResourceInflowAggregate.ResourceInflowName |
IsPackaging | 可选 | 用于识别资源流入是否为特定资源流出的包装材料的指示器 | ResourceInflowAggregate.IsPackaging |
SustainableContentTypeName | 必需 | Sustainable 内容类型的名称,例如 Recyclable(可回收)或 Reused(已重复使用)。 | ItemSustainableContentBaseline.SustainableContentTypeId > SustainableContentType.SustainableContentTypeName |
ResourceInflowSustainableContentBaselinePercentage | 必需 | 根据可持续内容类型,输入材料/资源流入中可持续内容类型的百分比。 | ItemSustainableContentBaseline.ItemSustainableContentBaselinePercentage |
ResourceInflowSustainableContentWeight | 必需 | 特定可持续内容类型的可持续内容的权重:输入材料/资源流入。 | ResourceInflowSustainableContentBaselinePercentage * ResourceInflowAggregate.ResourceInflowWeight |
UnitOfMeasureName(度量单位名称) | 必需 | ResourceInflowSustainableContentWeight 的度量单位。 | ResourceInflowAggregate.UnitOfMeasureName |
ResourceInflowTypeName(资源内流类型名称) | 必需 | 资源流入的类型,例如组件、材料或关联的流程材料。 | ResourceInflowAggregate.ResourceInflowTypeName |
聚合逻辑
对于每个报告期(来自 ResourceInflowsAggregate.ReportingPeriod),对于 ResourceInflowId(ResourceInflowsAggregateTable.ResourceInflowId = ItemSustainableContentBaseline.ItemSKU),请查找 适用于报告期的 SustainableContentType 和 ItemSustainableContentBaselinePercentage (ItemSustainabilityContentPeriodStartDate <= ResourceInflowsAggregate.Reporting Period's end date <= ItemSustainabilityContentPeriodEndDate)。
对于每个资源流入,计算每个报告周期中每种可持续内容类型的 ResourceInflowSustainabilityContentWeight = Item SustainableContentBaselinePercentage * ResourceInflowsAggregate.ResourceInflowWeight。
根据此逻辑,如果为特定资源流入找到多行,则为特定报告期间的 Sustainability 内容类型找到多行,则为错误场景,并且 SustainabilityContentResourceInflowAggregate 表生成错误。
备注
如果度量表中有记录,但缺少映射到聚合表中必填字段的属性,则聚合表生成将失败。 您需要确保必填字段的数据可用于 ESG 数据模型 测量表中的所有 记录。