Metrics and dimensions
A metric owns one formula and its permitted grouping dimensions.
Net revenue sums quantity multiplied by unitNet for issued invoices. Drafts and tax are excluded. Gross profit is revenue minus the sum of quantity multiplied by unitCost; gross margin is that profit divided by revenue and is null when revenue is zero.
Group by month, Monday-starting week, productLine or department. A change from the previous calendar month uses the same company and department filters. Percentage change is null when previous revenue is zero.
The owner is accountable for the definition. lastChange records when it changed. Follow the chain from source to metric to question to dashboard before comparing two totals.