Menu
CoddyTech

回顾:不使用列计算利润

本课属于 Coddy Power BI 学习旅程的“使用 CALCULATE 编写 DAX”单元。第 17 课,共 24 课。

challenge icon

挑战

中等

Mia 想按类别查看利润,但这个模型没有成本列。编写 Profit:对每个订单行,将支付金额减去数量乘以该产品的单位成本,然后把结果加起来。系统会按类别检查。

亲手试试

Profit =
CategoryProfit
Coffee
Tea
Bakery
Merch
总计
字段
  • Sales
    • Revenue
    • Total Units
    • Customers
  • Products
    • ProductID
    • Product
    • Category
    • UnitPrice
    • UnitCost
  • Stores
  • Customers
  • Dates
  • Targets

使用 CALCULATE 编写 DAX中的所有课