-- Total Unique Cart Products - Purchased
-- Total Unique products in deal_cartitem
-- FILTER: {
--   filter: "date",
--   column: "Send_Date",
--   params: {
--     "format": "m/d/y"
--   }
-- }
-- FILTER: {
--   filter: "class",
--   column: "products",
--   params: {
--     class: "text-right"
--   }
-- }

SELECT
    to_char(count(DISTINCT dc.product_id), '999,999,999,999') as products,
    to_char(count(DISTINCT dc.prospect_product_id), '999,999,999,999') as prospect_products
FROM simplebrsprod.deal_cartitem dc
WHERE dc.cart_is_purchased = True AND dc.location_id = 5358688477118464;
