24. Power Pivot and the Data Model
Practice and Answer Key: A Two-Month Data Model
1. Build a two-month report someone else can audit
You are helping a fictional grocery delivery team compare its October and November performance. It has a short order list, a store register and a small product price table. The store manager wants useful answers by city and platform. A finance reviewer wants evidence that no missing product or repeated order can distort the totals. Your job is to construct the model, explain the numbers and prove that the report responds to known changes in a disposable copy.
This capstone uses its own eight-order fixture. Earlier lessons used a separate twelve-order example. Real app names appear here only to make the fictional platform comparison familiar. The supplied figures describe the exercise. Before building, save an untouched copy of the three tables and a separate working workbook. Use supported Windows desktop Excel with Power Pivot to perform the model authoring. If those controls are unavailable, compute the same amounts and filters from the three tables and check your result against the answer key.
Define the required outputs before you design the report
- Input receipt. Record the number of accepted rows, distinct OrderIDs, Stores and Products. Check types, identifiers, date interpretation and price coverage.
- City-by-month evidence. Show the approved sales in each city, total sales in each month, and the combined two-month result. Keep month order chronological.
- Business measures. Produce the amount in rupees, number of orders, distinct customer IDs, Amazon Now sales, prior-month sales and a percentage change.
- Presentation card. Return Kolhapur sales in November from the model using a CUBE request in a compatible Excel client. If you are working on paper, identify the requested city, period and measure and trace the matching rows.
- Failure tests. Run a repeated-order scenario and a missing-price scenario in separate scratch copies. Record which checks fail and how you can restore the approved baseline.
One finished report has a trail back to the accepted inputs. Save the control totals and exception tests with the workbook. A reviewer should be able to explain each figure from a small set of qualifying records.
2. Create the three named input tables
Keep store and product attributes in their source tables
Start with one row per StoreID in Stores. Each store belongs to a city and platform in this fixture. Use text identifiers so the values match the same identifiers on Orders. If a store can conduct business through several platforms at once in a future dataset, identify where that platform belongs in the event grain. Here the mapping is fixed by the supplied exercise.
| StoreID | City | Platform |
|---|---|---|
| S1 | Kolhapur | Blinkit |
| S2 | Sambhaji Nagar | Amazon Now |
| S3 | Pune | Amazon Now |
Use a separate Products table. Choose numeric Price, numeric quantities in Orders, and text categories. Each unique ProductID has one approved sample price. The exercise treats it as the applicable unit price for both months. For real dated orders, a later catalog change can make today's price inappropriate for past transactions. Obtain the actual recorded order value or the agreed historical price reference before making a sales total.
| ProductID | Product | Category | Price ₹ |
|---|---|---|---|
| K1 | Paneer 200 g | Dairy | 95 |
| K2 | Kanda Poha Mix | Staples | 55 |
| K3 | Alphonso Pulp 850 g | Fruits | 180 |
Keep the original order grain and date pattern
| OrderID | Date | StoreID | ProductID | CustomerID | Qty |
|---|---|---|---|---|---|
| A-01 | 04-10-2026 | S1 | K1 | C11 | 3 |
| A-02 | 09-10-2026 | S2 | K3 | C12 | 1 |
| A-03 | 15-10-2026 | S3 | K2 | C13 | 4 |
| A-04 | 26-10-2026 | S1 | K3 | C11 | 2 |
| A-05 | 03-11-2026 | S2 | K1 | C14 | 2 |
| A-06 | 12-11-2026 | S3 | K3 | C13 | 2 |
| A-07 | 18-11-2026 | S1 | K2 | C15 | 5 |
| A-08 | 25-11-2026 | S3 | K1 | C12 | 4 |
Here a row represents one order containing a single kind of product. The quantity gives the number of units in that order. Each OrderID occurs once. CustomerID can repeat because a person can buy again. ProductID and StoreID can repeat because several different orders can use the same reference item. Rejecting duplicate OrderIDs and retaining repeated CustomerIDs are separate business rules.
- Create three worksheets and convert the contiguous input blocks to named Excel Tables, including their headers. Use
Stores,ProductsandOrdersas table names. Worksheet names help you find them, and table names identify them in the model. - For dates typed by hand, ensure that
03-11-2026means November 3. You can use=DATE(2026,11,3)to construct that date and apply a day–month–year display. If importing day-first text with Power Query, convert to Date using the declared locale and verify date components. - Keep IDs as text and amounts numeric. Confirm quantities are whole numbers and all applicable prices are populated. Preserve the source inputs without adding typed rupee symbols to numeric values.
- Test counts before opening a visualization. Expect eight unique orders, eight fact rows, three stores, three products, 23 total units and five unique customer IDs. Four orders in October and four in November account for all eight.
3. Build the model and calculate one Amount per row
Connect each lookup key to the event table
Load the three tables into the workbook Data Model once each, using the Power Pivot or Power Query load method available in your supported Excel installation. If you use Power Query, inspect the destination to confirm the query actually loads into the model. A connection can exist without a loaded model table. Check that the model tables use the field names shown before writing any formulas.
- In Diagram View or the relationship dialog, connect
Stores[StoreID]on the one side toOrders[StoreID]on the many side. Verify the Stores side has S1, S2 and S3 once each. - Connect
Products[ProductID]on the one side toOrders[ProductID]on the many side. Verify K1, K2 and K3 are each unique in Products. Every Orders product must have a matching price under the fixture rules. - In Power Pivot’s data grid for Orders, add a calculated column named Amount. Enter the DAX column expression below. In a worksheet-only version, manually match each product key and multiply its price by the quantity.
- Check one row from each product before testing totals. For A-01, K1 supplies ₹95 and Qty three, so its amount is ₹285. For A-02, K3 supplies ₹180 and Qty one, so its amount is ₹180. For A-03, K2 supplies ₹55 and Qty four, so its amount is ₹220.
=Orders[Qty] * RELATED(Products[Price])
RELATED follows the existing many-to-one relationship from the current Orders row to the unique product row and retrieves its price. Multiplication creates a per-order result in the model. If you use a worksheet lookup to compute Amount instead, load that one audited column. Creating two differently calculated Amount columns would make it harder for a reviewer to identify the one used by the report. A model column can also change amounts when the related price data changes. Record the intended fixture assumption now so you can test that dependency later.
Use a 2026 date table for the time-comparison measures
The original two-month exercise only shows October and November in the report. Build a complete January–December 2026 Calendar in the model for the classic Power Pivot time-intelligence functions. January and December dates provide a valid date spine regardless of fact coverage. In the report, select the two expected months. Keep the distinction between one row per day in Calendar and one row per accepted order in Orders.
- Use the Calendar construction lesson to create 365 dates, one for every day of 2026. Expose a useful year and month label and a numeric sort column such as the integer year multiplied by 100 plus month number.
- Sort the label by a compatible sort column inside the Data Model. Confirm that October precedes November. Mark Calendar as the date table with its unique Date column. The sort setting and date-table designation support different features.
- Relate
Calendar[Date]on the unique side toOrders[Date]. Use clean dates at the same grain. Check three known dates, including November 3, manually before relying on a month-level report. - Use a Calendar field as the report’s month label. Confirm that adding it divides the actual fact values across October and November. When a date filter does not affect the sales value, inspect source fields and the relationship first.
4. Add measures and the city/month report
Define the base measures before using them in other expressions
Use Power Pivot › Measures › New Measure in a supported client. Supply the name and formula in their respective fields. Put the measures under the Orders table to make them easy to locate. In the formulas below, the left side documents the name and the right side is the expression. Choose appropriate currency, whole number and percentage formats. Compare the actual measure calculation across contexts even when display formatting stays the same.
Total Sales := SUM(Orders[Amount])
Order Count := COUNTROWS(Orders)
Customers := DISTINCTCOUNT(Orders[CustomerID])
Amazon Now Sales :=
CALCULATE([Total Sales], Stores[Platform] = "Amazon Now")
Sales LM :=
CALCULATE([Total Sales], DATEADD(Calendar[Date], -1, MONTH))
MoM % := DIVIDE([Total Sales] - [Sales LM], [Sales LM])
Order Count is valid for this source because one accepted row equals one order. Customers counts distinct CustomerID values in scope. Every original fact row has an ID. A distinct total can be smaller than the sum of city counts because one person may buy in more than one city. State the test scope in your report. If a business expects known customers only, address blanks in the input or in the approved measure definition.
Amazon Now Sales adds or replaces the Platform constraint on the same lookup field, while keeping independent report filters. Its expected ₹1,330 is for the baseline with no overriding comparison state. For a platform breakdown, use Total Sales with Platform in Rows to let each platform determine its own slice. That breakdown shows Blinkit ₹920 and Amazon Now ₹1,330. A dedicated platform card can use the fixed platform measure under its documented filter policy.
Build the baseline matrix before opening the answer key
- Create a PivotTable from the Data Model. Put Stores City into Rows and Calendar YearMonth into Columns. Filter to October and November 2026. Add Total Sales to Values and turn on the useful overall totals.
- For a row-level check use A-07. Its date is November 18 and store S1 maps to Kolhapur. Its ₹275 belongs in the Kolhapur November cell. Confirm the same order contributes one unit to the order-count metric and five units to quantity.
- Make a small separate month PivotTable showing Total Sales, Sales LM and MoM %. Observe the full November row using the full October prior period. There are no supported September facts in this sample, so the October comparison has no prior amount.
- Put Customers in a separate city view and compare the overall number with the sum of city results. Trace C12 in the raw table before explaining the difference.
- Use the CUBE exercise from lesson 24.9 to request Kolhapur November in a copy. Use the exact generated connection and City and Calendar member expressions from this workbook.
The original MoM expression is suitable for the accepted full-month sample. A future coverage gap such as an unreceived December file needs additional safeguards. Besides protecting a zero or blank denominator with DIVIDE, use the explicit absent-current-period check described in the time-intelligence lesson. Keep the receipt register so a partial period with nonblank sales remains identifiable.
5. Reconcile the model against the answer key
Review the line amounts before looking at totals
Check your eight Amount values individually. This table gives enough detail to find an incorrect multiplication or lookup without opening a second workbook. If a report total differs, examine the line amounts first in the smallest affected city or month. Two wrong amounts can cancel at the grand total.
| OrderID | Qty | Price ₹ | Amount ₹ |
|---|---|---|---|
| A-01 | 3 | 95 | 285 |
| A-02 | 1 | 180 | 180 |
| A-03 | 4 | 55 | 220 |
| A-04 | 2 | 180 | 360 |
| A-05 | 2 | 95 | 190 |
| A-06 | 2 | 180 | 360 |
| A-07 | 5 | 55 | 275 |
| A-08 | 4 | 95 | 380 |
Check both dimensions at the report level
| City | October ₹ | November ₹ | Two months ₹ | Customers |
|---|---|---|---|---|
| Kolhapur | 645 | 275 | 920 | 2 |
| Sambhaji Nagar | 180 | 190 | 370 | 2 |
| Pune | 220 | 740 | 960 | 2 |
| Grand Total | 1045 | 1205 | 2250 | 5 |
Kolhapur has A-01 and A-04 in October, for ₹645; A-07 gives ₹275 in November. Sambhaji Nagar uses StoreID S2. A-02 gives ₹180 in October and A-05 gives ₹190 in November. S3 links Pune to A-03 for ₹220 in October and A-06 plus A-08 for ₹740 in November. October ₹1,045 and November ₹1,205 together give ₹2,250.
November Sales LM returns ₹1,045. Growth is ₹160 divided by ₹1,045, about 15.3%. Pune’s absolute contribution increases by ₹520, Sambhaji Nagar adds ₹10, and Kolhapur falls by ₹370. Together those moves give the chain-wide increase of ₹160. A summary label such as “Every city grew” would disagree with the detail. Read the amount changes before acting on the overall growth.
Explain a distinct total people may question
Kolhapur has C11 and C15. Sambhaji Nagar has C12 and C14. Pune has C13 and C12. Adding the local counts gives six city–customer memberships. At the combined scope, C12 is counted once. The qualifying customer IDs are C11, C12, C13, C14 and C15. A report labeled “Customers across all cities” should show five. Keep those IDs visible in a control note if learners ask why the city counts add differently.
October’s four orders contain three distinct IDs because C11 places two orders. November’s four orders include four different IDs. C12 and C13 appear in both months, so the two monthly counts would also overstate the two-month unique count if added. Compare by group first to see repeat customers within and across segments. Use the intended metric for the decision at hand.
Check one CUBE cell against one order
In a compatible workbook, convert a review copy of the model PivotTable and read the exact CUBE connection, measure and member expressions. If you place the known model connection in H2, the generated Total Sales member in H3, the generated Kolhapur member in A3 and November 2026 in C2, this pattern requests the target amount. Translate the helper locations if your converted worksheet uses a different layout.
=CUBEVALUE($H$2,$H$3,$A3,C$2)
Expected result ₹275. Only A-07 matches both Kolhapur and November. If the value is ₹920, check whether the November member is present in the formula. If it is ₹1,205, check whether the City member is present. The expected numbers let you diagnose common missing arguments. Keep the interactive response view for evidence and use the converted worksheet for stable presentation.
6. Trace an answer through four layers
Follow the original November Kolhapur sales result
Read order A-07
The order was placed November 18, belongs to S1, uses product K2 and records five units. Save its original OrderID and parsed date.
Find the two lookup rows
S1 identifies Kolhapur in Stores and K2 gives the approved unit price of ₹55 in Products. Both identifiers have one matching lookup row.
Calculate and select the amount
Five units at ₹55 give ₹275. The Calendar date and StoreID relationships select the row for the November Kolhapur report cell.
Verify the report request
The CUBE formula asks for the Total Sales measure with the exact Kolhapur and November members. Both the control matrix and the order evidence give ₹275.
7. Perform the build, then test controlled failures
Lab A — Deliver a reproducible two-month model
- Type and validate the three input tables. Keep the original date strings as evidence if you use a query to derive the typed Calendar date. Create a workbook note describing the row grain and price assumption. Write the expected 8 rows, 8 distinct OrderIDs and 23 units before adding the Amount column.
- Load the three tables, add the two lookup relationships and calculate Amount row by row. Add and mark the complete 2026 Calendar and verify coverage. Save the typed model row and aggregate controls in an ordinary worksheet.
- Build three report views from the same Data Model: a City by Month sales matrix, a month-growth view and a model-connected CUBE worksheet card, or its traced paper equivalent. Record the context next to each result. For the platform spot check, confirm Amazon Now sales at ₹1,330 from S2 and S3.
- Run the city subtotal and distinct IDs checks. Then add Products Category on the model matrix separately. Expect Dairy ₹855, Staples ₹495 and Fruits ₹900 across the two-month model. Remove that selection, then verify the original two-month grand total again.
- Prepare a short handoff note identifying the source files, model table names, active mechanisms, accepted scope and revealable check values. Use a temporary copy if you plan to try the failure test. Keep the approved version easy to restore.
Expected deliverables. The source receipt, lookup uniqueness tests, calculated Amount rows, report matrix, ₹275 card and November growth of 15.3% should agree with each other. A reviewer can recalculate them from the original tables.
Lab B — Rehearse two faults without touching the approved model
- Copy the accepted workbook. If your model reads a query source, make a disposable source copy too. Repeat the entire A-04 order and refresh the copy through its actual source path. Write expected row and money outcomes before opening the report.
- Expect nine fact rows, eight distinct OrderIDs, five distinct customer IDs and sales of ₹2,610. October rises to ₹1,405 while November stays at ₹1,205. The new November growth result is about −14.2%. Diagnose this as an inadmissible repeated OrderID under the declared grain. Restore the original copy.
- In a separate scratch input check, treat K3 as missing from Products and enumerate the affected order IDs. A-02, A-04 and A-06 lack an approved unit price. Quantities and customer IDs can remain present while three calculated amounts are unavailable. Stop acceptance before using the report as a complete total.
- Compute the subtotal from priced orders only. It is ₹1,350 across five priced orders from eight input rows. Here “five” counts order rows with an approved match, covering two unique product prices. Store the eligible amount and the exception count in separate checks. Do not backfill a zero for an unidentified price.
- Restore K3 and confirm exactly one approved matching row. Recompute the eight amounts and rerun the two-month check, including the ₹275 CUBE card. The restored view should again be ₹2,250, with no unresolved lookup keys and eight accepted orders.
8. Trace disagreements before accepting changes
Use the symptom to choose one small repeatable check
- Every city shows the grand total. Put the base Total Sales beside any special platform measure. Check that City comes from Stores and that the active StoreID relationship can filter Orders. Test S1 against its three known records. A fixed Platform formula can repeat a total when you put Platform in Rows, while the base measure should respect it.
- November appears before October. Check that the Calendar field uses the correct numeric chronological sort key. A month text label can sort alphabetically. Marking the date table gives time-intelligence functions a date basis; chronological report presentation still needs its own configuration.
- Prior month is blank everywhere. Confirm that Calendar contains the relevant dates, that the date relationship matches same-grain values, that the report filters the Calendar and that accepted October orders are present. November must have a legitimate October prior in this sample. October itself legitimately has no matching preceding month facts.
- Total is under ₹2,250 while the row count is eight. Inspect each Qty, ProductID and looked-up Price. An order can exist without a usable amount. Compute the affected-product sum independently so the size of the difference helps you locate a missing lookup or changed value.
- Amount holds while a city line disappears. Inspect the StoreID keys at intake. With a missing reference, the existing sales amounts can still sum correctly across all facts, yet a named city view can lose its assignment. Check how the client shows unmatched members and treat the key coverage exception explicitly.
- A valid CUBE card appears empty. Check the exact connection and generated date member. A report with a valid December 2026 selection may have no matching sales in this sample. A misspelled member requests a different outcome. Test one known value such as November Kolhapur ₹275 to isolate the issue.
Practice reading a unit price change as a scope question
Suppose the input owner announces that product K1 has unit price ₹100 effective December 1. Under the original October and November rules, using ₹100 retroactively would add ₹5 to nine units of K1 and increase two-month sales by ₹45. A-01 would rise from ₹285 to ₹300. A-05 and A-08 would add ₹10 and ₹20 respectively. The resulting October figure would be ₹1,060 and November ₹1,235. The DAX formula would be working on the newly provided value, while its input policy would no longer describe the accepted historical data.
The appropriate fix depends on what the amount is intended to mean. For approved transaction reporting, preserve the historical amount or the authorized historical pricing method. For scenario analysis, keep the changed price and the resulting ₹2,295 in a separate model or tagged calculation, clearly labeled as a pricing scenario. Record the reason in the revision log before the next refresh so a teammate can explain the difference.
Check the city sums against the known missing reference
If S2 is omitted from the Stores lookup in a scratch copy, the two affected orders are A-02 and A-05. Their Amount values remain computable from Products. They account for ₹370 across both months. The other named cities sum to ₹1,880. Design the audit to compare approved named mappings plus the unresolved fact values with the grand total. The model may show missing-key contribution in a blank grouping. The underlying acceptance issue is the unclassified store, which should be fixed by retrieving the approved lookup record or handling the exception under a known policy.
Do the same reasoning for Date. If only November 3 were incorrectly parsed as March 11, the grand total could remain ₹2,250 because the order still exists. November would lose ₹190 and March gain it. The Calendar could still be a perfectly complete 365-day list. A source date interpretation check protects the period totals by confirming where the affected OrderID belongs. Always compare a high-impact ambiguous date directly with the original format and producer’s expectation.
Add model diagnostics you can reuse during acceptance
While the fixture fits on paper, imagine you will receive several hundred orders next month. A routine control can count the number of Orders rows whose approved price lookup is missing. Inside the filter, DAX examines one order at a time, giving RELATED the row context it needs. A separate check can compare row count with distinct IDs in the original one-row-per-order design. Run both checks in the all-data audit scope. A date or City slicer can hide a failing row that lies elsewhere.
Fact Rows := COUNTROWS(Orders)
Distinct Order IDs := DISTINCTCOUNT(Orders[OrderID])
Missing Price Rows :=
COUNTROWS(
FILTER(Orders, ISBLANK(RELATED(Products[Price])))
)
The approved eight rows have eight distinct order IDs and no missing-price rows. The DAX filtered-empty count can appear blank. If the receipt and dataset scope have both been validated, a handoff can display that measurement as zero missing prices. With the repeated A-04 copy, the row count becomes nine while the distinct count remains eight. With K3 missing, both order counts stay eight and the price check can identify three orders in the corresponding model copy. Independently verify those IDs in the original tables and make sure the trusted reference can be restored.
A count gap can be a useful early signal, and you still need exact issue details. Check blank OrderIDs separately because a blank can be counted once by DISTINCTCOUNT. Check unique lookup keys before loading a dimension, because attaching an invalid lookup relationship can fail or make the refresh invalid. A product table with K3 twice, for example, leaves the intended unit price ambiguous even if the two rows currently show the same numeric price. Confirm the approved repeated record and preserve the reason for choosing or rejecting a specific row. Arbitrarily choosing a price because it gives the familiar total weakens future reports.
For the exercise, you can save an audit note with five fields: the accepted source, the scope, the affected ID, the difference in money, and the next action. In the missing K3 case the difference against the proper two-month baseline is ₹900. Those amounts belong to three accepted Orders in the source and await the approved lookup price. That is a partial result with an identified cause. The duplicate case has excess money from a repeated full record and requires the source-owner decision on which accepted receipt to use.
9. Leave a checkable handoff
Assess the workbook with evidence that survives a refresh
Your final file has to support someone who did not build it. Put the original input version, approved dates, named measures and checks on a clearly labeled sheet. Give each verification result an owner and a state. City labels, amount formats and precision make the report readable, while its controls make it reproducible. One attractive card without its source and scope may be difficult to repair when a store or product changes.
| Checkpoint | Evidence to submit |
|---|---|
| Source inputs | Three named tables, eight accepted orders, 23 units, agreed date conversion and no duplicate lookup keys. |
| Relationships and amounts | Active StoreID, ProductID and Date paths; every order priced from the agreed row; one traced order for each lookup. |
| Reconciliation | Correct city and month matrix, five distinct customer IDs, Amazon Now ₹1,330, and November growth 15.3%. |
| Presentation scope | Kolhapur November sales card ₹275; contact or evidence note identifying the same date and City in the review matrix. |
| Recovery | Duplicate A-04 and missing K3 results in disposable copies; restored baseline ₹2,250 and closure of practice copies. |
Try reading the handoff aloud as though you were presenting to a new teammate. Include the fixture’s valid prices, fiscal assumption, relationship grain and output scope. For example, in the accepted November full-month context, sales reach ₹1,205 versus October ₹1,045. The increase of ₹160 is 15.3% of October. That claim uses the dated, approved orders. A manager considering a budget for a particular city can open the City by Month matrix instead of assuming the overall direction applies locally.
As the dataset grows beyond two months, the two-month approval scope must stay visible. Date filters should control figures intended to remain in the original period. The full model card can change when new approved months load. Rerun a known city and month, one missing-data scenario and the expected sort order after a new period is added. Keep the measure definition and reporting policy with the source data so an exact historical result can be reproduced when needed.
10. Check and explain the model
Quick checks
1. What is the one order that supplies all of Kolhapur November sales?
A-07. S1 maps to Kolhapur, its date is November 18, and K2 costs ₹55 in the exercise. Its five units give ₹275.
2. How do October and November add up to the model total?
October contributes ₹1,045 and November contributes ₹1,205, for ₹2,250. Verify that the two calendar month filters include each approved order exactly once.
3. Why do the three city customer counts sum to six when the grand total is five?
C12 appears in Sambhaji Nagar and Pune. It is included in each of those two local ID sets and only once in the union across all cities.
4. How large is November growth and what is its denominator?
The absolute change is ₹160. Divide by October’s ₹1,045 to get about 15.3%. October provides the comparison base.
5. What can a repeated A-04 leave unchanged?
The set of eight distinct OrderIDs and five distinct customer IDs stays the same. Row count rises to nine and the amount rises by ₹360. Verify keys and money independently.
Interview practice
1. Explain why Orders is the fact table.
Its rows represent accepted order events and record quantitative values such as Qty. Store, product and date lookups identify the attributes used to group and filter those events. The policy here is one row per OrderID.
2. When would using the current Product price break the model?
If updated catalog prices differ from the transaction’s approved price, a calculated column can rewrite its apparent historical amount when the relationship lookup changes. Preserve recorded sales or use the authorized price effective for each order.
3. How would you diagnose an exact total but incorrect month totals?
Pick an order with a known date and verify the parsed Date, data type and active Calendar path. A date parsed as March 11 instead of November 3 moves ₹190 between months and leaves the all-data amount intact.
4. How can one city go down while overall November sales go up?
Kolhapur falls by ₹370, while Pune rises by ₹520 and Sambhaji Nagar by ₹10. The net difference is ₹160. Use the combined report for a company-level question and the detail for city decisions.
5. What do you verify before sharing a fixed CUBE card?
Confirm the model connection, requested measure, exact City and year-aware month members, and intended refresh cutoff. Compare it against an interactive model PivotTable and at least one contributing fact record.
Six revision cards
- Declare the fact grain. In the original model an accepted OrderID identifies exactly one source row.
- Trust a matched lookup only after validating it. Products and Stores must each use unique keys and cover accepted events.
- Calendar is a date spine. Use a complete year, typed dates and a separate chronology key. Confirm source coverage independently.
- Trace the highlighted amount. S1, November and K2 identify A-07 for Quantity 5 times ₹55.
- Bring all comparison parts. November ₹1,205, October ₹1,045, change ₹160, relative growth 15.3%.
- Test recovery. In scratch copies, verify duplicates and missing lookups, then restore the original accepted eight-order model.
Review the measure definitions or CUBE report lesson as needed. Find more practice in the Excel Practice Task Hub.
Microsoft documentation
- Relationships and key requirements in the Excel Data Model
- Power Query types and locale-aware dates
- RELATED row lookup behavior
- Create named Power Pivot measures
- Power Pivot time intelligence and date coverage
- CALCULATE filter behavior
- Distinct count totals
- Classic DATEADD
- DIVIDE and zero denominators
- CUBEVALUE report arguments