From 5c000c02fca439e6cec5f373712edc1af5af713f Mon Sep 17 00:00:00 2001 From: CIEF ACC1 Date: Mon, 29 Jan 2024 09:53:16 +0000 Subject: [PATCH] Fix total_value_rm formula --- models/marts/warehouse/fct_exchange__transaction_costs.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/marts/warehouse/fct_exchange__transaction_costs.sql b/models/marts/warehouse/fct_exchange__transaction_costs.sql index 62d85cc..e373e74 100644 --- a/models/marts/warehouse/fct_exchange__transaction_costs.sql +++ b/models/marts/warehouse/fct_exchange__transaction_costs.sql @@ -62,7 +62,7 @@ transaction_costs_lists AS ( transaction_costs.base_service_charge, -9999999999) AS service_charge_rm, - (value_rm + service_charge_rm + tax_rm) AS total_value_rm, + (value_rm - service_charge_rm - tax_rm) AS total_value_rm, transaction_costs.expired_datetime, transaction_costs.deleted_datetime,