Menu
CoddyTech

Profit and Margin

Part of the Power BI Basics section of Coddy's Power BI journey. Lesson 26 of 28.

Profit = revenue minus cost.

Profit = [Revenue] - SUM(Sales[Cost])

Margin % = profit divided by revenue: the share of each sale that is profit.

Margin % = DIVIDE([Profit], [Revenue])

Give it a % format. Never add margins up; the total divides total profit by total revenue.

challenge icon

Challenge

Medium

The model has the Sales[Cost] column and the Revenue measure. Write Profit, then Margin %, profit as a share of revenue. Margin % is checked for each category and the total.

Try it yourself

Margin % =
CategoryMargin %
Coffee
Tea
Bakery
Merch
Total
Fields
  • Sales
    • Revenue
  • Products
    • ProductID
    • Product
    • Category
    • UnitPrice
    • UnitCost
  • Stores
  • Customers
  • Dates
  • Targets

All lessons in Power BI Basics