diff --git a/models/marts/reporting/rep_exchange__daily_orders.sql b/models/marts/reporting/rep_exchange__daily_orders.sql index a626178..95326d1 100644 --- a/models/marts/reporting/rep_exchange__daily_orders.sql +++ b/models/marts/reporting/rep_exchange__daily_orders.sql @@ -96,6 +96,7 @@ fct_and_dim_joins AS ( orders.order_tax_rm, orders.total_order_value_rm, orders.order_base_to_quote_currency_exchange_rate, + orders.cost_base_value, orders.cost_quote_value, orders.cost_base_tax, @@ -161,7 +162,13 @@ fct_and_dim_joins AS ( base_currencies.currency_name AS base_currency_name, + order_created_dates.day_of_year AS order_created_day_number, order_created_dates.first_day_of_week AS order_created_week, + order_created_dates.week_of_year AS order_created_week_number, + order_created_dates.first_day_of_month AS order_created_month, + order_created_dates.day_of_month AS order_created_month_day_number, + order_created_dates.month_actual AS order_created_month_number, + order_created_dates.year_actual AS order_created_year, supplier_companies.name AS supplier_company_name, @@ -322,7 +329,13 @@ final__rep_exchange__daily_orders AS ( -- date/times company_created_datetime, order_created_datetime, + order_created_day_number, order_created_week, + order_created_week_number, + order_created_month, + order_created_month_day_number, + order_created_month_number, + order_created_year, order_expected_expired_datetime, order_pending_submission_datetime, order_pending_verification_datetime,