Challenges
Calculate Total Margin with SUMX
intermediate+100 XP
1 day
Concept:SUMX Row Context
Objective
Create a measure 'Total Margin' using SUMX to iterate through Sales and compute (Sales[Revenue] - Sales[Cost]) row-by-row.
Required Functions:
SUMX()Illustrative visual preview
Filter Context:
π
Year = 2025π Country = Allπ·οΈ Segment = AllCalculate Total Margin with SUMX
β β β
Awaiting valid DAX formula check
Guided Hints
0 of 2 revealedfx
[fx]Total Margin=
Loading DAX Formula Studio...
Ctrl+Enter Checkβ’Ctrl+Shift+F Formatβ’Type [ for fields
Model
[fx]Total Revenue
[fx]Total Cost
[fx]Total Profit
[fx]Profit Margin %
[fx]Total Quantity
[fx]Total Orders
[fx]Customer Count
[fx]Average Order Value
[fx]Previous Year Revenue
[fx]YoY Revenue Growth %
πSaleID
π
Date
πCustomerID
πProductID
βQuantity
βRevenue
βCost
πCustomerID
AaCustomerName
AaCountry
AaSegment
Click field to copy syntaxDAX Active