From a75613b709a50333891b4029bc309a705f33695f Mon Sep 17 00:00:00 2001 From: gwen windflower <91998347+gwenwindflower@users.noreply.github.com> Date: Thu, 4 Jul 2024 11:26:22 -0500 Subject: [PATCH] fix(metrics): food+drink revenue use 'is true' not =1 --- models/marts/order_items.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/marts/order_items.yml b/models/marts/order_items.yml index 339c4769..e46d764b 100644 --- a/models/marts/order_items.yml +++ b/models/marts/order_items.yml @@ -75,11 +75,11 @@ semantic_models: - name: food_revenue description: The revenue generated for each order item. Revenue is calculated as a sum of revenue associated with each product in an order. agg: sum - expr: case when is_food_item = 1 then product_price else 0 end + expr: case when is_food_item is true then product_price else 0 end - name: drink_revenue description: The revenue generated for each order item. Revenue is calculated as a sum of revenue associated with each product in an order. agg: sum - expr: case when is_drink_item = 1 then product_price else 0 end + expr: case when is_drink_item is true then product_price else 0 end - name: median_revenue description: The median revenue generated for each order item. agg: median