Catalog / Data Settings
7 toggles · in sync with Polar UI

Data Settings in sync with Polar

Polar Total Sales formula is configured via these toggles. Our replacement mirrors each toggle as a dbt variable in dbt_project.yml. Change the toggle there and all 113 metrics re-derive on the next dbt build.
Deduct discounts from gross sales
deduct_discounts_from_gross_sales
ON
Deduct returns from gross sales
deduct_returns_from_gross_sales
ON
Include shipping in total sales
include_shipping_in_total_sales
ON
Include tax in total sales
include_tax_in_total_sales
ON
Include tips in total sales
include_tips_in_total_sales
OFF
Deduct cost of products from total sales
deduct_cost_of_products_from_total_sales
OFF
Deduct Google Sheets expenses from total sales
deduct_gsheets_expenses_from_total_sales
OFF
Include cancelled orders
include_cancelled_orders
OFF

Notes captured from Polar UI

These toggles drive Polar's 'Total Sales' calculation, which explains the 3.5% Shopify gap we saw in validation.
Polar Total Sales = Gross Sales - Discounts - Returns + Shipping + Tax
Shopify direct totalPrice = Gross Sales - Discounts + Shipping + Tax (returns NOT pre-deducted)
The dbt project exposes each toggle as a dbt var so we can match Polar's choices.

Source screenshot from Polar UI Polar UI Settings > Data Settings (captured via Brave screenshot 2026-05-23). To change in our stack: edit vars: block of dbt_project.yml.