Explore standardized definitions, formulas and usage guidance for key ecommerce performance metrics.
Represents the total amount of sales tax collected from all transactions within a defined period. Essential for compliance, financial reporting, and profitability calculations.
How much tax was collected yesterday?
SELECT COALESCE(SUM(tax_amount), 0) AS tax_amount FROM orders WHERE order_date BETWEEN :start AND :end;