EmployeeDataAggregate 資料表
重要
這其中部分或所有的功能會做為預覽版本的一部分來提供。 內容和功能隨時可能變更。
EmployeeDataAggregate 聚合表存儲按年度報告的員工詳細資訊,以便可以輕鬆計算員工計數指標。
輸入
它是通過從以下環境、社會和治理 (ESG) 數據模型表中獲取數據來計算的:
員工:此表存儲員工詳細資訊,如員工姓名、性別和出生日期。 要生成聚合表,請填寫以下欄位:
EmployeeRelatedParty:此表存儲員工與一方之間的關係,該方可以是法人或組織。 要生成聚合表,請填寫以下欄位:
- EmployeeId:Employee 表中 Employee 的唯一標識符。
- PartyId:P arty 表中組織/法人的 PartyId。
- EmployeePartyRelationshipTypeId:EmployeePartyRelationshipType.EmployeePartyRelationshipTypeId。 EmployeePartyRelationshipType 是一個引用表,用於捕獲員工與參與方之間關係的性質。 Employee-Employer 是表中已存在的預設值。 使用相同的方法填充 employee 和 organization 之間的關係。 添加自定義值需要相應地修改聚合表計算邏輯。
- RelationshipPeriodStartTimestamp:員工與方關係的開始時間戳。
- RelationshipPeriodEndTimestamp:員工與方關係的結束時間戳。
EmployeeLocation:存儲 Employee 的位置。 用於查找員工工作的國家/地區。 要生成聚合表,請填寫以下欄位:
有關將數據提取、轉換和載入到 ESG 數據模型 表中的詳細資訊,請轉到 ESG 數據資產概述。
此表顯示了 EmployeeDataAggregate 表的列詳細資訊以及 ESG 數據模型 表的 列對應。
資料行名稱 | 可為 null | Description | 對應 ESG 數據模型 |
---|---|---|---|
ReportingPeriod | 必要 | 當前表示日曆年。 | EmployeeRelatedParty.PeriodStartDate 或 EmployeeRelatedParty.PeriodEndDate 的最小年份。 存儲從最小年份 (基於 PeriodStartDate 或 PeriodEndDate) 到當前年份的年份清單,以便進行聚合。 |
EmployeeId | 必要 | Employee 的唯一標識符。 | EmployeeId |
CountryOrRegion | 必要 | 員工工作地點的 CountryOrRegion。 | EmployeeId > EmployeeLocation.LocationId > Location.CountryId > Country.ISOCountryCode |
員工類別 | 必要 | 員工類別。 | 員工.PartyId > Party.PartyTypeId > PartyType.PartyTypeName |
性別名稱 | 必要 | 員工的性別。 | 員工.GenderId > Gender.GenderName |
派對 ID | 必要 | 員工的 PartyId。 | 員工 .PartyId |
聚合邏輯
EmployeeDataAggregate 儲存報告年度員工詳細資訊,以便可以輕鬆計算員工計數指標。 要考慮特定報告年度的員工,請使用“指向時間”方法。 對於每個員工記錄,該邏輯將查找相應的 EmployeeRelatedParty 記錄,其中 EmployeePartyRelationshipTypeId 為 Employee-Employer。
在員工關聯方記錄中,如果存在 Period end date,則它會檢查 Period start date <= Reporting year's end date <=Period end date。 如果滿足條件,則員工考慮該報告年度。
在員工相關記錄中,如果 Period end date (期間結束日期) 不存在,則它會檢查 Period start date(期間開始日期 <)=Reporting year's end date (報告年度結束日期)。 如果滿足條件,則員工考慮該報告年度。
要映射員工的國家/地區,請使用以下邏輯:
對於特定報告年度考慮的每個員工,在 EmployeeLocation 表中查找 EmployeeLocation.PeriodStartTimestamp <= 報告年度結束日期 <=EmployeeLocation.PeriodEndTimestamp 的記錄。
注意
如果度量表中有記錄,但缺少映射到聚合表中必填欄位的屬性,則聚合表生成將失敗。 您需要確保必填欄位的數據可用於 ESG 資料模型 測量表中的所有 記錄。
CreateAggregateForEmployeeMetrics_INTB 筆記本包含用於生成 EmployeeDataAggregate 的計算邏輯。