Timedora

Prepare Reliable PivotTable Data

A practical guide to preparing, cleaning, and checking source data so PivotTables can summarize it reliably.

Build a Sound Source Table

Start with a trustworthy record structure

A can summarize data reliably only when its rows and columns have consistent meanings. Before editing, save a copy of the imported data and, where practical, leave the original sheet unchanged. Clean a working copy or use a repeatable Power Query workflow so you can review what changed.

First decide what one row represents and what makes that record unique. For example, if each row is one sales transaction, an order-line ID might distinguish one transaction from another. This definition guides later decisions about missing values and possible duplicates.

Keep the source flat: one header row, one record per row, and one field per column. Remove rows or columns inside the data range, repeated header rows, merged cells, and subtotals embedded among the records. Give every column a unique, nonblank heading. These steps help ensure that a reads each row as data rather than mistaking layout elements for records. Converting the cleaned range to an Excel Table provides a convenient source and helps include added rows when the is refreshed.

Decide what each means

A is not automatically an error, and different blanks may call for different treatment:

  • If optional information was not supplied and “unknown” is accurate, leave it .

  • If a required value is missing, check the source record or flag it for follow-up. Do not invent a value.

  • If a field does not apply, use a consistent representation only when the reporting design requires one, and document its meaning.

  • Remove a wholly empty row from the data range.

Do not replace a missing sales amount with zero unless zero is truly the measured amount. A missing value and a sale of $0 can lead to different conclusions. Likewise, fill down a repeated label only when the source layout clearly shows that a means “same as above.” The guiding question is not merely whether a cell is empty, but what the source tells you that emptiness means.

Standardize Labels and Data Types

Make equivalent category labels match

A treats differently spelled or formatted labels as separate items. Thus West, west, and West may be split into different categories even if they were intended to mean the same region. Check for leading or trailing spaces, spelling differences, abbreviations, capitalization differences, and hidden characters. TRIM and CLEAN can help with certain unwanted spaces and nonprinting characters, but review their results before replacing original values.

For recurring reports, keep a mapping table of accepted labels and known variants, and retain an audit trail. For example, the source’s West, west , and W. can map to West; Online, E-commerce, and Ecommerce can map to Online; and Pending and PEND can map to Pending. These mappings are appropriate only if each set of labels really refers to the same category. Do not merge similarly named departments or other categories without confirming that they are equivalent.

Match each column’s type to its meaning

Each column should contain the kind of value its heading implies. Dates should be actual dates, amounts should be consistently numeric, and text categories should not be mixed with unrelated types. For example, a column that mixes numeric amounts with strings such as $1,200 or 1200 USD may not be interpreted consistently.

Check automatically detected types in Power Query rather than assuming they are correct. After changing a type, inspect for errors or unexpected conversions; keep questionable rows for review instead of silently discarding them. For dates, confirm that values are dates rather than text that merely looks like a date, and check ambiguous day/month formats.

A value that looks numeric may actually be an identifier. Postal codes, product codes, and account numbers often belong in Text when leading zeros matter or arithmetic on them is meaningless. In short, use a type that reflects the value’s role, not just its appearance. Consistent, correctly interpreted categories and measures help a group and summarize the source as intended.

Check Records Before Summarizing

Investigate duplicates using a real key

Repeated values do not necessarily mean repeated records. Two sales rows can share a customer, date, and amount while still representing separate transactions. Define what uniquely identifies a record first—for example, a transaction ID, or a combination of order ID and line number. Then investigate repeated values of that key and determine whether they reflect repeated imports, legitimate repeated activity, or conflicting records.

Be cautious with Excel’s Data > Remove Duplicates: it permanently deletes matching rows based on the columns selected. Back up the data, deliberately select the columns that define a duplicate, and review the result. Selecting only a customer name could delete valid purchases by that customer. Repeated values in a field that does not uniquely identify a record are not enough reason to remove rows.

Validate before building or refreshing

Before using the cleaned range as a source, check that every column has one unique, nonblank heading and every row represents one record, without embedded totals or repeated headings. Confirm that category labels are consistent; dates, numeric measures, and units are appropriate; missing values are understood; and any duplicate records were investigated using a suitable key. Compare row counts and key totals with the original source to see whether the result is plausible.

For a sales table with Order ID, Date, Region, and Sales Amount, the checks include standardizing region labels, confirming that Date is a date and Sales Amount is numeric, and preserving amounts for investigation. Remove rows only when they are truly empty or confirmed duplicates. Then use the cleaned range, preferably formatted as an Excel Table, as the source. Refresh the after updating its source data so the summary reflects the changes.

  • : A structured source with one header row, one record per row, and one field per column.

  • : A consistent preferred value used for equivalent category labels.

  • : The kind of value in a column, such as a date, text category, whole number, decimal amount, or true/false indicator.

  • : A field or combination of fields that identifies a record for the purpose of checking duplicates.