共用方式為


SustainabilityContentResourceOutflowsAggregate 資料表

重要

這其中部分或所有的功能會做為預覽版本的一部分來提供。 內容和功能隨時可能變更。

SustainabilityContentResourceOutflowsAggregate 聚合表按資源流出、設施和報告週期存儲適用可持續內容類型的每個資源流出的聚合可持續內容。

CreateAggregateForResourceOutflowsSustainabilityContentMetrics_INTB 筆記本包含計算邏輯。

輸入

要生成此聚合表,ResourceOutflowsAggregate 表應已存在。 此外,您需要將適用資源流出的可持續內容基準百分比存儲在 ProcessedESGData_LH 湖存放庫的 ItemSustainableContentBaseline 環境、社會和治理 (ESG) 數據模型表中。

注意

SustainableContentType 是一個引用表,其中包含一組預設的可持續內容類型。 您可以向此表添加所需的可持續內容類型。

有關將數據提取、轉換和載入到 ESG 數據模型 表中的詳細資訊,請轉到 ESG 數據資產概述

下表顯示了 SustainabilityContentResourceOutflowsAggregate 表的列詳細資訊以及 ESG 數據模型 表的 列對應。

資料行名稱 Description 對應 ESG 數據模型或聚合表
設施 ID 設施的唯一識別碼 (必需) ResourceOutflowsAggregate.FacilityId
設施名稱 設施名稱 ResourceOutflowsAggregate.FacilityName
ReportingPeriod 指示 ResourceOutflowSustainableContentWeight 的聚合週期。 目前僅支持日曆年。 (必要項目) ResourceOutflowsAggregate.ReportingPeriod
資源流出 ID 設施中生成的資源流出的唯一標識碼 (必需) ResourceOutflowAggregate.ResourceOutflowId
ResourceOutflowName (資源輸出名稱) 設施中生成的資源流出的名稱 ResourceOutflowAggregate.ResourceOutflowName
SustainableContentTypeName Sustainable 內容類型的名稱,例如 Recyclable 或 Reused。 (必要項目) ItemSustainableContentBaseline.SustainableContentTypeId > SustainableContentType.SustainableContentTypeName
ResourceOutflowSustainableContentBaselinePercentage 基於可持續內容類型的可持續含量在資源流出中的百分比 (必填) ItemSustainableContentBaseline.ItemSustainableContentBaselinePercentage
ResourceOutflowSustainableContentWeight (資源流出可持續內容權重) 特定可持續內容類型資源流出的可持續含量的權重 (必填) ResourceOutflowSustainableContentBaselinePercentage * ResourceOutflowsAggregate.ResourceOutflowWeight
UnitOfMeasureName (度量單位名稱) ResourceOutflowSustainableContentWeight 的度量單位 (必需) ResourceInflowAggregate.UnitOfMeasureName

聚合邏輯

  • 對於每個報告期間 (來自 ResourceOutflowsAggregate.ReportingPeriod),對於 ResourceOutflowId (ResourceOutflowsAggregateTable.ResourceOutflowId = ItemSustainableContentBaseline.ItemSKU),請查找 適用於報告期間的 SustainableContentTypeItemSustainableContentBaselinePercentage (ItemSustainabilityContentPeriodStartDate <= ResourceOutflowsAggregate.Reporting Period's End date <=ItemSustainabilityContentPeriodEndDate)。

  • 對於每個資源流出,計算每個報告期間每個可持續內容類型的 ResourceOutflowSustainabilityContentWeight = Item SustainableContentBaselinePercentage * ResourceOutflowsAggregate.ResourceOutflowWeight。

  • 根據此邏輯,如果找到特定資源流出的多行,則特定報告期間的 Sustainability 內容類型,則為錯誤場景,並且 SustainabilityContentResourceOutflowAggregate 表生成錯誤。

注意

如果度量表中有記錄,但缺少映射到聚合表中必填欄位的屬性,則聚合表生成將失敗。 您需要確保必填欄位的數據可用於 ESG 資料模型 測量表中的所有 記錄。