0
0
Power BIbi_tool~10 mins

Why intermediate DAX solves business questions in Power BI - Formula Trace Breakdown

Choose your learning style9 modes available
Sample Data

Sales and cost data for three products

CellValue
A1Product
B1Sales
C1Cost
A2Apples
B2100
C260
A3Bananas
B3150
C390
A4Cherries
B4200
C4120
Formula Trace
Profit = SUM(Sales) - SUM(Cost)
Step 1: SUM(Sales)
Step 2: SUM(Cost)
Step 3: SUM(Sales) - SUM(Cost)
Cell Reference Map
    A       B       C
1 Product  Sales   Cost
2 Apples    100     60
3 Bananas   150     90
4 Cherries  200    120

Sales values in B2:B4 and Cost values in C2:C4 are used in the formula.
The formula uses the Sales column (B2:B4) and Cost column (C2:C4) to calculate profit.
Result
    A       B       C       D
1 Product  Sales   Cost   Profit
2 Apples    100     60     
3 Bananas   150     90     
4 Cherries  200    120     
5                      180

Profit is shown as the total of sales minus total of cost in cell D5.
The final profit value 180 is displayed below the data, showing total profit from all products.
Sheet Trace Quiz - 3 Questions
Test your understanding
What is the total sales value used in the formula?
A450
B270
C180
D100
Key Result
SUM(Column1) - SUM(Column2) calculates total difference between two columns.