Data Models and Power Pivot

Stop copying columns between tables with lookups and let Excel relate them instead. Learn to tell fact tables from dimension tables, load them into the Data Model, link them in a star schema with a date table, and write DAX measures such as totals, distinct counts and shares of a total. Then analyze the model with PivotTables and slicers, read every result correctly, and keep the model small and fast.

AdvancedLesson 4 of 7 in Data Analysis with Spreadsheets Course

What you will learn

  1. Recognize the problems of copying columns into one wide table and describe what Excel's Data Model and Power Pivot do instead.
    • Spot the limits of one flat table built with lookups
      See why copying product and customer details into every sales row causes repeated data, size limits and extra maintenance, and how related tables avoid it.
    • Describe the Data Model and the Power Pivot tools
      Know where the Data Model is stored, how its engine holds data, and which Excel tools and versions let you build and edit it.
  2. Decide which tables record events and which describe them, then bring each table into the Data Model by the route that suits its source.
    • Sort tables into fact and dimension tables
      Identify fact tables and dimension tables, state the grain of each fact table, and choose the key columns that will link them in a star schema.
    • Load tables into the Data Model
      Prepare clean source tables and choose between the PivotTable checkbox, Add to Data Model, Power Query and Power Pivot's import routes, then refresh the model.
  3. Link tables with one-to-many relationships, add a date table, and set types, names and visible fields so the model is easy and safe to use.
    • Create and manage relationships
      Link a dimension's unique key to the matching fact column, follow the rules Excel's model enforces, and repair keys that do not match.
    • Add a date table
      Build and mark a calendar table, relate it to the fact dates, and use its columns to group, sort and compare by time.
    • Set types, names and visible fields
      Give the model correct data types, clear names, consistent formats, hierarchies and a field list that shows only what report users need.
  4. Define reusable calculations in DAX, explain how filter context and row context decide their results, and change the filters with CALCULATE.
    • Write basic measures
      Create explicit measures with SUM, COUNTROWS, DISTINCTCOUNT and DIVIDE, name and format them, and build measures from other measures.
    • Use filter context, row context and calculated columns
      Explain why a measure gives a different result in each PivotTable cell, how row context works in calculated columns and SUMX, and when to use a column instead of a measure.
    • Change the filter context with CALCULATE
      Use CALCULATE with simple filters, ALL and DIVIDE to build filtered totals and shares, and connect it to time intelligence.
  5. Build PivotTables and slicers on the Data Model, read their results correctly, and trace odd results back to the model.
    • Build a PivotTable from the Data Model
      Insert a PivotTable on the model, combine fields from several tables with measures, and connect slicers across reports.
    • Check and extend PivotTable results
      Verify results against the source, recognize the symptoms of missing relationships and unmatched keys, and turn PivotTable cells into CUBE formulas.
  6. Explain what makes a data model large or slow and apply the fixes that reduce its memory use and speed up reports.
    • Explain what makes a model large or slow
      Relate model size to columns and distinct values, and identify the calculations and layouts that slow PivotTables down.
    • Shrink and speed up a model
      Remove what the analysis does not need, reduce precision, choose measures over stored columns and load each table once.

Data Models and Power Pivot study guide

6 chapters

1

Choose a model for related data

A sales report often needs details that live in several places: transactions in one table, product categories in another, and customer regions in a third. Copying those details into every transaction works for a small report, but creates more work as the data grows. A data model lets the tables stay separate. The first decision is whether those links and reusable calculations will make your reporting simpler.

A flat table puts every field needed for a report in one wide table. A sales row might contain an order date and amount plus a product name, category, customer name, and region copied in with lookups. For a small, one-time report, an ordinary PivotTable on that table can be the simplest choice.

The difficulty grows when the same descriptions occur on many rows. In a million-row sales list, two category names may be repeated across a million cells. Lookup formulas also have to recalculate. If someone pastes their results as values, later changes to a product's category can leave old descriptions in the sales list.

A data model keeps the sales, product, and customer tables separate. A relationship links matching keys, such as Sales[ProductID] and Products[ProductID]. Excel can then summarize sales by a category from Products without adding Category to Sales. The relationship is used when the report is calculated; it does not merge the tables or copy their columns.

The example tables

Products contains these three rows. All amounts throughout this example use one currency.

ProductIDProductNameCategoryUnitPrice
P1Pen setStationery20
P2NotebookStationery25
P3Desk lampLighting80

Customers contains C1, Alder Studio, North; C2, Birch Clinic, South; and C3, Cedar School, North. Sales contains one row per order:

OrderIDOrderDateProductIDCustomerIDQuantityAmount
10012026-01-05P1C1240
10022026-01-05P2C2125
10032026-01-12P1C2360
10042026-02-03P3C1180
10052026-02-10P2C34100
10062026-02-17P3C22160
10072026-03-02P1C3120
10082026-03-09P2C1250

Flattening these tables would put Stationery on six sales rows and Lighting on two. With relationships, Category stays on the three product rows. If P2 changes category, correct Products and refresh; reports then use its updated category.

When the model earns its setup

A worksheet stops at 1,048,576 rows and 16,384 columns. A model table supports up to 1,999,999,997 rows, though available memory is the practical limit. A 3,000,000-row CSV can therefore go straight into the model without passing through a worksheet.

Models also provide reusable measures, which are named calculations, and Distinct Count in PivotTable Value Field Settings. Separate fact tables, such as Sales and Budget, can share descriptive tables for comparison. A normal PivotTable on one range has only that range's fields available.

Choose a model when related tables, large row counts, or reusable calculations make that setup useful. You can start with existing Excel tables and Power Query results. You need clean keys and a clear link between tables; you do not need to redesign the source as a database.

Key Takeaways

  • Relationships let a report combine fields without copying columns.
  • A worksheet has a fixed row limit; model capacity also depends on memory.
  • Use a model for related tables, large data, or reusable measures.
  • An ordinary PivotTable remains useful for one small, complete table.

1.2 Find the model and its editing tools

The Data Model is stored inside the workbook file, separate from its worksheets. It holds tables, relationships, and calculations that PivotTables, PivotCharts, and CUBE functions can read. Saving the workbook saves the model too.

Its engine, often called VertiPaq, stores data column by column and compresses each column. Repeated values compress well, so the stored model can be much smaller than the source. Typical models can be roughly seven to ten times smaller than their source data. While the workbook is open, the model is held in memory. This makes scanning columns for totals fast but makes available memory important.

Power Pivot is the Excel add-in used to inspect and edit the model. To enable it in a supported Windows edition:

  1. Open File > Options > Add-ins.
  2. In Manage, choose COM Add-ins, then Go.
  3. Select Microsoft Power Pivot for Excel and confirm.
  4. Use Power Pivot > Manage to open its window.

The window offers two views. Data View shows a grid and a tab for each table. It lets you inspect loaded values and add calculations, but existing source cells are read-only. Diagram View shows table boxes connected by relationship lines. It is useful for checking which tables connect and which key columns they use. The calculation area below the Data View grid is a place to create measures.

You can carry out some model tasks from Excel itself. Data > Relationships manages links. The PivotTable dialog can add a table to the model. Power Query can also load directly into it. Power Pivot gives you the fuller editing tools for tasks such as marking a date table and hiding technical fields.

Follow the work through the tools

Power Query imports and cleans data. Its steps might remove subtotal rows, set Amount to a numeric type, and load the result. Power Pivot then supplies relationships and measures. A PivotTable uses that finished model to show results. If a source amount is wrong, correct the source or query and refresh; typing over the value in Power Pivot's grid is not a way to repair it.

Power BI uses the same modeling engine and DAX formula language, and Power BI Desktop can import an Excel workbook's queries and model. This shared foundation makes the modeling skills useful beyond an individual workbook.

Build and edit this model in Excel for Windows with Power Pivot available. Microsoft documents the features for Excel for Microsoft 365 and supported editions of Excel 2016, 2019, 2021, and 2024; availability depends on the edition. Excel for Mac does not support the Data Model.

Google Sheets has no built-in counterpart combining these relationships and DAX measures. Connected Sheets can create pivot tables over data in BigQuery. In that setup, joining tables is handled in BigQuery or through other spreadsheet methods.

Key Takeaways

  • The workbook stores the model; Power Pivot edits it.
  • Power Query cleans and loads data before modeling.
  • Data View shows values; Diagram View shows relationships.
  • Correct source values at the source and refresh.
  • The model compresses columns and uses memory while open.
2

Plan and load the tables

Before importing data, decide what a row means and which table owns each description. That choice determines which numbers can be added safely and which fields can filter them. You will separate transactions from descriptions, sketch their keys, and load clean tables into the workbook model. The loading route should suit the source and avoid worksheet copies that the report does not need.

2.1 Give each table a clear job

A fact table records events, such as sales or deliveries. It holds numeric values to summarize and keys identifying the things involved. A dimension table describes those things: products, customers, dates, or stores. Its key has one unique value per row; its other columns give report labels and groups.

Start by stating the grain: what exactly does one fact row represent? In the running Sales table, it is "one row per order." Every order has one product, a customer, a date, a quantity, and an amount. In another business an order may have several product lines, so "one row per order line" would be the right description. A row count means an order count only when that grain makes it so.

Do not mix detail rows with totals. If daily transactions and a monthly subtotal are loaded together, summing Amount counts some sales twice. Remove the subtotal rows during preparation. A model cannot infer that one row is only a display total.

Sketch a star schema

A star schema places a fact table in the center, linked directly to its dimensions. For Sales, draw three surrounding tables:

  • Products: one row for P1, P2, and P3, with ProductName, Category, and UnitPrice.
  • Customers: one row for C1, C2, and C3, with CustomerName and Region.
  • Dates: one row for every day in the reporting calendar, with year and month labels.

Sales holds ProductID, CustomerID, and OrderDate to connect to them. P1 occurs once in Products and three times in Sales. That is the intended relationship between descriptions and transactions, not a duplicate-product error.

A number in a table does not make it a fact table. UnitPrice describes a product, so it belongs in Products here. Quantity and Amount describe a sale, so they belong in Sales. Keep descriptive columns used to group, filter, or label in the dimensions.

A snowflake extends the design by linking a dimension through another dimension. For example, Products could point to a separate Categories table. Excel supports this arrangement, but a simple star is easier to follow because the descriptive tables connect directly to the facts.

Compare facts at different grains

Suppose a Sales table records individual transactions and Budget records one amount per category per month. Do not join the two fact tables directly. Repeated categories and months would make a direct link ambiguous or invalid. Give them shared dimensions with unique keys: a Categories table can filter Products and Budget, while a Dates table can filter the date key used by each fact table.

A monthly budget can use a consistent date such as the first day of its month. That connects it to the calendar for month-level comparisons; it does not turn a monthly budget into daily amounts. State each table's grain and compare at a level both support.

Key values must match exactly. "P1" and "P01" identify different values even if a person reads them as the same product. Clean codes before loading, and keep the key columns that every intended relationship needs.

Key Takeaways

  • State what one fact row represents before counting or summing.
  • Dimensions have unique keys and supply labels and filters.
  • A star links dimensions directly to a fact table.
  • Keep detail and subtotal rows out of the same fact table.
  • Compare separate fact tables through shared dimensions.

2.2 Load clean tables once

Give every source table one header row, one data type per column, and no blank or subtotal rows. Remove merged cells. For worksheet data, use Ctrl+T to create an Excel table and set its name in Table Design > Table Name. Names such as Sales and Products will appear in the model and in DAX, so choose them before creating formulas.

There are four useful routes into the Data Model.

RouteWhat to doBest use
PivotTable dialogInsert > PivotTable > From Table/Range; select "Add this data to the Data Model"Start a model and a PivotTable from one worksheet table
Power Pivot ribbonSelect a table cell; choose Add to Data ModelAdd a linked worksheet table
Power QueryClose & Load To; select Only Create Connection and "Add this data to the Data Model"Import and clean files, folders, and database data
Power Pivot importOpen Home > Get External Data in the Power Pivot windowImport through the older Table Import Wizard

A linked table keeps the worksheet table as its source. You edit the worksheet data, then refresh the model. The two locations serve different purposes: the worksheet is the editable source, while the model supplies analysis.

Load a large sales file

For a 3,000,000-row sales CSV, use Data > Get Data > From File > From Text/CSV. Open the Power Query editor. Set key types consistently, set OrderDate to Date, and set Amount to a numeric type. Remove any totals and columns the reports do not use.

Choose Home > Close & Load To. Select Only Create Connection and also select Add this data to the Data Model. The query result now loads into the model without a worksheet table, so the worksheet's row limit does not block it. "Only Create Connection" by itself does not load rows into the model; the model checkbox matters.

For the small Products and Customers lists, format and name the worksheet tables, select a cell in each, and use Power Pivot > Add to Data Model. Open Power Pivot > Manage afterward and check that all three expected table tabs appear once.

Keep the load and refresh clear

Loading one query both to a worksheet and to the model stores a worksheet copy as well as the model data. Use that option when you need the sheet; otherwise the extra copy adds file size and remains subject to worksheet limits. Also avoid adding the same source by two different routes. Tables named Sales and Sales 1 can leave a report using the wrong copy even if both contain similar rows.

Use Data > Refresh All after changing the source. Query cleaning steps run again, the model updates, and reports built on it refresh. A renamed source column is a structural change: a query step referring to the old name can fail. Repair that step in Power Query, then refresh again. A successful initial load does not guarantee that later source changes will fit the same steps.

Key Takeaways

  • Clean headers, types, and rows before loading.
  • Power Query can load millions of rows directly to the model.
  • Select both Only Create Connection and the Data Model checkbox.
  • Check for duplicate model tables after loading.
  • Refresh repeats the saved query steps.
  • Repair query steps when a source column name changes.
3

Connect and prepare the model

A report can combine fields only when its tables have a valid path between them. Unique keys and compatible types make that path possible; the direction of filtering explains the results. Add a complete calendar for time-based reports, then make the field list easy to use. Clear names, sensible formats, and hidden technical keys help everyone build reports from the same model correctly.

3.1 Make relationships carry filters

A relationship links matching columns so a filter on a dimension can select related fact rows. Excel supports one-to-many and one-to-one relationships. On the one side, every key value is unique; on the many side, values can repeat.

In Diagram View, drag Sales[ProductID] to Products[ProductID]. Alternatively, open Data > Relationships > New. Set Table to Sales, Column (Foreign) to ProductID, Related Table to Products, and Related Column (Primary) to ProductID. The table you select first does not decide which values may repeat: the actual keys must satisfy the relationship rules.

For the Stationery row in a PivotTable, Products keeps P1 and P2. The link then keeps Sales rows for those products. Filters travel from the one side to the many side. Sales does not send that filter onward backward into Customers. This direction matters when a measure counts rows in a dimension instead of counting customers represented in Sales.

Check the keys before connecting
  • The lookup column on the one side must be unique. Blanks and empty strings together count as one blank value, so more than one is invalid there.
  • The linked columns need compatible data types. Change whole-number 101 and text "101" to matching types in Power Query before creating the link.
  • Each relationship uses one column. Excel does not accept a pair of columns as a composite key.
  • A table cannot link to itself, and relationships cannot form a loop.

Suppose Products contains P2 twice, with two different descriptions. Removing a duplicate is safe only after deciding which record represents the product. If the rows really describe different items, give them distinct keys and use those keys in Sales. A relationship needs an unambiguous item, not simply a list shortened until Excel accepts it.

When identity depends on two fields, create one combined key in both tables. Region and month could become "North|2026-01". Use a separator and a consistent format so different combinations cannot collapse to the same code. The dimension's combined key must still be unique.

To test the relationship, make a small PivotTable using a dimension label and a fact amount. Confirm that changing the label changes the selected facts. Then inspect a known key at each end. This checks the intended meaning of the link as well as Excel's ability to create it.

A valid relationship can contain unmatched fact keys. If Sales contains P4 but Products stops at P3, P4's amount appears under (blank) in a category report. Add the missing product or correct the fact key and refresh. Hiding the blank group conceals the data problem.

Handle repeated groups and alternate dates

Products and Budget cannot relate directly on Category when both repeat it. Create Categories with one row per category and link each table to it. Categories can then filter Products, which filters Sales, and can also filter Budget. Use the shared Categories field in the comparison report.

Only one relationship between a pair of tables can be active. For OrderDate and ShipDate linked to Dates, Diagram View shows the active relationship as solid and the inactive one as dashed. A measure can select the other date path:

Sales by Ship Date :=
CALCULATE([Total Sales], USERELATIONSHIP(Sales[ShipDate], Dates[Date]))

Without a CustomerID relationship, Region on Rows can repeat the full sales total, 535, for both North and South. After linking Customers to Sales, the results become North 290 and South 245. AUTO-DETECT can suggest links when names and types suit it, but it can miss ambiguous choices. Check the actual columns in Data > Relationships; matching column names alone do not establish a valid link.

Key Takeaways

  • A dimension filters related fact rows from one to many.
  • The one-side key must be unique and the key types compatible.
  • Unmatched fact keys can create a blank report group.
  • Use a unique shared dimension when a category repeats in both tables.
  • One active relationship selects the default date path.
  • USERELATIONSHIP can activate an alternate path within a measure.

3.2 Build a calendar that covers every day

A date table is a dimension with one row per calendar day, including days with no transactions. Add Year, Quarter, MonthNumber, MonthName, and any other time labels the reports need. A calendar for 2026 has 365 rows; 2024 needs 366 because it is a leap year.

A list of sales dates is not a complete calendar. It leaves out quiet days and can repeat busy ones. That makes it unsuitable as the unique date dimension. A separate calendar gives Sales and Budget a shared set of month and year labels and supports DAX time intelligence.

Create and connect the calendar

You can create the daily list in Power Query or on a worksheet, load it to the model, and name it Dates. Power Pivot also offers a date-table creation command under Design > Date Table > New. Make the range cover the fact dates, usually in complete calendar years, so the first and last reporting years are usable as calendars.

Set Dates[Date] to a date type. Check that it has unique dates, no blanks, and no gaps in its daily sequence. Use Design > Mark as Date Table in the Power Pivot window and select its date column. This identifies the calendar column for time-intelligence calculations such as year-to-date totals.

Relate Sales[OrderDate] on the many side to Dates[Date] on the one side. A date table can have a perfectly clean daily key while the fact date still fails to match. For example, 2026-01-05 at 14:32 is different from 2026-01-05 at midnight. In Power Query, convert the fact date-time column to Date to remove the time part before loading. Changing only its display format does not remove the stored time.

Make months sort as months

MonthName is text, so its ordinary sort puts April before February. Select MonthName in Power Pivot's Data View and use Home > Sort by Column > MonthNumber. MonthNumber provides the ordering, while MonthName provides the readable label. Each month name must map to its intended month number.

For a report covering several years, use Year with MonthName so January from different years is not combined unintentionally. The same calendar columns can be reused by every report built on the model.

With MonthName on Rows in the running example, January contains 40, 25, and 60, totaling 125. February contains 80, 100, and 160, totaling 340. March contains 20 and 50, totaling 70. The three monthly totals give 535 overall.

Automatic date grouping can add helper columns to a fact table for a quick report. Those columns belong to that fact table. They do not supply the shared daily calendar needed to compare several fact tables consistently, and they do not replace marking the model's date table.

Key Takeaways

  • Use one unique, nonblank date for every day in the calendar span.
  • Relate fact dates to the calendar and mark its date column.
  • Remove unwanted time parts in Power Query before matching dates.
  • Sort month names by MonthNumber.
  • Use Year as well as MonthName when reporting across years.

3.3 Make the field list clear and reliable

The model's field list is the report builder's working surface. Good names and visible fields make the intended choices easy; correct types and formats make those choices behave properly.

Set types in Power Query before loading where possible. In the Power Pivot window, Home > Data Type can also set a column's type. Common types include Whole Number, Decimal Number, Currency, Text, Date, and TRUE/FALSE. Types affect aggregation, sorting, and whether relationship columns are compatible.

If Amount is imported as text, dragging it into Values counts entries instead of summing the amounts. A number format showing two decimals cannot repair a text column. Change the type to Decimal Number or Currency in the source query and reload it. Conversely, an identifier can be text even when it contains digits: its job is to match a key, not to be totaled.

Name the objects before writing formulas

Rename Table1 to Sales and amt to Amount. These names appear both in the field list and in formulas, so meaningful names reduce mistakes when several tables contain similar fields. A DAX column reference includes its table: Sales[Amount]. A table name containing spaces uses single quotes, as in 'Sales Data'[Amount].

Technical keys are necessary for relationships, but often unnecessary for report users. Right-click Sales[ProductID] and choose Hide from Client Tools. Do the same for other fact keys that users should not group by. The column remains stored in the model and remains available to relationships and DAX. Hiding is a presentation choice, not a way to reduce memory.

Leave the useful dimension fields visible: Products[ProductName], Products[Category], and Customers[Region]. A product name in the dimension gives the report a readable label and can represent products with no sales when the report is configured to display them.

Set the report behavior once

Choose number formats in the model or measure settings so every PivotTable starts with consistent displays. Counts need whole numbers, amounts may need two decimals, and shares need percentages. Formatting changes presentation; it does not change the stored value or the calculation's precision.

Use Sort by Column when labels have a meaningful order. Small, Medium, and Large can sort by a SizeOrder column holding 1, 2, and 3. The label stays readable while its order comes from the numeric helper.

A hierarchy groups fields into drill-down levels. In Diagram View, select Year, Quarter, and MonthName in Dates and choose Create Hierarchy. Arrange them in that order. Adding the hierarchy to Rows lets the user expand a year into quarters and a quarter into months, without rebuilding the layout.

If inspection reveals an incorrect customer name or amount, fix the worksheet, file, or query that supplies it and refresh. Data View lets you inspect loaded source values, but it is not an editable worksheet for correcting those cells.

Key Takeaways

  • A data type controls behavior; a format controls display.
  • Use clear table and column names before building measures.
  • Hide technical keys without deleting relationships or formula inputs.
  • Model formats apply consistently across reports.
  • Sort labels by a helper column when alphabetical order is wrong.
  • Hierarchies provide ordered drill-down levels.
  • Repair source values at the source and refresh.
4

Write calculations that follow the report

A measure gives one answer for the data currently selected in a report cell. The same formula can therefore show a category total, a regional total, or a workbook-wide total. Start with reusable sums and counts, then follow how filters reach those calculations. Row-by-row expressions solve a different job, while CALCULATE lets a measure deliberately change its filters for comparisons and shares.

4.1 Create reusable measures

DAX, Data Analysis Expressions, is the formula language used by the Data Model. Function names stay in English across language versions of Excel. A measure is a named formula that returns one value for the filters currently applied. The model stores the formula and calculates its result when a report needs it.

Dragging a numeric column into Values creates an implicit measure, such as "Sum of Amount." This supplies a standard aggregation in that PivotTable. An explicit measure has a name and a formula you define, and can be reused in the workbook's PivotTables, PivotCharts, and other measures.

Create the first measures

Choose Power Pivot > Measures > New Measure. Select the home table, enter the measure name, and enter its formula. For Total Sales, the formula field is =SUM(Sales[Amount]). Set an amount format with two decimals. The home table organizes the measure; filters still come through the model's relationships.

You can also write a measure in Power Pivot's calculation area. There the combined definition includes its name and :=:

Total Sales := SUM(Sales[Amount])
Order Count := COUNTROWS(Sales)
Customers := DISTINCTCOUNT(Sales[CustomerID])

The field list's Add Measure command offers another entry point. Column references include the table name, as in Sales[Amount]. References to existing measures use just the bracketed measure name, as in [Total Sales].

In the eight-order example, Total Sales is 535, Order Count is 8, and Customers is 3. Customers counts each customer key once even when it occurs on several orders. SUM(Sales[Quantity]) gives 16; MIN(Sales[Amount]) gives 20; MAX(Sales[Amount]) gives 160. AVERAGE(Sales[Amount]) gives 66.875.

COUNTROWS counts orders here because there is one row per order. If the grain were order lines, it would count lines. DISTINCTCOUNT on the fact's customer key counts customers represented by the selected sales, which is useful when filtering by products.

Build one measure from another
Average Order := DIVIDE([Total Sales], [Order Count])

This gives 535 divided by 8, or 66.875. A display format with two decimals shows 66.88 while retaining the unrounded calculation. A change to Total Sales also flows into Average Order because the formula references that measure.

DIVIDE(numerator, denominator) returns blank when the denominator is zero or blank. Its optional third argument supplies a constant alternate result, such as zero. Use it for ratios where a denominator may be missing. Ordinary division with / can produce special values such as Infinity or NaN when division is undefined.

A measure must return a single value in each context. Writing =Sales[Amount] alone leaves Excel with many candidate amounts. SUM(Sales[Amount]) defines how to reduce them to one value. Data Model PivotTables use measures for these calculations; the ordinary PivotTable calculated-field command is not available.

Key Takeaways

  • Explicit measures are reusable named DAX formulas.
  • Reference columns as Table[Column] and measures as [Measure Name].
  • COUNTROWS counts the rows at the fact table's grain.
  • DISTINCTCOUNT counts each selected key once.
  • DIVIDE handles a zero or blank denominator.
  • A measure returns one value in the current context.

4.2 Choose row calculations and report calculations

Filter context is the set of filters used to calculate a measure. Rows, Columns, slicers, report filters, and the formula itself can all contribute. In a PivotTable with Category on Rows and Region on Columns, the Stationery/North cell has both filters. They select the matching Sales rows through the relationships.

The running example gives these results for Total Sales:

CategoryNorthSouthTotal
Stationery21085295
Lighting80160240
Total290245535

A total recalculates the measure in its own context. For Total Sales the detail cells add up, because a sum is additive across these groups. Customers is 3 for Stationery and 2 for Lighting, but 3 overall: some customers bought both. Average Order is about 49.17 for Stationery and 120 for Lighting, but 66.875 overall. Averaging the two category averages gives about 84.58.

The category averages come from different group sizes: Stationery has six orders totaling 295, while Lighting has two totaling 240. The full calculation uses 295 + 240 = 535 across 6 + 2 = 8 orders. Averaging the two displayed averages treats two Lighting orders as equally important as six Stationery orders.

Row context means the current row in a row-by-row calculation. It exists in a calculated column and inside an iterator such as SUMX. A column reference can then supply a value from that current row.

Multiply within each sale before adding

To calculate revenue from quantities and related product prices, write:

Revenue :=
SUMX(Sales, Sales[Quantity] * RELATED(Products[UnitPrice]))

SUMX visits the selected Sales rows. RELATED follows each row's ProductID to the one matching Products row. The eight products of quantity and price are 40, 25, 60, 80, 100, 160, 20, and 50. SUMX adds those row results to get 535.

Multiplying two sums does a different calculation. SUM(Sales[Quantity]) * SUM(Products[UnitPrice]) gives 16 times 125, or 2,000. It loses the pairing between each sale's quantity and its product's price.

Store a label when a report needs to group by it

A calculated column evaluates once for each row and stores the result. In Products, use:

Price Band = IF(Products[UnitPrice] >= 50, "Premium", "Standard")

P3 becomes Premium; P1 and P2 become Standard. Price Band can go on Rows or in a slicer. It is recalculated when the data refreshes and takes space like an imported column. A measure produces a result on demand for Values; it does not provide a stored grouping label.

Row context alone does not filter an aggregation. A Sales calculated column containing SUM(Sales[Amount]) therefore repeats 535 on every row in this example. Use the current row's own column for a row value, and a measure for a report total.

Key Takeaways

  • Filter context selects the data for a report cell.
  • Totals recalculate the measure; distinct counts and averages need not add.
  • Row context supplies the current row to a calculated column or iterator.
  • SUMX evaluates each row expression before adding its results.
  • RELATED retrieves the matching value from a relationship's one side.
  • Use columns for grouping labels and measures for report values.

4.3 Change filters for totals and comparisons

CALCULATE evaluates an expression in a changed filter context. Start with an existing measure, then specify the filters to add, replace, or remove. A simple condition replaces an existing filter on the same column; filters on other columns still apply.

Stationery Sales :=
CALCULATE([Total Sales], Products[Category] = "Stationery")

On a PivotTable's Stationery row this gives 295. On its Lighting row it also gives 295: the formula replaces the Category selection with Stationery. If Region is on Columns, the North result is 210 and the South result 85. Nothing in the formula removes the Region filter.

Multiple filter arguments must hold together:

North Stationery :=
CALCULATE([Total Sales],
    Products[Category] = "Stationery",
    Customers[Region] = "North")

This gives 210. A simple condition can also compare a numeric column with a fixed value, such as Products[UnitPrice] >= 50.

Choose the denominator's filters
All Product Sales := CALCULATE([Total Sales], ALL(Products))
Share of Sales := DIVIDE([Total Sales], [All Product Sales])

ALL removes filters from Products. With Category on Rows and no other filters, All Product Sales is 535 on each category row. Stationery's share is 295 divided by 535, or about 55.1%; Lighting's is about 44.9%.

Add Region on Columns. In the North column the denominator becomes 290, because ALL(Products) does not remove the Customers filter. Stationery/North is therefore 210 divided by 290, or about 72.4%. Lighting/North is about 27.6%. Naming the denominator "all sales everywhere" would misdescribe this calculation.

Show Values As > % of Column Total gives the same North comparison in this layout. % of Grand Total instead divides 210 by 535, giving about 39.3%. A reusable share measure makes the denominator's rule available to other formulas and reports, not just this PivotTable's display settings. ALL(Products[Category]) removes only the Category filter; ALL(Products) removes filters from all columns in that table.

For example, a Price Band slicer and a Category row both filter Products. ALL(Products[Category]) removes the row's category choice while keeping Price Band; ALL(Products) removes both. Choose the narrower or broader removal according to the comparison you want. A percentage can look reasonable with either denominator, so inspect its remaining filters before interpreting its label.

Keep a condition instead of replacing it
Selected Stationery :=
CALCULATE([Total Sales],
    KEEPFILTERS(Products[Category] = "Stationery"))

KEEPFILTERS intersects the new condition with the existing filter. A Stationery row gives 295, while a Lighting row gives blank because no rows satisfy both category conditions.

Time-intelligence functions also change date filters. With a marked Dates table and its relationship in place:

Sales YTD := TOTALYTD([Total Sales], Dates[Date])
Prior Year Sales :=
CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Dates[Date]))

Sales YTD is 125 in January, 465 in February, and 535 in March. February includes both January's 125 and February's 340. Prior Year Sales shifts the selected period back one year; it needs the earlier year's dates and sales to return that comparison.

Key Takeaways

  • CALCULATE changes the filters used for an expression.
  • A simple condition replaces a filter on the same column.
  • ALL removes the specified table or column filters.
  • A share keeps filters that its denominator does not remove.
  • KEEPFILTERS intersects a condition with the current filter.
  • Time intelligence uses the marked date table to change the period.
5

Build reports and check their results

A model becomes useful when its fields and measures form a report you can trust. Build PivotTables with dimension labels and reusable calculations, then connect slicers to compare the same selection across views. The results also help diagnose the model: a repeated total, an unexpected blank group, or a distinct count that seems too large each points to a different check. Keep source totals close enough to verify the report.

5.1 Use dimensions for labels and measures for values

Create a PivotTable from the workbook's Data Model. Use Insert > PivotTable > From Data Model where available, or Home > PivotTable in the Power Pivot window. Excel can also expose the model through the PivotTable connection picker: choose the tables in This Workbook Data Model. The important choice is the whole model as the source.

The field list now contains several tables. Its All tab shows all model tables; Active shows those in use. Expand a dimension to find descriptive fields and expand the measure's home table to find its calculations.

Build the sales report
  1. Put Products[Category] on Rows.
  2. Put Customers[Region] on Columns.
  3. Put [Total Sales] in Values.

Stationery gives North 210 and South 85. Lighting gives North 80 and South 160. Region totals are 290 and 245; the grand total is 535. Each row and column label filters Sales through its own relationship.

Add [Customers], defined as DISTINCTCOUNT(Sales[CustomerID]), to Values. Stationery has two customers in North and one in South; Lighting has one in each region. The overall total is three customers. Several report cells can contain the same customer, so distinct counts overlap even when their sales amounts do not.

Make the field choices reusable

Use dimension fields for Rows, Columns, Filters, and slicers. Use measures for Values. Products[ProductName] provides readable labels and belongs with Category in the same dimension. Sales[ProductID] is a transaction key: hiding it helps users choose the descriptive field.

Dragging Amount directly into Values creates an implicit "Sum of Amount." Value Field Settings can change its aggregation, including Distinct Count for a Data Model PivotTable. An explicit measure is a better choice when its definition and format must stay consistent across reports.

If Excel reports "Relationships between tables may be needed," inspect the keys and create the intended relationship. AUTO-DETECT can help, but verify the link in Data > Relationships. A field list showing both tables does not itself prove that one table filters the other.

Share selections across views

Insert a slicer for Customers[Region]. Select the slicer, open Report Connections, and select every PivotTable it should control. The PivotTables need to use the same Data Model. Choosing North can now filter the category report and a monthly sales report together. PivotCharts can use the same model and measures as well.

Use prepared dimension columns for grouping. Dates[Quarter] gives every report the same quarter definitions; Products[Price Band] gives them the same product groups. A hierarchy can provide year-to-quarter-to-month drill-down. Model columns make those groups available wherever needed.

Adding another PivotTable or PivotChart does not load another copy of the underlying model tables. All of these reports read the same stored data, relationships, and measures.

Key Takeaways

  • Create the PivotTable on the workbook model.
  • Dimension fields label and filter; measures supply Values.
  • Check relationship warnings before trusting cross-table results.
  • Report Connections lets one slicer control reports on the same model.
  • Prepared dimension groups can be reused across reports.

5.2 Trace suspicious values and build flexible reports

Check a model against the source before trusting its more detailed views. For the running example, COUNTROWS(Sales) must be 8 and Total Sales must be 535 with no report filters. A lower row count can point to a query filter; a higher one can point to duplicate loading or repeated source rows. Compare both count and amount because one check alone can miss a problem.

Next, inspect the measure's meaning. A sum of sales is additive across disjoint category groups. A distinct customer count recalculates over all selected rows. Three customers in Stationery and two in Lighting can correctly give three overall when the groups share customers. An average also recalculates from the underlying rows, not from an unweighted average of displayed averages.

Follow three useful symptoms

A blank group. A category report's "(blank)" row can contain sales whose ProductID has no matching Products row, or whose key is blank. Check those fact keys against the dimension. Correct the source or add the missing dimension item, then refresh. Hiding the group leaves its underlying records unresolved.

The same value on every row. Check whether the row field can filter the table being measured. With no Customers-to-Sales relationship, each Region row can show the full sales total. But a valid model can also repeat a dimension count: Products filters Sales, not Customers. DISTINCTCOUNT(Customers[CustomerID]) therefore shows three customers for each Category, while DISTINCTCOUNT(Sales[CustomerID]) counts the customers who bought within that category.

Unexpected detail behind a cell. Double-click a value to use Show Details and inspect the returned fact rows. For Stationery/North, the relevant orders are 1001, 1005, 1007, and 1008; their amounts 40, 100, 20, and 50 total 210. The connection's maximum-record setting limits detail extraction. A detail sheet may contain only part of a large cell's records; compare its returned count with the measure's full count before treating it as a complete export.

Arrange a report beyond a PivotTable grid

PivotTable Analyze > OLAP Tools > Convert to Formulas replaces the PivotTable cells with CUBE formulas connected to the model. The cells can then be positioned freely in a report. A formula for the Stationery total is:

=CUBEVALUE("ThisWorkbookDataModel", "[Measures].[Total Sales]", "[Products].[Category].&[Stationery]")

It returns 295 in the unfiltered example. The connection, measure, and member text identify exactly what the cell requests. The formula still reads the model; it is not a pasted snapshot of the number.

Show Values As settings and value filters such as Top 10 remain useful for Data Model PivotTables. After Data > Refresh All, recheck counts, totals, and unmatched keys. New products, customers, or dates can change the report's groups as well as its values.

Key Takeaways

  • Check unfiltered row counts and amount totals against the source.
  • Read each total using the definition of its measure.
  • Investigate blank groups and repeated values through keys and filter paths.
  • Show Details helps trace records, but its output can be capped.
  • CUBE formulas let individual report cells query the model.
  • Recheck the report after refreshing new source data.
6

Reduce model size and reporting work

A large row count is only one reason a model uses memory. Columns with many distinct values, stored calculations, and unnecessary copies can matter just as much. Report speed also depends on the calculation and the number of groups requested. Find what the analysis actually needs, remove expensive unused data before loading, and compare the saved size and report time after each meaningful change.

6.1 Find the columns and queries that cost the most

The model stores and compresses columns separately. A column's row count, type, encoding, and cardinality all affect its size. Cardinality means the number of distinct values. A Region column with only North and South has low cardinality even across millions of rows. An OrderID column with a different value on every row has high cardinality.

Text storage uses a dictionary of distinct strings plus compact references to them. Whole numbers can use value encoding, which can be more compact. Unique long comments or text codes are often expensive because there are many distinct strings to store. In a 3,000,000-row Sales table, a two-value Region column can be tiny beside an OrderID column with 3,000,000 distinct values.

Repeated text is still worth placing in a dimension when that is its natural home. Compression helps, but loading a description millions of times is unnecessary when a small Products table can supply it through a relationship.

Look closely at timestamps

A non-leap year has 365 days. With times to the second, there are 86,400 possible times of day and 31,536,000 possible date-time combinations across that year. A timestamp column can therefore have many distinct values even when each part is much simpler.

Splitting a needed timestamp into separate Date and Time columns lowers each column's cardinality: at most 365 dates and 86,400 times of day in this example. The pair still identifies the original date and time. Rounding the time to minutes reduces its possible values to 1,440; rounding to hours reduces them to 24. Rounding discards finer detail, so it is a different choice from splitting.

Calculated columns also occupy storage for every row. A measure stores its formula and calculates results on demand. A stored Line Total can therefore add millions of values when the report only needs their sum.

Separate storage cost from query cost

A simple SUM can scan a compressed numeric column quickly. A distinct count over a nearly unique key needs more work. A SUMX expression with expensive row-level calculations can be slow on a very large fact table. A PivotTable with OrderID on Rows can request millions of groups even when its measure is simple. The report layout affects the work Excel must do.

The whole open model uses memory. Current 32-bit Excel can use up to 4 GB of address space on 64-bit Windows, shared with open workbooks and add-ins; on 32-bit Windows the limit is at most 3 GB. This is address space, not memory reserved exclusively for the model. For large models, 64-bit Excel provides much more room, subject to the computer's available resources.

Do not judge model size from row count alone. A longer table with a few repeated values per column can use less memory than a shorter table with many unique strings. To find a useful reduction, inspect the columns and the work the slow report requests.

Key Takeaways

  • Cardinality counts distinct values and strongly affects compression.
  • Long, unique text columns often cost substantial memory.
  • Splitting timestamps preserves detail; rounding removes detail.
  • Calculated columns store row results; measures store formulas.
  • Complex calculations and many displayed groups can slow a report.

6.2 Trim data while preserving the analysis

Start with the reports and calculations the model must support. Make a list of their fields, relationship keys, and required time span. Then remove unused data in Power Query before it is loaded. Hiding a field changes the field list but leaves its storage cost in place.

Prioritize high-cardinality columns that no report needs: free-text comments, audit timestamps, and fact-row IDs can be large. Keep a row identifier if users need order-level tracing. Keep every column used by a relationship or measure even if it is hidden from report users. Removing ProductID may save space, but it also removes the product filter path.

Make a sequence of small, checkable changes
  1. Save a baseline workbook. Record its file size and time a slow report refresh.
  2. Remove an unused expensive column in Power Query, reload, and save again.
  3. Compare the saved size, rerun the report, and check its totals.
  4. Continue with the next useful change, keeping enough information to explain any result difference.

Work from the largest likely costs down. Removing one unique comment column can help more than removing several small category fields. A saved workbook's size is a practical comparison for storage; timing the same report tests the query work that the change was meant to improve.

Keep only needed rows and precision

If every report covers the last three years, filter older rows out in Power Query. Loading ten years and hiding seven in a report still stores all ten. A deliberate history cutoff also changes the available analysis, so check that comparisons such as prior-year measures still have the rows they need.

When reports use dates but not times, convert a timestamp to Date. If time detail is needed, split Date and Time before considering rounding. Round to minutes, hours, or two decimal places only when the lost precision has no reporting purpose. Changing the display format alone does not remove stored precision.

For values that are only totaled, a measure can avoid a stored calculated column:

Revenue :=
SUMX(Sales, Sales[Quantity] * RELATED(Products[UnitPrice]))

This keeps the quantity-price pairing without storing Line Total on every sale. A grouping label such as Price Band still needs a column because a slicer needs stored categories. Avoid replacing useful grouping columns simply to reduce the column count.

Keep the structure compact

Load each query once to the model. Use Only Create Connection plus Add this data to the Data Model when a worksheet copy is unnecessary. Remove duplicate model tables and unused loads. Keep product descriptions in Products, where there are three rows in the example, instead of repeating them across a huge Sales table. Use compact whole-number keys or short codes where suitable, with matching types on each relationship.

If trimming still leaves the model too large for 32-bit Excel, use 64-bit Excel with enough memory and close other large workbooks. Recheck unfiltered counts, totals, and the slow report after the move so the larger capacity does not hide an unresolved data issue.

Key Takeaways

  • Remove unused columns before loading, starting with costly unique values.
  • Keep relationship keys and calculation inputs.
  • Filter unnecessary history in Power Query.
  • Reduce precision only when the analysis can lose the detail.
  • Use measures for results needed only as report values.
  • Compare file size, report time, and correctness after changes.

Data Models and Power Pivot examples

6 Walkthroughs

1

Decide when related tables help

9 steps
Follow a sales report from copied descriptions to a workbook model, then decide which tool owns each job.
  1. 1
    IntroductionA report needs three lists

    A sales total is simple when every needed field lives in one table. A category-by-region report is different: the transaction has the amount, Products has the category, and Customers has the region.

    You could copy the descriptions into Sales. A Data Model gives those tables another way to work together, using relationships between their product and customer keys, so each description is stored only once.

  2. 2
    ExampleSee what copying creates

    Products has three rows: P1 Pen set and P2 Notebook are Stationery; P3 Desk lamp is Lighting. The example Sales table has eight orders.

    Copying Category into Sales repeats Stationery on six rows and Lighting on two. If a copied label becomes stale, the report can keep grouping by the old category even though the product list is correct.

  3. 3
    ExplanationConnect the key, keep the description

    A relationship matches Sales[ProductID] with Products[ProductID]. Category stays in Products; Amount stays in Sales.

    When a report groups by Category, the link selects the sales for the matching products. Nothing has been pasted or merged into the fact rows. Correct a category in Products and refresh to make reports use the updated description.

  4. 4
    ChallengeChoose a source for the report

    A team has 2 million transactions plus separate product and customer lists. Its category and region reports must stay consistent. What makes a model useful?

    ---reveal---

    The transactions exceed one worksheet's row limit, and relationships let the reports use descriptions from the other lists without copying them onto every transaction. The same model can also supply reusable measures to several reports.

  5. 5
    ExplanationFind where the data lives

    The Data Model is stored inside the workbook, separate from the sheets. Its engine stores and compresses each column and holds the open model in memory.

    Repeated categories compress well. Millions of unique strings cost more. Large row capacity therefore does not remove the need for enough memory or for sensible column choices.

  6. 6
    ConnectionUse the tools in order

    Power Query imports and cleans the source data. Power Pivot edits the model's relationships and DAX measures. PivotTables and PivotCharts read the finished model.

    In Power Pivot, Data View shows loaded values, Diagram View shows the links, and the calculation area holds measures. Build and edit the model in a supported Excel for Windows edition with Power Pivot available.

  7. 7
    ChallengeRepair a loaded value

    Power Pivot Data View shows a customer in the wrong region. The table came from an Excel worksheet table. Where should the correction happen?

    ---reveal---

    Correct the region in the source worksheet table and refresh the model. Data View's source cells are read-only. The report then receives the corrected description through the refreshed Customers table.

  8. 8
    ChallengeSeparate a model decision from a repair

    A small complete table supports one one-time sum report, but a name is misspelled. Does the error make a model necessary, and how should it be fixed?

    ---reveal---

    The ordinary PivotTable still fits the report. Correct the name in its source and refresh. A data error needs a source correction; related tables, large loads, or reusable calculations are the reasons to consider model setup.

  9. 9
    RecapMake the modeling decision

    Choose a model when relationships, scale, or shared calculations make reporting easier. Keep descriptions in their own tables, use keys to connect them, and repair source values where they originate.

    The workbook stores the model. Power Query prepares its inputs, Power Pivot edits its structure, and reports read its results.

2

Plan the rows and load the model

11 steps
Define table roles and grain, then load a large fact file and small dimensions without unnecessary copies.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionStart with the row
  2. 2
    ExampleState the sales grain
  3. 3
    ExplanationGive descriptions their own tables
  4. 4
    Key InsightSketch the star
  5. 5
    ChallengeCatch a mixed grain
  6. 6
    ExplanationPrepare the source
  7. 7
    ExampleOpen the large file in Power Query
  8. 8
    ExampleChoose the model destination
  9. 9
    ChallengeExplain the missing model table
  10. 10
    ChallengeCheck the load and the meaning
  11. 11
    RecapKeep the input repeatable
3

Follow keys, dates, and report fields

15 steps
Connect dimensions to facts, build a matching calendar, and prepare fields that report users can choose safely.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionMake every filter path visible
  2. 2
    ExplanationStart with one and many
  3. 3
    ExampleFollow Stationery into Sales
  4. 4
    ChallengeRepair an unmatched product
  5. 5
    TipResolve repeated category keys
  6. 6
    ConnectionKeep an alternate date path
  7. 7
    ExplanationBuild all the calendar days
  8. 8
    ExampleRemove the stored time
  9. 9
    ChallengeFix the calendar layout
  10. 10
    ExplanationSeparate types from formats
  11. 11
    ExampleHide the technical path
  12. 12
    ExplanationPrepare drill-down levels
  13. 13
    ChallengeKeep a key without offering it as a label
  14. 14
    ChallengeDiagnose two date problems
  15. 15
    RecapCheck the path and the field list
4

Predict what a DAX measure will return

19 steps
Build measures, trace their contexts, and choose filters for a reusable share of sales.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionOne formula, many report cells
  2. 2
    ExampleCreate Total Sales
  3. 3
    ExplanationDefine the count you need
  4. 4
    ExampleBuild a measure from measures
  5. 5
    ChallengeChoose a customer count
  6. 6
    ExplanationRead the filters in a cell
  7. 7
    Key InsightRecalculate the total
  8. 8
    ExampleKeep the quantity and price paired
  9. 9
    ExampleAdd the row results
  10. 10
    ExplanationStore a category for slicing
  11. 11
    ChallengeCatch the repeated total column
  12. 12
    ExampleReplace one category filter
  13. 13
    ExampleRemove product filters from the denominator
  14. 14
    ExampleCalculate the share
  15. 15
    ChallengePredict the retained filter
  16. 16
    Key InsightIntersect when replacement is wrong
  17. 17
    ConnectionChange the date period
  18. 18
    ChallengeChoose the intended share
  19. 19
    RecapAsk what is selected and what is stored
5

Build and verify a model report

12 steps
Create a cross-table PivotTable, connect a slicer, and trace suspicious values to their causes.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionBuild a report you can explain
  2. 2
    ExampleCreate the model PivotTable
  3. 3
    ExampleRead one cell and its totals
  4. 4
    TipUse the dimension label
  5. 5
    ChallengeConnect the second view
  6. 6
    ExplanationReconcile before drilling down
  7. 7
    Key InsightDistinguish a valid total from an error
  8. 8
    ChallengeExplain the repeated customer count
  9. 9
    ExampleTrace a cell to its orders
  10. 10
    ConnectionFree the report cells
  11. 11
    ChallengeCheck the refresh end to end
  12. 12
    RecapTrust the path and the measure
6

Make a large model smaller and faster

10 steps
Identify expensive columns and report work, then choose reductions that preserve needed analysis.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionLook beyond the row count
  2. 2
    ExplanationCount different values
  3. 3
    ExampleSplit before discarding precision
  4. 4
    ChallengeExplain the slow layout
  5. 5
    ExampleRemove an unused expensive column
  6. 6
    ExplanationReduce rows and stored results
  7. 7
    ChallengeChoose what must remain
  8. 8
    TipMeasure the effect
  9. 9
    ChallengePreserve the required time detail
  10. 10
    RecapKeep the analysis, reduce the cost

Data Models and Power Pivot practice questions

50 Practice Questions in 5 sets

Set 1: Choose tables, links, and calculations10 Practice Questions

Question 1 of 10

A team has separate transaction, product, and customer tables. It needs one report using fields from all three without copying descriptive columns. What Excel feature fits this need?
  1. A worksheet table with copied values
  2. A Data Model with relationships
  3. A PivotTable based only on transactions
  4. A query that appends the three tables
Show answerHide answer
Answer: B
Relationships let a report combine related tables while keeping their columns separate. A PivotTable based only on the transaction range cannot use the other tables' descriptions unless those fields are brought into its source. Appending the tables would stack unlike rows instead of connecting their keys.

Question 2 of 10

A product name is wrong in a model table loaded from a worksheet. Where should the name be corrected?
  1. In the Power Pivot data cell, followed by a save
  2. In the PivotTable product label, followed by a save
  3. In a separate copied Products list, without updating the source
  4. In the source worksheet table, followed by a refresh
Show answerHide answer
Answer: D
The worksheet table supplies the product name, so correct it there and refresh the model. Power Pivot's Data View shows loaded source values but does not let you overwrite those cells. Changing a report label would leave the stored source problem unresolved.

Question 3 of 10

A delivery file has one row per package. A delivery may contain several packages. What does COUNTROWS(Deliveries) count, and what is needed to count deliveries?
  1. It counts packages; distinct DeliveryID counts deliveries.
  2. It counts deliveries; distinct PackageID counts packages.
  3. It counts packages; summing DeliveryID counts deliveries.
  4. It counts packages; distinct PackageID also counts deliveries.
Show answerHide answer
Answer: A
The grain is one package per row, so COUNTROWS counts packages. Repeated DeliveryID values identify packages in the same delivery, so DISTINCTCOUNT on that key counts deliveries. Treating a table name as its grain would overstate the number of deliveries.

Question 4 of 10

A query contains 1,800,000 clean transaction rows and no worksheet output is needed. What load settings send the result to the model?
  1. Table on a new worksheet with the model checkbox cleared
  2. Only Create Connection plus Add this data to the Data Model
  3. Only Create Connection with the model checkbox cleared
  4. Table on the existing worksheet with no model connection
Show answerHide answer
Answer: B
Choose the connection-only output and also select the Data Model checkbox. That loads the query result directly into the model without the worksheet row limit. Only Create Connection on its own keeps the query connection but does not load those rows into the model.

Question 5 of 10

Products has ProductID values 21, 21, and 22 as whole numbers. Transactions has repeated whole-number ProductIDs. Why can Products not be the one side of the intended relationship?
  1. Its ProductID column contains numeric keys.
  2. Its transaction keys repeat on the many side.
  3. Its ProductID column contains a duplicate key.
  4. Its ProductID column must be sorted before it can be related.
Show answerHide answer
Answer: C
The one side needs a unique key, and 21 appears twice in Products. Repeated keys are allowed in Transactions on the many side; they are not the problem. Resolve which product row each key identifies before creating the relationship.

Question 6 of 10

Sales has a timestamp of 2027-04-08 09:15. Dates has 2027-04-08 at midnight. The sale appears in the blank date group. What source change makes the intended daily relationship match?
  1. Format the Sales timestamp to display only its date.
  2. Change the Dates column's display format to match Sales.
  3. Mark Dates as a date table and leave the fact timestamp unchanged.
  4. Convert the Sales timestamp column to Date in Power Query.
Show answerHide answer
Answer: D
Converting the timestamp to Date removes its time part, allowing it to match the daily calendar key. A date-only display format merely hides the time; the stored 09:15 still differs from midnight. The relationship compares stored values, not the appearance of the cells.

Question 7 of 10

Orders contains one row per order. What DAX expression counts the orders in the current selection?
  1. SUM(Orders[OrderID])
  2. AVERAGE(Orders[OrderID])
  3. COUNTROWS(Orders)
  4. DISTINCTCOUNT(Orders[Amount])
Show answerHide answer
Answer: C
COUNTROWS counts the selected rows, which are orders at this table's grain. Summing OrderID adds identifier values and has no order-count meaning. Distinct amounts would count price values, so orders with the same amount could be combined.

Question 8 of 10

Sales has two rows: quantity 3 of product R and quantity 2 of product S. Products gives prices R = 12 and S = 35. The tables are correctly related. What revenue does a row-by-row quantity-times-price measure return?
  1. 106
  2. 235
  3. 94
  4. 47
Show answerHide answer
Answer: A
The row results are 3 times 12 = 36 and 2 times 35 = 70, totaling 106. Multiplying the quantity sum of 5 by the price sum of 47 gives 235, but that pairs each quantity with both prices. SUMX preserves the correct product price for each sale.

Question 9 of 10

A report needs readable product names by region with a reusable sales calculation. Products and Customers both filter Sales. What layout fits the model?
  1. Sales[ProductID] on Rows, Customers[Region] on Columns, Total Sales in Values
  2. Products[ProductName] on Rows, Customers[Region] on Columns, Total Sales in Values
  3. Products[ProductName] on Rows, Customers[Region] on Columns, Count of Amount in Values
  4. Products[ProductName] on Rows, Customers[Region] on Columns, Count of Products in Values
Show answerHide answer
Answer: B
Dimension fields provide the product and region labels, and the explicit Total Sales measure supplies the calculation. A count of product names answers a different question from sales amount. Using the fact key also loses the readable product labels the report requires.

Question 10 of 10

A model holds 2 million rows. A category report refreshes quickly, but changing Rows to a unique SessionID makes it very slow. SessionID is also a large text column. What best explains both observations?
  1. SessionID has high cardinality, increasing storage and the report's number of groups.
  2. The ID has high cardinality, but the added report also duplicates the stored fact table.
  3. The ID's text type prevents all compression, and changing Rows reloads the source file.
  4. Category grouping scans fewer fact rows, so the ID's distinct values have no storage cost.
Show answerHide answer
Answer: A
A unique SessionID has many distinct strings to store, and putting it on Rows requests a group for every session. That explains both its storage cost and the slower layout. Adding a report does not duplicate the model tables, and text can still be compressed.
Set 2: Apply model rules to working reports10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A department copied supplier regions into 70,000 purchase rows as plain values. A supplier changes region, but old report rows keep the old label. What design addresses this maintenance problem?
  1. Keep the pasted regions and refresh only the purchase PivotTable.
  2. Relate the two Region columns instead of the supplier key columns.
  3. Keep region in Suppliers and relate its key to Purchases.
  4. Append the supplier list below the existing purchase rows.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

ServiceTickets has one row per ticket with a ServiceID. Budget has one row per service category per month. Services contains several services per category. A monthly report must compare actual ticket counts and budget by category. What structure supports both facts without a direct fact-to-fact link?
  1. A unique Categories table filtering Services and Budget, plus a shared Dates table.
  2. A Services-to-Budget link on Category, plus a Dates table filtering only ServiceTickets.
  3. A unique Categories table filtering only Services, plus Dates filtering both facts.
  4. A unique Categories table filtering only Budget, plus Dates filtering both facts.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A model relationship connects Items to Usage on ItemID. Usage contains X9, but Items contains only X1 through X8. Where does X9's usage appear when a PivotTable groups by Items[Category]?
  1. Under the prior item's category.
  2. Under each category equally.
  3. Outside the grand total entirely.
  4. Under the blank category group.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A technical fact key must remain available to relationships and DAX but should disappear from the PivotTable field list. What command does this?
  1. Power Query Remove Column
  2. Hide from Client Tools
  3. Remove Field from Rows
  4. Hide Worksheet Column
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A report selection has Total Fees of 1,260 and Visit Count of 18. Average Fee is DIVIDE([Total Fees], [Visit Count]). What does it return, and what happens if the count becomes zero with no alternate result specified?
  1. 70 now; blank for a zero count.
  2. 70 now; zero for a zero count.
  3. 22,680 now; blank for a zero count.
  4. 18 now; an error for a zero count.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A training report has 4 workshop bookings averaging 45 and 12 seminar bookings averaging 75. Each row is one booking, and these are all bookings. What overall average should the measure show?
  1. 60
  2. 120
  3. 67.5
  4. 75
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Online Fees := CALCULATE([Total Fees], Channels[Type] = "Online"). A report row selects Type = "In person", and a slicer selects Region = "East" from a separate Customers dimension. What fees does the measure calculate?
  1. In-person fees for East customers.
  2. Online fees for East customers.
  3. Online fees across all regions.
  4. No fees from conflicting filters.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Products filters Sales, and Customers also filters Sales. A measure DISTINCTCOUNT(Customers[CustomerID]) repeats 40 on every Product Category row. Why?
  1. DISTINCTCOUNT ignores the product filter even after it reaches Customers.
  2. Customers has to be the many side of its relationship before products can filter it.
  3. A dimension count ignores every filter, including Customer slicers.
  4. Category filters Sales but does not filter backward into Customers.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A 900,000-row column contains only "Open" and "Closed". What is its cardinality?
  1. 900,000
  2. 450,000
  3. 2
  4. 1
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A model uses TransactionID for drill-through checks, ProductID for relationships, and Amount for measures. It also imports a unique AuditComment that no report uses. What should be removed first to reduce size while preserving these uses?
  1. AuditComment in the source query.
  2. ProductID from the fact table.
  3. Amount from the fact table.
  4. TransactionID from the source query.
Show answerHide answer

Save this lesson to see this answer.

Set 3: Read filters and diagnose results10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

Two PivotTables use the same workbook Data Model. A Region slicer changes only the first. What setting should be checked so it can control both?
  1. The second PivotTable's current report filter.
  2. The slicer's single- or multi-select mode.
  3. The slicer's Report Connections selections.
  4. The second PivotTable's refresh-on-open setting.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Sales contains only three rows with Amounts 30, 50, and 70. A calculated column in Sales contains SUM(Sales[Amount]). A PivotTable then sums that column with no filters. What result appears, and why?
  1. 150
  2. 50
  3. 210
  4. 450
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A file needs cleaning before its tables are related in the workbook model. What tool normally performs the cleaning steps?
  1. Power Pivot Diagram View
  2. PivotTable Report Connections
  3. PivotTable Convert to Formulas
  4. Power Query
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A workbook shows Invoices and Invoices 1 with identical rows after the same source was added through two model load routes. What check should guide the choice of which table to keep?
  1. Check only which of the two table names is shorter.
  2. Identify which copy the measures and relationships use.
  3. Check only whether both copies show the same grand totals.
  4. Check only which copy was loaded first into the model.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A multi-year report lists all April values together before February. It uses only Dates[MonthName] on Rows. What two changes produce separate years and calendar month order?
  1. Add Year above MonthName and sort MonthName by MonthNumber.
  2. Add Year above MonthName and sort MonthName alphabetically.
  3. Keep MonthName alone on Rows and sort it by MonthNumber.
  4. Add Year to Values and sort MonthName by MonthNumber.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

Amount contains numeric-looking text. A report counts it, even after its display format is changed to two decimals. What correction is needed?
  1. Set the measure's display format to Currency and refresh.
  2. Set the source text values to a two-decimal display format and refresh.
  3. Set Amount to a numeric data type in the query and refresh.
  4. Recreate the implicit Values field without changing the query data type.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

Within the current selection, Sales has CustomerID values K2, K2, K5, K8, K5, and K8. What does DISTINCTCOUNT(Sales[CustomerID]) return?
  1. 3
  2. 6
  3. 2
  4. 18
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

In West, category A has sales of 180 and B has 420. In East, A has 300 and B has 100. There are no other sales. A report selects West. Share is DIVIDE([Total Sales], CALCULATE([Total Sales], ALL(Products))), with category in Products and region in Customers. What is A's share?
  1. 18%
  2. 30%
  3. 60%
  4. 48%
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

Before refresh, a sales model has 120 rows totaling 9,000. The source adds 5 valid rows totaling 700, all for new ProductID Z4. After refresh, the model shows 125 rows and 9,700 overall, with a blank category totaling 700. Products does not contain Z4. What diagnosis fits all checks?
  1. The five facts loaded twice; remove 700 from the model's grand total.
  2. The facts loaded correctly; add Z4 to Products to restore category matching.
  3. The entire category relationship is missing; rebuild every relationship in the workbook.
  4. The blank group is only cosmetic; hide it and leave the Products table unchanged.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

Reports need only the last two years and day-level dates. The query currently loads ten years and second-level timestamps. What source-query changes preserve the stated reporting needs while reducing data?
  1. Load all ten years and hide the timestamp from the field list.
  2. Keep the ten-year load and format timestamps to show only dates.
  3. Filter the report to two years and display timestamps without their time parts.
  4. Filter to the needed two years and convert timestamps to Date.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Solve linked modeling problems10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A small table already has all fields needed for a one-time report. The report needs only sums and no cross-table analysis. What is the simplest suitable approach?
  1. An ordinary PivotTable on that table.
  2. A new Data Model built from that table.
  3. A star model split from that table.
  4. A CUBE formula report on a workbook model.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

Products has one row per product, including Category and ListPrice. Purchases has one row per purchase, including Quantity and ProductID. Why is Products a dimension despite its numeric ListPrice?
  1. Its rows record prices, so it is the fact table for every purchase.
  2. Its numeric column makes every ProductID a many-side transaction key.
  3. Its rows describe products instead of recording purchase events.
  4. Its key must be on the many side because that key repeats in Purchases.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A supplier renames source column Net to NetAmount. Refresh fails at a query type-setting step referencing Net. An analyst creates a second query from the file, which loads successfully as Costs 1, but reports still use Costs. What repair keeps the existing reports connected?
  1. Repair the Net reference only in the second query and keep both loaded tables for the existing reports.
  2. Delete the original query and keep Costs 1 without checking the measures, because successful loading transfers links.
  3. Append Costs 1 to Costs and ignore the failed step, so both source column names remain available.
  4. Repair the original query's Net reference and remove the unnecessary second load after checking dependencies.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Dates relates actively to Orders[OrderDate] and inactively to Orders[ShipDate]. Customers filters Orders by Region. An order for a West customer is dated May 30, shipped June 2, and worth 250. A second West order is dated June 5, shipped July 1, and worth 400. These are the only orders. With June and West selected, what does a sales measure using USERELATIONSHIP on ShipDate return?
  1. 400
  2. 250
  3. 650
  4. 0
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A daily calendar is intended to cover a non-leap year, but one day is missing from its date sequence. What date-table requirement fails?
  1. A unique key for each day.
  2. A continuous run of days.
  3. A numeric month sort key.
  4. A date column with no blanks.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A Sales selection contains quantities 2, 5, and 1 for products U, V, and U. Products lists prices U = 18 and V = 24. All relationships are correct. A measure uses SUM(Sales[Quantity]) * SUM(Products[UnitPrice]) with no dimension filters. What are the wrong result and the correct revenue?
  1. Wrong 174; correct 336.
  2. Wrong 480; correct 174.
  3. Wrong 336; correct 192.
  4. Wrong 336; correct 174.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

In North, Product categories A and B have sales 90 and 210. In South they have 160 and 40. No other sales exist, and [Sales] sums their amounts. A report row is B and its Region slicer is North. A measure divides CALCULATE([Sales], KEEPFILTERS(Products[Category] = "A")) by CALCULATE([Sales], ALL(Products)). What result does DIVIDE return?
  1. Blank
  2. 0%
  3. 30%
  4. 50%
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

An analyst needs model-driven sales cells placed around a custom report, with values recalculating from the model. What can turn an existing model PivotTable into movable formula cells?
  1. Copy > Paste Special > Values into a separate report
  2. Copy > Paste Special > Formulas without converting the PivotTable
  3. PivotTable Analyze > OLAP Tools > Convert to Formulas
  4. Copy the entire PivotTable grid to another worksheet
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A time-of-day column is rounded from seconds to whole minutes. Across a complete day, how many different minute values are possible, and what detail is lost?
  1. 86,400 values; the seconds within each minute are preserved.
  2. 1,440 values; the seconds within each minute.
  3. 24 values; the minutes within each hour.
  4. 60 values; the hour component of each time is lost.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

After removing an unused unique-text column, a model file is smaller. How should the analyst verify that the change helped the slow report without damaging its results?
  1. Time the same report again and compare its counts and totals.
  2. Compare file size again and treat the smaller model as faster.
  3. Check only the amount total and treat counts and speed as unchanged.
  4. Time a different report and compare the workbook's sheet count.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Transfer the ideas to new report designs10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A source file contains a wrong amount and an extra footer row. The model also lacks a customer relationship. How should the work be divided between the tools?
  1. Correct the amount in Data View, remove the footer in the PivotTable, and create the relationship in a slicer.
  2. Correct the source, remove the footer in Power Query, and create the relationship in the model.
  3. Correct the amount with a field format, keep the footer as a fact, and create the relationship with a report filter.
  4. Correct all three issues in the worksheet report cells, then save without refreshing the source queries.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A Power Query result was saved with Only Create Connection and its Data Model checkbox cleared. What must change for a model PivotTable to use its rows?
  1. Add a slicer to the worksheet containing the query connection.
  2. Change every text column to a whole-number type before saving.
  3. Select Add this data to the Data Model in the load settings.
  4. Load the query to a worksheet table with the Data Model checkbox still cleared.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A Dates table has Year, Quarter, MonthName, and MonthNumber. Users need year-to-quarter-to-month expansion and calendar month order. What setup supplies both?
  1. Create a Year–Quarter–MonthName hierarchy and sort MonthName by MonthNumber.
  2. Create a Year–Quarter–MonthName hierarchy and sort MonthName alphabetically.
  3. Create a Year–Quarter–MonthName hierarchy and sort MonthName by Quarter.
  4. Create a Quarter–Year–MonthName hierarchy and sort MonthName by MonthNumber.
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Stores has three distinct text keys: "007", "7", and "008". Sales uses the same text codes. A report needs StoreName labels, and the model needs the store relationship. What setup preserves the three store identities and directs users to the readable label?
  1. Convert both key columns to whole numbers and hide Sales[StoreID] from client tools.
  2. Keep the text codes and delete Stores[StoreID] after the relationship is created.
  3. Keep the text codes and hide Stores[StoreName], leaving the fact key visible.
  4. Keep both text keys and the relationship, and hide Sales[StoreID] from client tools.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

Sales contains all of 2026 and 2027, but the marked daily Dates table covers only 2027. A monthly report uses MonthName alone on Rows, and April sorts before February. What repair supports a 2027-to-2026 comparison, keeps reporting years separate, and gives calendar month order?
  1. Extend Dates to both full years; use Year above MonthName; sort MonthName by MonthNumber.
  2. Keep Dates at 2027; use Year above MonthName; sort MonthName by MonthNumber.
  3. Extend Dates to both full years; use MonthName alone; sort MonthName by MonthNumber.
  4. Extend Dates to both full years; use Year above MonthName; sort MonthName alphabetically.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A model table records one row per invoice line. InvoiceID repeats across lines, and a report needs the number of invoices. What measure fits that need?
  1. COUNTROWS(Lines)
  2. SUM(Lines[InvoiceID])
  3. DISTINCTCOUNT(Lines[InvoiceID])
  4. DISTINCTCOUNT(Lines[Amount])
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

In East, Premium products have sales A = 120 and B = 180; Standard products have A = 80 and B = 220. No other East sales exist, and [Sales] sums the sales amounts. Category and PriceBand are columns of Products; Region is in Customers. A cell selects East, Premium, and A. Its denominator is CALCULATE([Sales], ALL(Products[Category])). What share does DIVIDE([Sales], denominator) return?
  1. 20%
  2. 50%
  3. 60%
  4. 40%
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Sales connects to Products, which connects to a unique Categories table. Budget also connects to Categories. A slicer must filter both actual sales and budget by category. What field should the slicer use?
  1. Products[Category]
  2. Categories[Category]
  3. Sales[ProductID]
  4. Budget[BudgetAmount]
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A report has three disjoint service groups. Their Fees and Visit Count are: A, 240 and 6; B, 540 and 9; C, 420 and 5. A reusable Average Fee measure divides total Fees by Visit Count. What should its grand total show to two decimals?
  1. 61.33
  2. 184.00
  3. 60.00
  4. 40.00
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A model stores LineRevenue solely to sum it, and PriceBand to support a slicer. Quantity and the related product price must remain. What change can reduce stored columns while keeping both report functions?
  1. Replace PriceBand with a sum measure and keep LineRevenue as a column.
  2. Replace both columns with measures and use the PriceBand measure for the slicer.
  3. Keep both columns but hide LineRevenue from Client Tools to remove its stored results.
  4. Replace LineRevenue with a SUMX measure and keep PriceBand as a column.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

75 Key Terms, each with its definition

A

Active relationship
An active relationship is the default link that report filters follow between two tables, shown as a solid line in Diagram View.
An active OrderDate link makes the calendar select orders by their order dates unless a measure changes the path.
Additive measure
An additive measure can be summed across disjoint groups of the data, as sales amounts can be added across product categories.
Distinct customers is not additive across categories when the same person buys from several categories.
Address space
Address space is the range of memory locations an application can use, shared by its loaded data, open documents, and add-ins.
A 32-bit Excel process can run short of address space even when the computer has additional physical memory.
Aggregation
An aggregation reduces many values to one result, using an operation such as sum, count, average, minimum, or maximum.
When a report cell selects eight orders, SUM combines their amounts into one Total Sales result.
ALL
ALL is a DAX function that, used as a filter modifier in CALCULATE, removes filters from the specified table or column.
ALL(Products) removes product selections but leaves a Region filter supplied by Customers in force.

C

CALCULATE
CALCULATE is the DAX function that evaluates an expression after changing its filter context with conditions or filter modifiers.
A Stationery Sales measure changes the Category filter while retaining an independent Region selection.
Calculated column
A calculated column stores a DAX expression's result for every table row and can supply categories used to group, filter, or slice reports.
A Price Band column stores "Premium" or "Standard" for each product and becomes available in a slicer.
Calculation area
The calculation area is the space below the Data View grid where explicit measures can be entered and inspected.
Enter Total Sales := SUM(Sales[Amount]) in the calculation area to create the reusable sales measure.
Cardinality
Cardinality is the number of distinct values in a column, a major influence on the memory required to store and query that column.
A Region column has cardinality two even when North and South repeat across three million sales rows.
Column removal
Column removal deletes unnecessary fields before model loading, reducing stored data while preserving the fields required by the analysis.
Remove an unused comment in Power Query, but retain ProductID because the product relationship needs it.
Composite key
A composite key identifies a row using more than one column; Excel model relationships require those parts combined into one key column.
Region and month can form the combined code "North|2026-01" in both tables before relating them.
Connection-only load
A connection-only load keeps a Power Query connection without creating a worksheet output table; model loading is a separate choice.
Select the Data Model checkbox as well as Only Create Connection to store the query result in the model.
COUNTROWS
COUNTROWS is the DAX function that counts the rows of a table in the current context, with its meaning determined by that table's grain.
On a table with one row per booking, COUNTROWS supplies the booking count for the selected dates.
CUBE formula
A CUBE formula is an Excel worksheet formula that retrieves members or values from a model connection for a flexible report layout.
Convert to Formulas replaces the model PivotTable grid with cells that can be rearranged independently.
CUBEVALUE
CUBEVALUE is an Excel function that retrieves a calculated value from a model connection using the requested measure and member selections.
In a model where Stationery sales total 295, a CUBEVALUE cell can request Total Sales for the Stationery member and return 295.

D

Data Model
The Data Model is the workbook's stored collection of related tables and calculations used by PivotTables and other reports.
A category report reads descriptions from Products and amounts from Sales through the Data Model.
Data Model PivotTable
A Data Model PivotTable summarizes the workbook's related tables, combining dimension fields with measures in a single report.
Category from Products and Region from Customers can label the same report of Sales amounts.
Data type
A data type defines the kind of values a column stores and how they behave in calculations, sorting, and relationships.
Change an Amount column from Text to Decimal Number so a sales measure can sum its values.
Data View
Data View is the Power Pivot grid that displays each model table and supports column settings and calculated columns.
Use Data View to inspect loaded amounts, but correct a wrong source amount in the supplying query or file.
Date table
A date table is a calendar dimension containing one row per day across the reporting span and columns for time-based grouping.
A full 2026 calendar has 365 rows, including weekends and other days with no sales transactions.
DAX
DAX, Data Analysis Expressions, is the formula language used to define calculations in the Data Model, with English function names.
A Total Sales measure uses DAX to add the Amount values selected by the current report filters.
Denominator
A denominator is the value a numerator is divided by; in a report share, its filter context defines the comparison total.
A product share within North uses North sales as the denominator even when product filters are removed.
Diagram View
Diagram View displays model tables as boxes and their relationships as lines, making the table connections visible.
A disconnected Customers box helps explain why every Region row repeats the full sales total.
Dictionary encoding
Dictionary encoding stores distinct values in a dictionary and represents each row with a compact reference to its dictionary entry.
Repeated category labels can share dictionary entries instead of storing the full text independently on each row.
Dimension table
A dimension table describes the things involved in facts, with a unique key and fields used for labels, grouping, and filters.
Products holds one row per product and supplies Category to group transactions in a sales report.
DISTINCTCOUNT
DISTINCTCOUNT is the DAX function that counts different values in a column, counting a repeated value only once within the current context.
A customer who placed four orders still contributes one to DISTINCTCOUNT of the fact customer key.
DIVIDE
DIVIDE is the DAX division function that returns blank, or a supplied constant alternate result, when its denominator is zero or blank.
Average Order uses DIVIDE so a selection without orders does not show an undefined ordinary division result.

E

Explicit measure
An explicit measure is a named DAX formula defined by the author and reusable across the workbook's model reports and other measures.
Average Order references Total Sales and Order Count, keeping the same calculation across reports.

F

Fact table
A fact table records events at a stated grain and holds their numeric values and keys linking them to dimensions.
Sales records each order's amount and quantity alongside the customer, product, and date keys.
Filter context
Filter context is the set of selections and formula filters that determines which data is considered when a measure is calculated.
A report cell for Stationery and North combines its category row and region column to select the relevant sales.
Flat table
A flat table puts the transaction values and all descriptive fields needed for analysis into one wide table.
A sales list becomes flat when each sale also carries the product category and customer region.

G

Grain
The grain of a fact table states exactly what one row represents, setting the meaning of its counts and numeric values.
If each row is one invoice line, COUNTROWS counts lines even when several belong to the same invoice.

H

Hide from Client Tools
Hide from Client Tools is a column setting that removes a field from report lists while preserving its stored data and modeling uses.
Hide Sales[ProductID] so users choose readable product labels from the dimension when building reports.
Hierarchy
A hierarchy is an ordered set of model columns that provides drill-down levels for reports, such as year, quarter, and month.
Expanding a year in the Dates hierarchy reveals its quarters and then the months in each quarter.
High-cardinality column
A high-cardinality column contains many distinct values relative to its rows, often increasing storage cost and the work of distinct counts.
A different audit comment on every sale is usually more expensive than a Region column with two labels.

I

Implicit measure
An implicit measure is a standard aggregation created when a field is added to a PivotTable's Values area, such as Sum of Amount.
Dragging Amount into Values creates a quick sum, but a named explicit measure is easier to reuse.
Inactive relationship
An inactive relationship is a stored alternate link, shown as dashed, that a measure can select with USERELATIONSHIP inside CALCULATE.
A ShipDate link can stay inactive while a shipping measure uses it for a separate view of monthly sales.
Iterator
An iterator is a DAX function that evaluates an expression for each row of a table before combining the resulting values.
An iterator can multiply quantity by the matching price on each sale before adding the row results.

K

KEEPFILTERS
KEEPFILTERS is a DAX modifier that makes a CALCULATE condition intersect with an existing filter instead of replacing that filter.
When a report row selects Lighting, adding a Stationery condition with KEEPFILTERS leaves no matching sales, as both must apply.
Key column
A key column holds the values used to identify rows or match records between tables, such as ProductID or CustomerID.
Sales[ProductID] matches a sale to the product row that supplies its name, category, and price.

L

Linked table
A linked table is a model table added from an Excel worksheet table, which remains the source for its refreshed values.
Update a product name in the worksheet Products table and refresh its linked table in the model.
Lookup formula
A lookup formula finds a matching value in another range or table and returns an associated value, such as a product category.
Copying category labels into sales rows with lookups creates repeated descriptions that need updating.

M

Marked date table
A marked date table explicitly identifies its unique, nonblank, continuous date column for the model's time-intelligence calculations.
Mark Dates[Date] before using the calendar to calculate sales accumulated from the start of the year.
Model optimization
Model optimization improves storage or report performance by changing loaded data, calculations, or structure while preserving required results.
Compare saved size and the same report's refresh time, then check its counts and totals after each useful change.
MonthNumber
MonthNumber is a calendar helper column that assigns January through December the numbers 1 through 12 for sorting month labels.
Sort MonthName by MonthNumber so February follows January instead of sorting with alphabetical labels.

N

Number format
A number format controls a value's displayed appearance, such as decimal places or percentages, without changing its stored calculation value.
Average Order can display 66.88 while its underlying result remains 66.875 for later calculations.

O

One-to-many relationship
A one-to-many relationship connects a unique lookup key to a column where the same key can occur on many fact rows.
P1 appears once in Products and on several Sales rows, so Products forms the one side of their link.

P

PivotChart
A PivotChart is a chart connected to PivotTable-style fields and filters, which can use the same workbook model and measures as other reports.
A monthly PivotChart and a category PivotTable can share the model without duplicating its Sales data.
Power Pivot
Power Pivot is the Excel add-in for viewing and editing the Data Model, including its relationships and DAX calculations.
Open Power Pivot > Manage to inspect the loaded tables and check which columns connect them.
Precision reduction
Precision reduction removes detail finer than the analysis needs, reducing possible stored values while deliberately losing that finer information.
Rounding a time to minutes saves detail only if the reports never need its original seconds.

R

Refresh
A refresh reruns saved import and query steps and updates loaded data and connected reports from their current sources.
After new rows are added to the source, use Refresh All and compare the updated model count with the source.
RELATED
RELATED is a DAX function that retrieves a matching value from a relationship's one side while evaluating a row on its many side.
Within a Sales row, RELATED(Products[UnitPrice]) retrieves the price for that row's ProductID.
Relationship
A relationship connects compatible key columns so filters on a table can select matching rows in a related table.
Selecting Stationery in Products keeps only Sales rows for products assigned to that category.
Report Connections
Report Connections is the slicer setting that selects the PivotTables on a shared model or compatible source that a slicer controls.
Select both model PivotTables in Report Connections to apply the same Region selection to each one.
Row context
Row context identifies the current row during a row-by-row calculation, allowing column references to return that row's values.
A product price-band calculated column evaluates the UnitPrice of the current product row.
Row filtering
Row filtering excludes records that do not meet a chosen condition; filtering before loading reduces the rows stored in the model.
A query can retain only the required reporting years instead of loading older history and hiding it in a report.

S

SAMEPERIODLASTYEAR
SAMEPERIODLASTYEAR is a DAX function that shifts the selected date period back one year for a comparison through the calendar.
A March report can compare current sales with sales from March of the preceding year through CALCULATE.
Scalar value
A scalar value is one result, such as a number or text value, which a measure must return for its current filter context.
A bare Sales[Amount] reference gives many possible amounts, while SUM selects one aggregate result.
Shared dimension
A shared dimension supplies one consistent set of keys and labels that filters more than one fact table for comparison.
Dates can group actual sales and monthly budget into the same year and month selections in a report.
Show Details
Show Details extracts underlying fact records for a report value into a worksheet, subject to the connection's detail-row limit.
Double-click a Stationery/North value of 210 to inspect the four orders that contribute to it.
Slicer
A slicer is a visible report control that filters data by selected field items and can control several compatible reports.
Selecting North in a Region slicer can update both the category report and the monthly sales report.
Snowflake schema
A snowflake schema extends a star by linking a dimension through another dimension instead of connecting every dimension to the fact.
Products can link to Categories, which then filters the sales facts through the Products table.
Sort by Column
Sort by Column is a model setting that orders one column's labels using corresponding values in another column of the same table.
Small, Medium, and Large can follow a SizeOrder column containing 1, 2, and 3 instead of alphabetic order.
Source data
Source data is the original table, file, or query result that supplies the values loaded into a model for analysis.
When a customer name is wrong, correct the source data and refresh so the model receives the change.
Source reconciliation
Source reconciliation checks that a loaded model agrees with its input, often by comparing unfiltered row counts and amount totals.
If a model loads 8 orders with total sales of 535, compare both figures with the source before investigating category details.
Star schema
A star schema arranges a central fact table with dimension tables connected directly to it through their matching keys.
Products, Customers, and Dates surround Sales, each supplying a different way to filter its rows.
SUMX
SUMX is the DAX iterator that evaluates an expression on each selected table row and adds the numeric results into a single value.
SUMX keeps each sale's quantity paired with its product price instead of multiplying separate sums.

T

Table Import Wizard
The Table Import Wizard is Power Pivot's older import route for selecting external tables, choosing columns, and filtering rows.
Power Query usually offers more cleaning options than the Table Import Wizard for a messy source file.
Time intelligence
Time intelligence is the use of DAX date functions to calculate over changed periods, such as year to date or the same period last year.
A February year-to-date measure includes January and February sales using the shared calendar.
TOTALYTD
TOTALYTD is the DAX function that evaluates an expression over dates from the beginning of the year through the current date context.
If January sales are 125 and February sales are 340, the February year-to-date total is 465.

U

Unmatched key
An unmatched key is a fact value with no corresponding dimension key, leaving the record without its expected descriptive match.
A sale for P4 appears under a blank category when Products contains only P1, P2, and P3.
USERELATIONSHIP
USERELATIONSHIP is a DAX function used inside CALCULATE to select a stored relationship for the calculation, such as an inactive date link.
A shipping measure selects Sales[ShipDate] and Dates[Date] so calendar filters use shipment dates.

V

Value encoding
Value encoding stores numeric column values in a compact numeric representation, often using less space than equivalent text codes.
Whole-number order IDs can take less space than long text identifiers when the required identity is preserved.
Values area
The Values area is the PivotTable layout destination for calculations that summarize the records selected by the row and column fields.
Place Total Sales in Values so the same measure calculates the amount for each category and region cell.
VertiPaq
VertiPaq is the in-memory engine that stores and compresses model data by column and processes report calculations.
A Region column with two repeated labels can be compressed efficiently by the VertiPaq engine.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started