Commodity Position Day over Day for Logistics (RL)
The Analytical Model "Agri Commodity Position Day over Day for Logistics (RL) (SAP_CMM_RL_PositionLogcDoD)" provides the difference in positions of logistics contracts between the selected dates.
This model takes a mandatory prompt for Snapshot To Date and Snapshot From Date to pick the required snapshots from the LocalTable. These dates in the Prompt screen are defaulted to the current day and the previous day for the user to change.

1. Data for this model is replicated from SAP Advanced Commodity Risk Analytics using Replication Flow. By following the layering approach, data is filtered in inbound layers for the selected dates: Snapshot To Date and Snapshot From Date, associated with corresponding dimensions, units of measure in the Harmonization layer.
2. Harmonization layer view Commodity Position Day over Day for Logistics (HL) (SAP_CMM_HL_PositionLogcDoD) of this model contains the Unit Conversion logic that converts the measures that are coming from ACRA in Mass and Volume units to the user-selected mass and volume units from the prompt screen.
3. Inbound layer view: Commodity Position Day over Day for Logistics (IL) (SAP_CMM_IL_PositionLogcDoD) of this model contains a Union node that is based on 2 views of the LocalTable: Commodity Position End of Day for Logistics (LT - SAP ACRA) (SAP_CMM_IL_RA_KF_POSITION_LOGC_EOD), each filtered for the user-selected dates: Snapshot To Date and Snapshot From Date. Measures for the view based on Snapshot From Date are reversed for the sign (negated by multiplying by -1) before the union, so that the aggregation on the union calculates the difference of measures by subtracting the measures of Snapshot From Date from the measures of Snapshot To Date.