Order and Order Line Revenue
This page provides detailed instructions on the Order and Order Line Revenue Code transform code block and what should be added to the Script Manifest file in order to execute the code
Script Manifest File (YML)
Upstream Transformation Dependencies
This code block is dependent on the following blocks being implemented:
Initialization
UOS
Google Analytics
Order Status
Order Channel and Marketing
Transformation Code Requirements
The following code should be added to the main workflow in the appropriate position, after Daily Plan Code and before Daily Plan to Actuals per the Transform Code Sequence - DRP page
Order Line Revenue
Add this code to enable sales, profitability and product analysis by creating the following tables:
[
drp.order_line_revenue
][
drp.product_affinity
]
Add missing tables in case Google Analytics has not been setup:
Calculate the appropriate cost per order based on the attribution and allocate to the item level:
Calculate the shipping and fulfillment costs per item
Create the final [drp.order_line_revenue
] table
Update the [drp.order_status
] table with the revenue amounts from this block
Create the [drp.product_affinity
] table
Marketing Performance
This block is being deprecated to be replaced by the [dm_mkt.fct_vendor_level_performance
] table that is part of the Marketing Data Mart
Create the [ums.marketing_performance
] table
Last updated