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。
根據此邏輯,如果為特定資源流入找到多行,則特定報告期間的可持續性內容類型,則這是一個錯誤場景,並且 SustainabilityContentResourceInflowAggregate 表生成錯誤。
注意
如果度量表中有記錄,但缺少映射到聚合表中必填欄位的屬性,則聚合表生成將失敗。 您需要確保必填欄位的數據可用於 ESG 資料模型 測量表中的所有 記錄。