From 989057f70832ce27b6a5cc4c1f59d824b1d74a9e Mon Sep 17 00:00:00 2001 From: Even Wei Date: Wed, 6 Mar 2024 15:01:11 +0800 Subject: [PATCH] Adjust threshold of value segment Signed-off-by: Even Wei --- models/customer_segments.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/customer_segments.sql b/models/customer_segments.sql index fe411d1d9..6cbda430f 100644 --- a/models/customer_segments.sql +++ b/models/customer_segments.sql @@ -9,8 +9,8 @@ SELECT ELSE 'Rare Buyer' END AS order_frequency_segment, CASE - WHEN customer_lifetime_value > 10 THEN 'High Value' - WHEN customer_lifetime_value BETWEEN 50 AND 10 THEN 'Medium Value' + WHEN customer_lifetime_value > 4000 THEN 'High Value' + WHEN customer_lifetime_value BETWEEN 1500 AND 4000 THEN 'Medium Value' ELSE 'Low Value' END AS value_segment FROM {{ ref('customers') }}