7. PivotTables and PivotCharts
7.6 Calculated Fields and Calculated Items
Decide where the formula belongs before building it
A delivery operations manager asks for a scenario amount after a fictional flat commission. She also wants order-line totals from units and price. Both seem like multiplication. They use different levels of data. A factor applied to one amount total can give a valid scenario. Quantities and prices must often be multiplied together at their own line before adding the results.
The teaching inputs are synthetic and inspired by sales-analysis work around Blinkit and Amazon Now. The commission and prices are invented. You will compare a conventional calculated field, a source row helper and an optional calculated item. The checks show how a report can produce a confident-looking result for a different calculation.
- Calculated field. Adds a new report measure that uses other fields in a conventional PivotTable supporting the operation.
- Calculated item. Adds a computed item to an existing report field, such as a scenario member within Platform.
- Source helper column. Calculates one result for each original row before the PivotTable summarises it.
- Data Model measure. Uses a specified DAX calculation in supported workflows. Explicit functions determine how its math evaluates.
Read the formula's level of calculation
A conventional calculated field references fields such as Amount, Qty and Unit Price. Microsoft documents that its formula operates on the sums of the underlying values for the current group. In a city report it can receive the city sum for Amount. In the grand total it receives the aggregate for the grand scope. If the expression mixes more than one signal, decide whether this aggregate-level calculation matches what each signal means.
Use a constant factor where it applies uniformly
If every included amount in the practice scope uses the same 2% commission and intermediate values need no per-order rounding, a 98% remaining amount can be calculated from the sum. Pune's sum 544 multiplied by 0.98 gives 533.12. Multiplying each recorded amount by 0.98 before adding would give the same mathematical result under those assumptions. Validate the actual business policy before reusing the idea.
Preserve row-level pairings where two quantities belong together
For two order lines, two units at 10 and three units at 20, calculate 20 and 60 on their records. Add them to get 80. Multiply the sum of the units 5 by the sum of the prices 30, and you get 150. That second expression cross-combines prices and quantities across different rows. It does not price the actual items. The row pairing is the essential information the calculation needs.
Why can the mistaken product look right for one order line?
For a group with one row, each sum contains only that row. The first difference appears when more than one price and quantity enter the same group.
Follow the quantity and price evidence into the total
Read the first line
Qty 2 and Unit Price 10 belong to the same record. The correct line amount is 20.
Read the next line
Qty 3 and Unit Price 20 belong to a different record. Its line amount is 60.
Add the line results
The two verified line values add to 80. This is the total amount under the intended unit price rule.
Compare the aggregate-first result
A conventional field formula using Qty times Unit Price receives sums 5 and 30 here. The result 150 answers a different calculation.
Lab 1 · Add a flat commission scenario and an average order value
Goal. Use a conventional calculated field where a sum-level calculation matches the policy, then check a deliberate ratio of sums. In a scratch sheet put Order ID, City, Platform, Amount and Order Count in A1:E1. Include these original ten records. Each row is one order and the last field is the numeric value 1 on every listed row. Keep all statuses from the original order fixture and treat the amounts as a recorded scenario, not actual payments.
| Order ID | City | Platform | Amount (₹) | Order Count |
|---|---|---|---|---|
| BLK-1001 | Pune | Blinkit | 64 | 1 |
| BLK-1002 | Nashik | Blinkit | 270 | 1 |
| AMN-1003 | Pune | Amazon Now | 110 | 1 |
| BLK-1004 | Nagpur | Blinkit | 240 | 1 |
| AMN-1005 | Kolhapur | Amazon Now | 232 | 1 |
| BLK-1006 | Pune | Blinkit | 150 | 1 |
| BLK-1007 | Solapur | Blinkit | 1299 | 1 |
| AMN-1008 | Sambhaji Nagar | Amazon Now | 195 | 1 |
| BLK-1009 | Pune | Blinkit | 220 | 1 |
| BLK-1010 | Nashik | Blinkit | 90 | 1 |
- Verify the input. Amount sums to 2870 and Order Count sums to 10. Each order key is present once. Use the full confirmed table or range in a conventional PivotTable.
- Make the base report. Put City in Rows and Sum of Amount and Sum of Order Count in Values. Check that Pune reads 544 and 4 before creating the additional fields.
- Add the scenario field where supported. Select your PivotTable and look under PivotTable Analyze, Fields, Items & Sets and Calculated Field on the compatible desktop interface. Use the name Amount After Flat Commission and formula
=Amount*0.98. Use Insert Field to select the exact source field where that control exists. Add the calculation and keep the original amount visible. - Add the average order amount. Create another field named Average Order Amount with
=Amount/'Order Count'. The single quotation marks refer to the field with a space in its name. It divides the sum of amounts by the sum of the order counts for each group under this complete one-order-per-row fixture. - Verify result by city and total. Pune should show 533.12 after the factor and 136 average. Nashik gives 352.80 and 180. The grand result is 2812.60 for the scenario, with average amount 287. A separate table below gives the controls.
| Group | Recorded (₹) | Count | After factor (₹) | Average (₹) |
|---|---|---|---|---|
| Nashik | 360 | 2 | 352.80 | 180 |
| Pune | 544 | 4 | 533.12 | 136 |
| Solapur | 1299 | 1 | 1273.02 | 1299 |
| All cities | 2870 | 10 | 2812.60 | 287 |
Verify and recover. If the feature is unavailable in your edition or source, reproduce the current group sums on a separate scratch worksheet and calculate the factor and ratio from the matched sums. If Pune's average matches a whole-source denominator instead of four, check the city grouping and intended count. If the calculation divides by zero in a variant, review whether that scope has a valid denominator before publishing. Save the baseline or close the scratch workbook when done.
Lab 2 · Reproduce and correct a misleading quantity-price total
Goal. See the exact difference between multiplying sums and summing individual products. In another scratch sheet LinePrices put Line ID, City, Qty, Unit Price and Line Amount in A1:E1. The fixture is one item line per row with one price per unit. Put the four rows in A2:D5. Enter E2 as =C2*D2 and fill down.
| Line ID | City | Qty | Unit Price (₹) | Line Amount (₹) |
|---|---|---|---|---|
| LP-01 | Pune | 2 | 10 | 20 |
| LP-02 | Pune | 3 | 20 | 60 |
| LP-03 | Nashik | 1 | 30 | 30 |
| LP-04 | Nashik | 4 | 5 | 20 |
- Verify the source results. Check 20, 60, 30 and 20. In a named Excel Table, the equivalent same-row structured formula is
=[@Qty]*[@[Unit Price]]using those exact headers. - Make the correct summary. Put City in Rows and Sum of Line Amount in Values. Expect Pune 80, Nashik 50 and grand total 130. Compare the four source entries with the resulting city aggregates.
- Test the tempting calculation in a scratch report. If your conventional PivotTable supports calculated fields, add
=Qty*'Unit Price'and give it an explicit practice name such as Totals Product Test. This demonstrates the formula level. Do not use it as a line amount measure. - Compare group and grand numbers. The sums for Pune are Qty 5 and Unit Price 30, producing 150 when multiplied. For Nashik they are 5 and 35, producing 175. The combined sums are 10 and 65, producing 650. This grand-level result is neither the correct total 130 nor the arithmetic total of 150 and 175.
- Restore the approved output. Keep Sum of Line Amount as the final measure and remove the scratch demonstration from the report. If the feature isn't available, reproduce the two calculations manually from the group sums and line products. Close the scratch workbook or keep a separately labelled demonstration.
Verify and recover. If the wrong product appears correct in a particular view, check how many lines that cell includes. A single-record view can mask the error. Verify one group with two distinct rows and the full grand total before trusting the chosen expression.
Lab 3 · Inspect a calculated item without misreading the grand total
Goal. Understand how adding a formula-based category differs from adding a report measure. Work in a separate scratch workbook to prevent changes to report definitions used elsewhere. Build a conventional PivotTable from the ten order rows of Lab 1. Put Platform in Rows and Sum of Amount in Values. All statuses enter the base example.
- Check the actual source items. Amazon Now has 537 and Blinkit has 2333. They make the complete original recorded amount of 2870. Count these two platform groups and save the baseline check.
- Select an original item in the Platform field. In a compatible report, select a real Platform item and open the Fields, Items & Sets menu. The Calculated Item option applies to the selected field. If the items are grouped, inspect the supported ungroup procedure in the scratch copy or use the independent exercise below.
- Create a deliberate scenario member. Use Combined Platforms Test as the new item name. Use
='Amazon Now'+Blinkitby inserting the existing items or typing their exact names. The single quotes mark the item name containing a space. This example is intended to create a computed member within the Platform field. - Inspect whether the total includes that member. The two real platform items are still 537 and 2333. The independently calculated combination is 2870. If the report total includes both real items and the computed member, they combine to 5740. Compare the displayed total with the actual membership before sharing it.
- Restore the original state. Save this as a marked scratch example or close it. For a real total of recorded orders, use the original groups or exclude the overlapping scenario from that separate measure. Follow the documented calculated-item controls to remove or hide the demonstration if appropriate.
Fallback and result. If Excel does not offer calculated items for your edition or source, calculate the three listed amounts in separate worksheet rows and verify which rows represent original data and which repeats their sum. Combining all three would double the original amount. This arithmetic explains the effect of including a computed member without claiming its exact appearance in every report.
Verify and recover. If the intended computed item does not appear, check that the field and actual item names match the formula. Inspect source and platform capabilities before changing your reporting approach. Adding a calculated field would produce an extra measure instead of another Platform label. Do not use an experimental report to replace the original order snapshot.
Verify whether the scenario policy applies per group or per record
Use the right rule when a rate changes by line or platform
The flat factor in Lab 1 applies to every included amount in that synthetic scope. Now suppose a separately documented practice policy assigns 2% to Blinkit and 4% to Amazon Now. For Pune, the original platform sums are 434 and 110. Applying 98% to 434 gives 425.32. Applying 96% to 110 gives 105.60. Their combined scenario amount is 530.92. Applying 98% to the whole city would instead give 533.12.
For an order-level workbook, attach the confirmed rate beside each order in a separate column. Calculate the scenario amount from that row's documented amount and rate, then sum the resulting helper under the intended exclusions. If rates also depend on period or product, use the full approved key. Do not sum all percentage entries in a group and assume that applies to every order. Record the policy and compare a group containing both types of records.
Check at which point the business rounds
Consider a tiny teaching fixture with three independent records each at 0.33. Applying the same 98% factor gives an unrounded value of 0.3234 per record. If the fictional policy needs rounding to two decimal places on each record before addition, the three prepared amounts are 0.32, for a total of 0.96. If the policy defines one rounding after aggregating the amounts, the combined 0.99 times 0.98 is 0.9702, giving 0.97 at two decimals.
Both computations use a flat rate and have different rounding points. If the policy is per order, use a worksheet helper with =ROUND(D2*0.98,2) for a numeric amount in D2 and then sum its rows. For an aggregate-only scenario keep the approved precision of the sum and format or round according to that rule. A formatted worksheet cell can display two decimals while its full precision still enters the next calculation.
Check the reporting units and paired coverage of a ratio
Average Order Amount is valid in the first lab because there is one verified amount and one Order Count unit per order. An unfinished export can include an ID without a known amount. Suppose the 220 Pune amount is unresolved in a scratch copy. The other three Pune values sum to 324. The average of the verified amounts is 108 across three known orders. Dividing 324 by all four IDs gives 81 and effectively weights the missing amount as zero.
There are still four source records. Keep the raw count for review and define a separate eligible count tied to known amounts under the same policy. In an order-level source with known numeric amount in D2, a controlled helper can return an eligible 1 for an approved measured record and leave unresolved records out of that count. The report should preserve a separate incomplete-order count. If no eligible denominator exists, a rate cannot be reported as a defined number.
Why does a flat factor give different rounded results under two policies?
Rounding each result before summing loses or gains small fractions on each row. Rounding once at the end applies the precision rule after those fractions have been combined.
Recognise a Data Model measure as its own calculation
Some Excel installations offer Power Pivot and Data Model authoring. The terminology can be confusing because a Power Pivot measure may also be called a calculated field in some documentation or interfaces. Read the actual source and feature. The conventional PivotTable calculated field in the first two labs has the sum-first behavior described above. A Data Model measure uses its own DAX expression under report context.
Use a deliberate row iterator for a line expression
In a supporting model, import the four verified LinePrices rows under a model table named SalesLines. Treat Qty and Unit Price as numeric and verify the resulting table contains four original line records. In Power Pivot's measure creation interface use a measure name such as Line Amount Model and formula =SUMX(SalesLines,SalesLines[Qty]*SalesLines[Unit Price]). Set the table to the verified model table. In a dialog with the leading equals sign already present, enter the function after it.
SUMX iterates the rows of its table in the active context, evaluates quantity times same-row unit price and sums those expressions. This measure gives 80 for Pune, 50 for Nashik and 130 for the full four rows. A model measure using a standard SUM of a completed Line Amount column simply adds that field. Being a measure does not automatically imply the expression evaluates pairwise across records. The function supplies that behavior.
Choose an explicit division for an aggregate question
Suppose the report asks how much amount is recorded per quantity unit. A supporting model can use =DIVIDE([Line Amount Model],SUM(SalesLines[Qty])) as a separate measure, referring to the measure created above. For the four controlled rows, Pune has 80 across five units, giving 16 per unit. Nashik has 50 across five, giving 10. The combined 130 over ten units gives 13. A simple average of the four individual listed unit prices would give 16.25, assigning equal weight to each line regardless of quantity.
Microsoft documents that DIVIDE can return blank when the denominator is zero if no other alternate result is supplied. Preserve the underlying unit count and interpretation. If an amount or item price were unresolved, adjust the numerator and denominator under the same confirmed coverage rule. These examples are optional and assume the supporting model feature is available. The row helper and plain worksheet grouping reproduce the verified result without model authoring.
What makes a model measure evaluate quantity and price per row?
SUMX explicitly iterates the selected table rows and adds the result of the row expression. A standard aggregate measure or another DAX formula may use a different calculation.
Check the formula definition and the report containing it
Identify what the existing formula refers to
Classic field formulas refer to source field names. Classic calculated item formulas refer to items in the relevant field. The expression expects the words and symbols that identify those report fields or items, including quotation around multiword names as documented. Use Insert Field or Insert Item on a supporting interface to reduce typing errors. You cannot refer to a worksheet address or a displayed Grand Total label as though it were a classic PivotTable formula field.
If you need to read a worksheet input rate or a planning cell, prepare the calculation in the source or a separate well-defined worksheet logic. Record the exact reference and refresh requirements. A source helper column can use the existing workbook references with the expected row pairing. A row factor based on a global input can be copied into a scratch sheet and checked independently, while a fixed 0.98 classic field does not read the current cell where someone later types a different rate.
Use the formula list and a multi-row control
Some desktop PivotTable tools offer List Formulas under Fields, Items & Sets. Use it in a scratch copy to see which entries are calculated fields and which are calculated items. A calculated item may have a general formula and overrides for individual cell intersections. If a particular city result behaves differently, verify any overrides and calculation order instead of assuming the default expression governs every cell.
- Check the grain. Choose a group with two different line permutations. A single line can pass both ways.
- Check the policy. Document constant or changing rates, rounding stage and any record exclusions.
- Check formulas and reference names. Make the referenced fields, items and side-by-side controls readable.
- Check subtotals and grand totals. Inspect whether the report recalculates at that level or includes a calculated item. Compare with an independent calculation.
- Check downstream use. If a chart uses the report measure, verify it is the intended actual or scenario measure and the display label communicates that choice.
Related reports can use a shared PivotTable cache, which can let them share calculated fields, items and grouping definitions. Keep temporary alternatives in separate scratch copies when investigating. If you remove a formula in an existing workbook, first inspect which reports use it and how those results should be maintained. The sample tasks keep this clean by giving each experiment a separate workbook.
Why compare the grand total as well as a detail result?
The formula can receive different aggregated inputs at each level. A valid line result can still produce an invalid overall total under an aggregate-first expression.
Use a small audit to prove whether the formula preserves row pairing
Expand both sides of the proposed quantity-price expression
For the two Pune lines, the aggregate-first result is (2 + 3) times (10 + 20). If you distribute both sums, the expression contains four products. They are 2 times 10, 2 times 20, 3 times 10 and 3 times 20, or 20, 40, 30 and 60. The 40 and 30 correspond to cross-pairings that never occurred on either original line. Their sum 70 explains the difference between the wrong 150 and the correct 80.
Check the same distinction with two separate scratch modifications. First keep only LP-01. Its own amount is 20 under both expressions. Then restore LP-02. The row total becomes 80 and the aggregate-first expression becomes 150. This is a deliberate test of whether the expression responds correctly as actual new line pairings enter the report, rather than a check of one simple success case.
For the second modification, add a second copy of both Pune lines as four distinct synthetic line records in a separately labelled test. Under this artificial scope the true line sum doubles from 80 to 160. The total of the quantities becomes 10 and the total of listed prices becomes 60. The product of those sums becomes 600. That is four times the prior wrong result of 150. This does not represent a change in selling price. It exposes the formula's sensitivity to independent changes on both aggregate inputs. Restore the original practice rows afterwards.
Compare per-line and per-order averages from the same known amount
Suppose LP-01 and LP-02 are separate lines of the same Pune order, while LP-03 and LP-04 belong to two different Nashik orders. Keep all four line amounts unchanged. The total is still 130. There are four item lines and three unique order keys. The average across lines is 130 divided by four, or 32.50. The average across complete orders is 130 divided by three, or about 43.33. An Order Count of 1 on each line would sum to four and compute the line average. Prepare a complete order-level dataset or use a supported metric that counts the approved order keys at their actual grain.
For the order average control, first prepare three complete order totals from their lines. The two Pune lines together give 80 under one key. The two Nashik order keys have 30 and 20. Check that those three amounts add to 130. This verifies that a different denominator can be correct even when the numerator is unchanged. If a line amount is unknown, the complete-order rule may also hold its whole order. Document that before using the average.
- List the original line pairs. Verify all quantities, prices and source rows before computing an order grouping.
- Test one qualifying group. Use Pune's two-line case for the multiplication check and count one full order only in the optional associated-order example.
- Compare grand results. Verify the line sum 130 and independently select either four line records or three complete order keys for an average.
- Record exclusions. Preserve unresolved amounts and let the intended complete-order population control how they affect the calculation.
Give scenario items and actual results distinct reporting scopes
A calculated item can be useful for a clearly proposed scenario such as applying a factor to an existing platform's entries. Microsoft's example describes a calculated item applying one factor to qualifying underlying records before their results are summarised. The calculation remains a report member rather than another recorded platform. Keep the description clear when an analyst sees such a row among actual items.
Make a side-by-side check of one projected change
In a separate scratch workbook with the two verified platform totals, a hypothetical increase of 10% to Blinkit's recorded 2333 produces a scenario value of 2566.30. The increase itself is 233.30. A one-platform scenario item using a compatible formula such as =Blinkit*1.10 can represent the projected member. If you include the original total and this whole projected member as a peer, you can count the original Blinkit amount again. Inspect the outcome under the actual range of report options.
For a projected combined view that keeps the Amazon Now amount of 537 and replaces the Blinkit input with its changed amount, the expectation is 3103.30. Separately, the actual fictional starting result remains 2870. Adding the new whole scenario member to both original amounts would give 5436.30. That scope includes both actual and proposed alternatives. Before sharing, label every figure as recorded, projected or change from recorded.
Choose a separate source calculation when the comparison has many rules
A review can need repeated scenarios across periods or changes in allowed commissions. Keep a source table with explicit scenario definitions and audited line calculations. A version field or a separate report measure lets a reader distinguish the actual amount from a candidate policy. The lab's single report item illustrates why you need a stated rule for combining overlapping groups. A combined view must choose exactly which amount to take for each source group.
In an existing worksheet, inspect the relevant formula list and the current report before making changes. A field name in the list can be an original source column, a worksheet helper fed into the source or a separately defined calculation. Knowing its origin determines whether you verify a range, a same-row formula or the current group-level expression. Document one example a second learner can reproduce.
Build a source check for the two-rate scenario
Use another scratch copy of Lab 1. The source has Platform in C, Amount in D and Order Count in E. Add Fee Rate in F1 and Verified Scenario Amount in G1. The fictional check approves a decimal factor of 0.02 for Blinkit and 0.04 for Amazon Now. Other platform values should go to a separate review. Record both approved rates before filling the worksheet.
- Set the row's approved rate. In F2 use
=IF(C2="Blinkit",0.02,IF(C2="Amazon Now",0.04,""))and fill down. The result is a numeric fraction for the two known labels. - Combine the paired amount and rate. In G2 use
=IF(AND(ISNUMBER(D2),ISNUMBER(F2)),D2*(1-F2),"")and fill down. The fixture holds compatible numeric amounts and the documented rates. This branch performs one check for a numeric amount and one for a known numeric rate. - Check one row for each rate. BLK-1001 starts from 64 and is prepared at 98%, giving 62.72. AMN-1003 starts with 110 and is prepared at 96%, giving 105.60.
- Sum the new field independently. Prepare the report from the same ten verified records. Set Sum of Verified Scenario Amount to aggregate the line candidates. Check Pune 530.92, when calculated with the two rates.
- Verify both platform groups. Blinkit's 2333 times 0.98 gives 2286.34. Amazon Now's 537 times 0.96 gives 515.52. The combined scenario is 2801.86. The all-flat scenario from Lab 1 was 2812.60. The new result differs by 10.74 because the confirmed scope has one changed platform rate.
Use no per-row rounding in this particular check, apart from formatting for display. If the worksheet policy specifies a different rounding stage, adapt the helper and test a fractional input. Retain the original amounts and rates beside the candidate. The presence of an amount and numeric rate under this simple filter can support the exercise's scenario, while a real export can need effective dates, eligibility rules and exception review.
As an explicit coverage test, replace a copied platform label with an unapproved option. That record's known actual amount remains available in D, but the proposed amount in G becomes empty under this rule. The known scenario total now covers fewer records. Count the prepared numeric scenario values independently and list any unapproved rates before issuing an incomplete comparison. Restore the original ten controls and saved formula definitions after the exercise.
When you compare a scenario to the starting record, use the same eligible rows for both sides. Otherwise a difference can be partly the effect of missing values rather than the changed percentage. Keep an exception count or approved common source subset where needed so the model comparison remains reproducible. In a short audit note, record all ten original Order IDs and whether each receives an approved rate. Compare the known count with the count of numeric scenario results. A sample with one unresolved rate still has ten original records, and only nine approved scenario outcomes. The comparison can present both accepted totals over those nine matched records and one unresolved record separately. Add the rate evidence to the scoped review and rerun the exact subtotals once it is approved. The source count and formula version should appear beside the results. Confirm that both reports use the same source snapshot.
Check your understanding
1. What does the conventional field receive for Amount in the Pune report?
A. The sum of the matching Amount values. B. The address of the source cell. C. The largest individual amount only.
Answer A. The classic field formula operates on underlying sums at the active report scope. The 0.98 factor uses Pune's 544 sum.
2. What is the correct total using two units at 10 and three units at 20?
A. 150. B. 80. C. 50.
Answer B. Multiply and verify each matching line pair, then add 20 and 60. 150 multiplies the two sums.
3. What does a calculated item add?
A. A permanent source row. B. A worksheet subtotal address. C. A computed member inside a report field.
Answer C. Check whether totals include the calculated member and whether it overlaps the original source items.
4. What is the combined recorded amount per unit for the four LinePrices rows?
A. 13. B. 16.25. C. 130.
Answer A. Divide the verified line amount total 130 by the ten included units. 16.25 is the average of the four listed prices without quantities.
5. Why might a per-order average use three instead of four in the missing amount example?
A. The city has three platforms. B. Only three orders have a verified numeric amount. C. The PivotTable always drops the last line.
Answer B. The known amount numerator should pair with its own eligible count. The unresolved fourth row remains in the source review.
6. Which expression explicitly iterates rows in the model example?
A. A field caption. B. The conventional calculated field multiplication. C. SUMX with its table and same-row expression.
Answer C. SUMX provides the per-row evaluation required before addition in that model measure.
Interview questions with explained answers
- How does a conventional calculated field behave?
Its formula uses sums of the referenced source fields within the current report scope. I test a single group containing multiple records and check the grand total before treating the expression as a valid metric.
- How would you implement quantity times unit price?
I calculate it on each source line and sum those results. In a supported Data Model I can choose SUMX with the appropriate line expression. I verify the 20 and 60 examples give 80 as a total.
- When is a ratio of sums appropriate?
When both measures belong to the same included population and the question requests a combined rate. Average order value uses an eligible order amount total and the associated order count. I confirm grain and missing coverage before dividing.
- What does a calculated item change?
It introduces another result within the selected field's item list. I evaluate whether it overlaps the original items or enters totals, and document which values describe actual measurements and which are scenario values.
- How do you choose between source helper and DAX measure?
I choose based on what needs to be visible, whether it should adapt to report context, and what features are available. I use a source helper to show and inspect individual line outputs. A model measure can use an explicit checked expression under the current filters.
Quick recall cards
- Classic field
Check what the formula does to the underlying field sums.
- Classic item
Determine which members and totals can include the computed result.
- Same-row product
Multiply quantity and price on their matching row before summing.
- Ratio of sums
Pair the numerator and denominator over the same complete eligible subset.
- Model expression
Use a function such as SUMX when your calculation needs row iteration.
- Audit
Check a multi-record group, the grand total and relevant filters.
Continue with Sorting, Filtering and Top 10 to compare selected groups without changing the definition of their measures.
Official Microsoft references
- Classic calculated fields and items, sum-level behavior and formula controls
- Check the grand total of conventional calculated fields
- Excel Table structured references and the current row
- Create an explicit model measure in a supporting Excel edition
- DAX SUMX table iteration
- DAX DIVIDE and zero denominator behavior
- Shared data cache and effects on calculated formulas
Continue practising: explore the existing Excel Task Hub for additional exercises.