Recap - Profit Without Columns
Part of the DAX with CALCULATE section of Coddy's Power BI journey. Lesson 17 of 24.
Challenge
MediumMia wants profit by category, and this model has no cost column. Write Profit: for each order line, the amount paid minus the quantity times its product's unit cost, added up. It is checked for each category.
Try it yourself
Profit =| Category | Profit |
|---|---|
| Coffee | |
| Tea | |
| Bakery | |
| Merch | |
| Total |
- Sales
- Revenue
- Total Units
- Customers
- Products
- ProductID
- Product
- Category
- UnitPrice
- UnitCost
- Stores
- Customers
- Dates
- Targets
All lessons in DAX with CALCULATE
3Row by Row in a Measure
SUMX Works Row by RowAVERAGEX and MAXXFILTER Picks RowsMeasures Inside IteratorsRanking with RANKXRecap - Profit Without Columns