Schema Theory

← Back to KPIs & Dashboards

Gross Margin %

Description

Gross Margin % measures the proportion of revenue that exceeds the cost of goods sold (COGS). It indicates how efficiently a company produces and sells its products and is a key profitability metric.

Formula: (Revenue - COGS) / Revenue

Visual Example

Gross Margin Visual

DAX Formula

Gross Margin % = 
DIVIDE(
    SUM(Sales[Revenue]) - SUM(Sales[COGS]),
    SUM(Sales[Revenue])
)          

SQL Statement

SELECT
  (SUM(Revenue) - SUM(COGS)) / NULLIF(SUM(Revenue), 0) AS GrossMarginPct
FROM Sales;

Usage Notes

Downloads