You will find below the details of the processing steps for these data.

In this first step, we perform a bit of data filtering and cleaning and then aggregate the forecast data at a CPC level.
The data we get from the data lake is at a CPC + distribution channel + month level. This means that each distribution channel for a given CPC can have its own value for some dimensions (especially incoterms, group of activity and enterprise segment).
Given the fact that we only want one record by CPC, we will keep the values associated to the highest amount of sales, following these steps :
The output of this first step therefore contains the forecasted data aggregated at a CPC level, which means we always get 1 record for each CPC :
This is the equivalent of the forecast data cleaning step.
Note that :
The output of this first step contains the historical data aggregated at a CPC + incoterms + month level, which means we always get 1 record for each CPC, incoterms and month.
The data we get from the data lake is at a CPC + incoterms + month level. Each incoterms for a given CPC can have its own value for some dimensions
Given the fact that we only want one record by CPC, we will keep the values associated to the highest amount of sales, following these steps :
The output of this first step contains the historical data aggregated at a CPC level, which means we always get 1 record for each CPC.
In this step, we are merging together the forecast and historical data. For each of the dimension, we take the value from the forecast data when available, else we revert to the value of the historical data.
It allows us to fill some missing data in the forecasts and therefore still keep the CPC in the analysis.
For the following measures, we keep both the forecasted and historical values in their dedicated fields : sales, volume, last invoice price.
We therefore end up with a dataset having one record by CPC and one value for every dimensions, as long as both the historical and forecasted measures.
What we call the unified timeline is the dataset we get by combining the historical and forecast data as described above. Once we do this, we can apply our last steps of data preparation.
Removal of the records having no product_line_04 or forecast_qty_vkg
Since now, we did not manipulate unit prices at all, even if they are the central element of our price optimization. Indeed, due to the previously mentioned aggregation steps, we can not use the unit prices directly available in the Data Lake but we can compute it again based on the sales and volumes we have at this stage.
For some of our features, we have to use the sales amount of the CPC.
Due to the fact that we only filter out CPC having no forecasted volume, we still face (rare) situations in which a CPC has forecasted volume but no sales related. When it happens, the unit price we get is from the historical data and the CPC kept in our models. Therefore, we also have to re-compute the sales based on the final unit price (which should be equivalent as the historical sales).
This boolean feature is computed based on the gbu_customer_seg data : the feature value is true if it contains "Distributor", else false
[
'shipto_customer_medium_name',
'group_of_activity_id',
'group_of_activity_name',
'country_ship_to_id',
'gbr_enduse_name',
'gbr_enterprise_segment_w_name',
'gbu_customer_segment_name',
'product_id',
'gbu_product_family_name',
'soldto_customer_id',
'soldto_customer_medium_name',
'material_id',
'shipto_customer_id',
'soldto_customer_corporate_group_id',
'soldto_customer_corporate_group_name',
'incoterms_id',
'manufacturing_plant_id',
'gbr_market_name',
'forecast_qty_vkg',
'forecast_net_price_eur_vkg',
'forecast_sales_eur',
'last_invoice_price_eur_vkg',
'shipto_customer_corporate_group_id',
'shipto_customer_corporate_group_name',
'manufacturing_plant_name',
'forecast_dt',
'shipping_plant_id',
'country_ship_to_name',
'h4_l4_name',
'final_consignee_id',
'final_consignee_customer_medium_name',
'final_consignee_customer_corporate_group_name'
]
[
'shipto_customer_medium_name',
'group_of_activity_id',
'group_of_activity_name',
'country_ship_to_id',
'gbr_enduse_name',
'gbr_enterprise_segment_w_name',
'gbu_customer_segment_name',
'product_id',
'gbu_product_family_name',
'soldto_customer_id',
'soldto_customer_medium_name',
'material_id',
'shipto_customer_id',
'soldto_customer_corporate_group_id',
'soldto_customer_corporate_group_name',
'incoterms_id',
'manufacturing_plant_id',
'gbr_market_name',
'qty_sold_external_vkg',
'unit_price_eur_vkg',
'net_sales_external_eur',
'last_invoice_price_eur_vkg',
'shipto_customer_corporate_group_id',
'shipto_customer_corporate_group_name',
'manufacturing_plant_name',
'pnl_posting_month_dt',
'last_invoice_price_pnl_posting_month_dt',
'shipping_plant_id',
'country_ship_to_name',
'h4_l4_name',
'final_consignee_id',
'final_consignee_customer_medium_name',
'final_consignee_customer_corporate_group_name'
]
![]()
- Both product composition files are provided in this GSheet file for now. This source will have to be industrialized through the data lake.
- In the Python recipe, we compute the product composition features at a product level by aggregating together the different substances having the same component type.
- The Join recipe adds the material code to the dataset using the "EHS_Product" key mapping.

Note : Contracts data are not currently used as features because too few CPCs are under contract in the data we use.
- Both contracts files are provided in this GSheet file for now. This source will have to be industrialized through the data lake if used in the future.
- In the first prepare recipe, we only keep the contracts with a "Signed" status as the other ones are not considered active.
- We then group the dataset by CPC to only keep one contract if several are active. We currently do not have a rule to define priorities so we keep one randomly.
All data preparation relating to a specific GBU is carried out in a dedicated module in the project's library called GBU-specific processing.
For Novecare, the specific data processing for this GBU are as follows:
- For Sulfosuccinates_Healthcare family:
- For Phosphate_Esters family: