diff --git a/models/aggregates/agg_customer_orders__all_time.sql b/models/aggregates/agg_customer_orders__all_time.sql deleted file mode 100644 index 31c18d6..0000000 --- a/models/aggregates/agg_customer_orders__all_time.sql +++ /dev/null @@ -1,9 +0,0 @@ -select - * -from {{ - metrics.calculate( - metric('total_revenue'), - dimensions=['customer_id'] - ) -}} -order by 2 desc \ No newline at end of file diff --git a/models/marts/finance/_finance_metrics.yml b/models/marts/finance/_finance_metrics.yml deleted file mode 100644 index 0799f1c..0000000 --- a/models/marts/finance/_finance_metrics.yml +++ /dev/null @@ -1,51 +0,0 @@ -version: 2 - -metrics: - - name: total_revenue - label: Total Jaffle Shop Gross Revenue - description: sum of gross revenue at the Jaffle Shop - model: ref('fct_orders') - - calculation_method: sum - expression: gross_item_sales_amount - - timestamp: order_date - time_grains: [day, week, month, quarter, year, all_time] - - dimensions: - - customer_id - - priority_code - - clerk_name - - - - name: total_orders - label: Total Jaffle Orders Placed - description: count of orders placed at the Jaffle Shop - model: ref('fct_orders') - - calculation_method: count - expression: order_id - - timestamp: order_date - time_grains: [day, week, month, quarter, year, all_time] - - dimensions: - - customer_id - - priority_code - - clerk_name - - - - name: revenue_per_order - label: Average Revenue per Order in Period - description: Average Revenue per Order in Period - - calculation_method: derived - expression: " {{ metric('total_revenue') }} / {{ metric('total_orders') }} " - - timestamp: order_date - time_grains: [day, week, month, quarter, year, all_time] - - dimensions: - - customer_id - - priority_code - - clerk_name \ No newline at end of file diff --git a/packages.yml b/packages.yml index 1b69596..ebd4071 100644 --- a/packages.yml +++ b/packages.yml @@ -5,10 +5,8 @@ packages: version: 1.1.0 - package: dbt-labs/audit_helper version: 0.9.0 - - package: dbt-labs/metrics - version: 1.5.0 - package: brooklyn-data/dbt_artifacts - version: 2.4.2 + version: 2.6.2 - package: dbt-labs/dbt_project_evaluator version: 0.6.0 - package: calogica/dbt_expectations