24. Power Pivot and the Data Model
24.2 Load Tables into the Data Model
Choose where each table should load and how it will update
A fictional grocery delivery analyst receives orders, store lists and product descriptions. She wants the next report to reuse the same source choices instead of manually pasting numbers into several views. Some inputs already live as worksheet Tables. An external monthly file can first pass through Power Query. A small, truly fixed lookup could be pasted into a model once. Each route puts data into the workbook differently. Choosing the route changes which local edits the model can see and which command updates it.
Start with the approved twelve-order sample from 24.1. The objective now is to make loading observable. At the end, be able to name every source, say whether it reached a worksheet, the model or both, and predict what happens after a controlled value change or a new accepted row. Do not rely on the presence of a Table tab, a query name or a chart by itself. Look at the model input shape and the report calculation separately.
- Prepare the source first. Agree on names, types, record meaning and the expected final row before loading.
- Choose the destination explicitly. Connection Only describes a worksheet loading choice. Use the separate Data Model setting when the query should feed model data.
- Refresh the actual route. An Excel linked table, a query and a clipboard copy have different update behavior.
Write an input contract for the three practice Tables
The sample uses an Orders Excel Table with one row for each approved purchase. It contains twelve orders and seven fields. Stores has four rows and three fields. Products has four rows and four fields. Each attribute lookup uses a unique text ID. The numbers are fictional and reused from 24.1. Start with a saved practice copy of those original three Tables or enter the fixture exactly as printed below. Titles and row order used for this lesson belong to the worksheets and their source Tables. Reports can sort the loaded data differently later.
| OrderID | Date | StoreID | ProductID | CustomerID | Qty | Amount |
|---|---|---|---|---|---|---|
| O-101 | 2026-10-03 | BLK-PUN-01 | P01 | C01 | 4 | 128 |
| O-102 | 2026-10-05 | BLK-NSK-01 | P02 | C02 | 2 | 180 |
| O-103 | 2026-10-11 | AMN-NGP-01 | P03 | C03 | 3 | 195 |
| O-104 | 2026-10-18 | BLK-PUN-01 | P04 | C04 | 2 | 220 |
| O-105 | 2026-10-22 | AMN-SLP-01 | P02 | C05 | 1 | 90 |
| O-106 | 2026-10-29 | BLK-PUN-01 | P01 | C01 | 6 | 192 |
| O-107 | 2026-11-02 | BLK-PUN-01 | P02 | C02 | 3 | 270 |
| O-108 | 2026-11-06 | BLK-NSK-01 | P04 | C06 | 2 | 220 |
| O-109 | 2026-11-09 | AMN-NGP-01 | P01 | C03 | 5 | 160 |
| O-110 | 2026-11-14 | AMN-SLP-01 | P03 | C05 | 4 | 260 |
| O-111 | 2026-11-20 | BLK-PUN-01 | P03 | C04 | 2 | 130 |
| O-112 | 2026-11-27 | BLK-NSK-01 | P02 | C06 | 3 | 270 |
| StoreID | City | Platform |
|---|---|---|
| BLK-PUN-01 | Pune | FreshGo |
| BLK-NSK-01 | Nashik | FreshGo |
| AMN-NGP-01 | Nagpur | MarketRush |
| AMN-SLP-01 | Solapur | MarketRush |
| ProductID | Product | Category | Price |
|---|---|---|---|
| P01 | Cow Milk 500 ml | Dairy | 32 |
| P02 | Grapes 500 g | Fruits | 90 |
| P03 | Poha 1 kg | Staples | 65 |
| P04 | Bhakarwadi 250 g | Snacks | 110 |
Use the field names OrderID, Date, StoreID, ProductID, CustomerID, Qty and Amount in Orders. The pair of Stores and Products keys must match the corresponding fact fields. Enter true dates and verify them with your client’s formula bar or typed model fields. =DATE(2026,10,3) gives the first Orders date. Enter the currency values and quantities as numbers before applying a display format. In the original practice source there are six October orders worth ₹1005 and six November orders worth ₹1310. Know those controls before testing the load.
Check the data types before and after loading
Power Pivot gives each model column a data type. A workbook cell can display a date-like string or a rupee amount even when the source is still text. Date and time values belong in a compatible date field, while department codes, StoreID and ProductID are identifiers. Keep the printed sample codes as text. A leading zero can be meaningful in imported identifiers, even though the numeric value would be the same. Fix types deliberately on both relationship sides instead of comparing displayed characters only.
| Input | Expected type | Example check |
|---|---|---|
| OrderID, StoreID, ProductID, CustomerID | Text identifiers | O-101 and BLK-PUN-01 keep their exact characters. |
| Date | Actual date for these observations | The first source row is 2026-10-03, rather than an ambiguous text string. |
| Qty | Whole number for this fixture | O-101 begins with four whole units. |
| Amount and Price | Numeric values, in rupees | Approve the precision before choosing the model number type. The printed fixture uses whole rupees. |
| Product, Category, City, Platform | Text descriptions | Check labels come from the correct lookup source. |
Distinguish a type change from a formatting change
Suppose Amount shows a currency symbol and is right-aligned. These clues may help you inspect the sheet, but formatting alone does not establish the type. Check the source and output types in a compatible editor. In a Power Query workflow inspect the column types and error counts after applying the data conversion. In Power Pivot examine the type displayed for the loaded column. Store and product keys should have comparable types on both sides even if their captions do not match word for word.
Consider a sample source where text 001 denotes one store and the numeric form 1 might be an independent internal code. Automatic numeric conversion can remove distinctions you need. Decide the correct type before cleaning either table. A trailing space can also produce a different source label or require cleaning. Preserve the original values and use a consistent normalization rule; confirm the actual model match after the change. Do not assume casing, visual formatting, or distance between columns determines joins.
Report data quality alongside types rather than hiding it. If there should be twelve valid numeric Amount values, count twelve valid numeric entries in the accepted source. Approve the six listed observations per month. One missing Amount can leave twelve order IDs but only eleven measured numbers. The missing measurement requires resolution before explaining an aggregate as complete. A copy of a total that ignores bad values can appear reasonable and still fall short of the accepted input set.
Route 1. Link a worksheet Table to the workbook model
Use a supported Excel for Windows authoring client. With the original worksheet data in named Excel Tables, select a cell in Orders and use Power Pivot Add to Data Model. Repeat for Stores and Products. In the Power Pivot window a link indicator marks a model table with an Excel Table source. In some Windows workflows the Insert PivotTable dialog for a table or range also offers Add this data to the Data Model. That can add its selected table while creating a report. When learning, inspect what arrived rather than creating several new reports just to load the same input.
- Choose the exact worksheet table to link. Confirm it includes its original headings and only the approved source rows.
- Add the Table to the model using the supported command. Open Power Pivot Manage for this workbook.
- Look for the Orders model table and its link indicator. Check that it has the expected field names and original records.
- Repeat for the two lookup Tables and verify their four-row populations.
- When ready to report, confirm relationships and a known result. Loading is only the first step in the analysis.
Microsoft documents that a linked worksheet Table normally synchronizes changes into the model automatically. It can also use manual mode. In the Power Pivot window select the correct linked table and inspect the Linked Table area and its Update Mode. With Manual selected, use the supported Update Selected or Update All commands to synchronize at the intended time. The workbook’s report may need separate refresh or recalculation afterward. Inspect the changed model row before interpreting a report value.
Keep the original table and source direction in mind. A linked Table lets you continue editing worksheet data and synchronize the model. Adding the source to the model does not turn every cell on the sheet into part of the Table. Appending below a gap or outside the Table can leave the approved new record in the wrong place. Check the actual Table and model row counts after any change in scope. Editing the loaded data grid as if it were a worksheet is a different operation and not how these linked sources should be maintained.
Route 2. Load a Power Query result to the model
Power Query can read an approved input, make a repeatable set of transformations, and write its result to a selected output. The result can be previewed in the Query Editor before it is loaded. In a compatible Windows client start from one source only for this exercise, such as a copy of Orders using Data From Table/Range. Verify the headers, types and row count in the preview. Give the query a name identifying the intended output. Check any type conversions, filters or renamed columns before loading.
- Use Home Close & Load To from the Query Editor, or Data Queries & Connections, the relevant query’s context menu, and Load To if appropriate for your version.
- In the destination dialog choose Only Create Connection if you want no new worksheet output table. Select Add this data to the Data Model to load the approved result into the model.
- Verify both choices. The dialog choices cover worksheet output and model output. Creating a connection alone does not mean the result was loaded to the model.
- Open Manage and check the loaded query-backed table name and exact source counts. A connection described as Connection Only in the worksheet pane can still be loaded to the model when the model setting is enabled.
- Keep one approved representation of Orders in each practice model. Perform the distinct-route trials in separate copies so you can compare them.
If Load To is unavailable during first creation, Microsoft documents alternative routes through the listed query on the Queries & Connections pane or the Query menu in the Editor after making its initial load. Inspect which worksheet output was created before deciding whether to retain it. A new query table on the grid is an output of the query, and a refresh can change it. Keep a worksheet output only when it has an agreed role such as a visible review extract. For a model-only result, verify actual model presence and connections instead of forcing people to keep a duplicate displayed grid.
Use the query route when the source arrives regularly and needs repeatable preparation. For example, you may need to remove a blank separator, standardize a date column with a known locale, or combine several department input files. Document every transformation that changes the eligible rows or columns. If a query does not load the intended set, inspect its Applied Steps from source to final result. A Preview row count or first records can provide evidence, but confirm the completed load and the resulting model report too.
Suppose a twelve-order query accidentally has a filter excluding O-112. The worksheet original can still contain that order for ₹270. The loaded data then has eleven rows worth ₹2045. November now has five records worth ₹1040, and Nashik becomes ₹400 once its lookup relationship works. Removing the unauthorized filter and applying a correct refresh should restore O-112 and the three controls. This error concerns an approved record lost during preparation. Editing the sales measure to add 270 as a constant would not bring back the missing order and would be wrong for a changed source.
Route 3. Store a clipboard snapshot in a separate model
Microsoft documents copying and pasting data into the Power Pivot window for a supported client. Use a new practice model for a clipboard trial. Copy the four approved Stores rows and their headings, then inspect the paste preview and confirm the correct header choice. Name the resulting table for that trial. Verify its four StoreIDs. Pasted data is a model snapshot without an automatic worksheet source relationship. If you later change a cell in the original worksheet, a separate clipboard snapshot does not receive that edit automatically.
Power Pivot offers Paste Append or Paste Replace for suitable tables originally created by pasting. Microsoft documents limitations on using those options with linked or imported tables. In a supported pasted-table trial check the exact column count and order before appending or replacing. A selected replacement can preserve the table structure and existing relationships under that workflow, but you still need a correct key population. Use a separate lab only. For a cycling monthly feed, a maintained query or linked worksheet is usually easier to verify than pasting repeated extracts by hand.
A frozen illustrative list can be an appropriate snapshot when no source refresh is expected. A governed list updated often needs a repeatable source path and clearly documented approvals. Storing model data inside a workbook is not by itself a promise of fresh or private output. Know which model inputs were saved with the file and whether the intended recipient should have access to their contents. Give a reviewer the named source and update responsibility for each approved table.
Trace a loading problem before editing the report
Check the approved input
The source includes O-101 through O-112, twelve rows worth ₹2315. O-112 supplies ₹270.
Read the output of the load
If the model has eleven rows and ₹2045, inspect O-112’s presence and which route loaded the source.
Restore approved selection
Fix the source range or unauthorized query filter, refresh the intended object and verify O-112 returned.
Verify model and report controls
Confirm twelve rows, ₹2315 total and the declared period totals of ₹1005 for Oct and ₹1310 for Nov.
Practice two update routes with the exact sample
Lab 1. Load linked tables and verify changed data
- Prepare the original three Tables in a disposable workbook. Record their approved sizes and the combined order amount.
- Add them to the model as linked Tables. Open Manage to verify twelve Orders rows, four Stores rows and four Products rows.
- Create the approved StoreID and ProductID relationships if needed for grouped controls, and verify a model report of ₹2315 with twelve orders.
- Try the original exercise changing O-101 Qty from 4 to 5 and Amount from 128 to 160. Apply the appropriate linked model update and report refresh. Check ₹2347 and the unchanged row count of twelve.
- Restore the original and use a separate copy to append the approved training order O-113: 2026-11-30, BLK-PUN-01, P04, C07, Qty 1 and Amount 110. Ensure it actually belongs to the Orders Table.
- Synchronize and verify the new model row count of thirteen and total sales ₹2425. Pune becomes ₹1050 and Snacks becomes ₹550. Restore or discard the appended copy after recording it.
Lab 2. Compare a connection with and without its model load
- Start with a separate practice workbook that has the original Orders worksheet Table and no Orders table in its model. Create a query from that Table and verify the exact data shape in the Editor.
- Use Only Create Connection without adding the result to the model in this first test. Verify the connection exists and the query has no Orders table populated in Manage.
- Change the load settings to add the result to the Data Model without requiring a new worksheet output. Inspect the twelve loaded rows, seven fields and ₹2315 control.
- In another copy apply a deliberate filter dropping O-112 before load or refresh. Verify eleven rows and ₹2045 in the model. Undo the training filter with the approved original saved and recheck the outputs.
- Compare notes across the two routes. Record the source table/query, which destination you selected and how you proved the data reached it.
A workbook that already had Orders from the linked route would obscure the second lab’s first checkpoint. That is why the lab starts from a new model state and uses a separate workspace. If you see two Orders-like model tables, inspect their real source identities and which one the measure references. Two tables do not automatically double the sum of one fixed table. Importing identical fact rows twice into the particular Orders table used by a measure would inflate that sum. Distinguish duplicate objects from duplicate input records.
Reconcile the approved input against the data actually loaded
Tell a scope error from a changed value using two different controls
In this exercise a correct source change and a missing source row both change the total. They should look different in a review. Correcting O-101 to 160 makes the total ₹2347 without adding or removing a fact. Excluding O-112 makes it ₹2045 and drops the count to eleven. Adding one approved record makes it ₹2425 at thirteen. Build a small evidence table on a separate worksheet and put your expected numbers in it before pressing refresh. This gives you a quick test of whether the model used the approved source or a shorter extract.
| Scenario | Orders rows | Overall sales | Other evidence |
|---|---|---|---|
| Original approved input | 12 | 2315 | Oct 6 orders at ₹1005. Nov 6 at ₹1310. |
| Correct one measured amount | 12 | 2347 | O-101 now has ₹160. Every other row keeps its original amount. |
| O-112 omitted by the wrong filter | 11 | 2045 | Nov 5 orders at ₹1040. Nashik ₹400. |
| One approved O-113 added | 13 | 2425 | Nov 7 orders at ₹1420. Pune ₹1050. |
If the two monthly totals agree while someone used a different snapshot, verify the actual key-and-amount pairs as well. Two changes can compensate. An order amount can be removed and another value of the same size can appear unexpectedly. A count does not distinguish which records are present. The list of approved OrderIDs, accepted types and numeric pair controls provide evidence of scope. Write the review against the dataset that actually backs the report rather than against a copy of only the report totals.
Know what a repeatable conversion must preserve
In a CSV or worksheet file, a date can start as text. For example, 10/3/2026 is ambiguous across locales. If the intended date is October 3, a day-first parser can interpret it as March 10. Type the date in a controlled worksheet fixture with DATE, or use a Power Query type conversion with the known locale for the actual source. Test a day greater than twelve and a second ambiguous one. Calendar sorting, monthly filters and model relationships all depend on the underlying value. A sentence saying “the date was formatted correctly” does not describe how it was parsed.
If only O-101 moves from October 3 to March 10 because of a parse error, the loaded amount still totals ₹2315 for all dates. October would fall from ₹1005 to ₹877 and a separate March group could gain ₹128 if present in the date coverage. That matters as soon as the report asks for recent months. Confirm the old and new dates of a representative row and reconcile period filters after correcting a conversion. Amount controls and period controls test different failure modes.
Durable import steps also make a clear distinction between numeric zero and missing amount. Keeping the O-112 row but clearing its Amount leaves twelve OrderIDs and eleven numeric amounts. If someone then excludes or ignores the blank numeric input in their sum, the report’s available value becomes ₹2045, the same sum as the dropped-row scenario. A count of all facts and a numeric-amount count distinguish the cases. Inspect both before deciding to remove a source row, fill a zero, or ask for a corrected input.
Give a learner enough detail to trace a column type issue. Check the original worksheet or file values, the applied type in the query, and the model column type after loading. If a step reports an error for a row, preserve that row with a reason until the source owner approves a correction or exclusion. Removing every conversion error can make the report appear healthy while silently dropping approved orders. A small accepted practice dataset gives you a known original key to find after attempting a repair.
Use a destination checklist before committing a second copy
- Worksheet output. Best when somebody must inspect the full prepared table in the grid and the data fits the chosen workbook routine.
- Model output. Useful when reporting uses relationships and measures and the grid copy is unnecessary.
- Both destinations. A deliberate choice when a reader needs the prepared worksheet data and the model for separate analyses. Keep the two roles clear.
- Connection without direct output. An intermediate preparation query can feed another query without loading its own table into the grid or the model.
Consider a fictional retail workbook where a raw order query feeds a cleaned query. The first query might connect to the approved file and standardize headings. The second might remove canceled orders under a business rule and load the accepted sales population into the model. If both are added to the model, a reader can have trouble choosing the intended input even though no amounts automatically multiply. Give the accepted table an unmistakable role and document which sources and applied steps define it. Enable only the destinations the report actually needs.
Suppose you bring both an identical linked Orders table and an imported Orders copy into the workbook by accident. The measure summing the linked Orders table still reads that table only. A report using the duplicate imported copy could show another edition until its query refreshes. Consolidating both copies into one fact table without checking record keys would create 24 fact rows and ₹4630. This difference between two available tables and duplicated rows in one referenced table is central to troubleshooting a model whose numbers appear exactly doubled.
Keep an audit of planned source and model names
Name one actively maintained input for each fact or lookup. The worksheet Table Orders, a query called Orders Prep and a model table for approved Orders can refer to related stages with different roles. Do not assume renaming the worksheet alone renames every connected object. Review the source reference and reports when changing a name or field. A currently valid Power Query might still refer to the original heading in an Applied Step. An existing measure may likewise depend on a model field with that name. Change schema in a copy and verify the exact dependent reports and data shape.
For the three teaching Tables, write a short record of source holder, loaded table name, role, count, expected type, and update method. Orders has 12 rows and explains sales amounts. Stores and Products are keys and descriptions and have four rows each. A colleague following those notes can tell you which Table to edit and which column can change safely. Keep one accepted workbook and make new copies for alternate routes. Many difficult refresh bugs start when a teammate points to a differently named lab file believing it is the approved source.
Separate a bigger intake from excessive model data
Model-only output can place many records in a workbook without filling the worksheet grid. It still consumes model storage and memory. Keep only the columns and rows required by agreed analysis and review, especially unique text fields you will never use. Microsoft publishes model and client limits that depend on the environment. Test real file size and refresh time for the intended users rather than assuming the absence of a grid table makes the model small. Keep enough source identity to join, group and reconcile the report accurately.
Pair a loading choice with a specific refresh test for the person who inherits the workbook. Show an unchanged baseline, one approved correction, and one accepted append with the expected results before and after. Tell them exactly where to inspect the model rows. For large sources, an independent receipt can report loaded rows, amount and distinct identifiers by approved file. This practice uses twelve rows, so manually checking all of them is reasonable. The underlying idea scales because it forces you to compare the approved input and model population as separate things.
Investigate a failed refresh without replacing approved source data
Start with the first place that changed. If an external file was moved or permission expired, Power Query may not be able to connect even though the previous model values remain visible. If it connects and a header changed, the failure can instead occur in a later step that still expects the old field name. If the query preview looks approved and the model table stays unchanged, inspect its actual load destination and refresh state. In all cases compare against an independently approved record, such as O-112 at ₹270. An apparently current twelve-row PivotTable could still use a previously saved edition.
Do not begin a recovery by pasting new values into a model-backed report. Even when worksheet cells can be edited, the next refresh can redraw the output from its own data. Check the model table’s connection or source type first. For a copy from the clipboard, apply the supported replacement workflow only if the approved purpose was to store a new snapshot. For a linked table, correct the intended worksheet Table and use its synchronization path. For a query, diagnose the connector, applied steps and load settings. Each route has a different first place to look.
Run a tiny rehearsal with the teaching source. Save the approved model at ₹2315. Then change O-101 to ₹160 in a copied version, with its approved quantity updated to five. The first confirmation is the source result. The second is the model entry, before examining the report. In a static pasted trial, an unchanged ₹128 is expected. In an automatic linked trial, look for synchronization. In a Power Query trial, verify the source and loaded result after a deliberate refresh. Finally compare the corresponding report totals under the same clear filters. The source instruction is the same, while the observed update behavior depends on the loading route.
Some reports intentionally show a saved approved snapshot while a separate working model updates. Give that file an explicit date and purpose. A recipient who must refresh a specific data source needs compatible software, an approved accessible path and the intended query or linked Table preserved. A recipient who only needs to verify approved inputs may work from a checked extract and documentation. Retain the source definitions and privacy requirements regardless of whether the model has a visible worksheet output.
At the end of the lab, record the column types and source destination choices you actually observed. Audit evidence can be brief: source, approved rows, result, method and one distinctive key. Compare the note against the current workbook when someone asks why a source edit failed to appear. It is easier to fix one checked transition than to reconstruct an entire workbook from a PivotTable total.
In a final review, name the loading operation you would use to recover each failure. An approved row outside the worksheet Table must first enter that Table. A row removed in Applied Steps needs the query selection corrected. When the loaded model is right but the visible result is wrong, inspect report context. Make those changes in the relevant copy and rerun its expected counts.
Explain how the approved rows reached the result
Quiz
Does a Connection Only query always supply Data Model rows?
The result needs its Data Model load setting selected. A query can exist without a worksheet output and without a model table, so inspect the actual destination.
Which source counts should appear in this model?
Orders has twelve original rows, Stores four and Products four. Verify exact names, fields and values before adding relationships.
How do worksheet linked tables normally update?
They usually synchronize automatically. A manual update mode exists, so inspect the current mode and actual changed row before checking the report.
What did dropping O-112 do?
It left eleven modeled rows worth ₹2045. The missing ₹270 and a lost November row identify the approved source record to recover.
Which method makes a worksheet edit flow immediately into a copied clipboard table?
A pasted model table is a separate stored copy. To synchronize worksheet changes use a supported linked route, or use the approved copy and update commands in the relevant pasted-table scenario.
Interview questions and answers
When is a Data Model-only query destination useful?
When the report uses model fields and no worksheet output is required. Verify model load settings, filters and the actual table before assuming the source is available.
How do you tell an input issue from a PivotTable issue?
Check the approved original source, then the model's loaded values and counts, then the report connection and filters. The first mismatch tells you which layer needs attention.
Why check types on both relationship columns?
Matching-looking values can represent different types or identifiers. Inspect both columns and preserve meaningful characters such as leading zeros.
How do you verify an approved append?
Confirm the new record is in the worksheet Table or query output and then in the model, followed by the expected amount and row-count changes in the report.
How would you choose a source route for repeatable monthly files?
I would use a supported, repeatable intake and keep its source identities and schema explicit. A query can prepare the data and load to the model; the output still needs coverage checks.
Revision cards
- Linked Table. Worksheet source with automatic or controlled manual model synchronization.
- Query. Repeatable preparation with explicit destination, schema and coverage.
- Paste. Separate model snapshot with appropriate update commands for that table type.
- Type check. Verify actual data types and identifiers, not only formatted labels.
- Scope. Include every approved source row and exclude notes, totals and duplicate imports.
- Evidence. Inspect source, model and report after one known change.
Review the original table-load illustration or use the Excel Practice Task Hub. Continue to relationships in Diagram View.
Microsoft references
- Linked worksheet Table and its update modes
- Load To settings and query destinations
- Connections and model-loaded query indicators
- Model column data types
- Inspect and set a model type
- Pasted table options and constraints
- Model creation and loading options
- Source connections, preparation and delivery
- Workbook model environment and size limits
- Keep relevant model columns and records