Recent chats
ASKGEEZ Q&A GUIDETechnology & devices

How can I check that an imported roster has one row per person?

Quick answer

Check the roster’s total row count, then compare person identifiers—not names—with the expected roster. Count rows for each identifier to find repeats, and compare the imported identifiers with the expected list to find missing or unexpected people. In Power Query, Group By an identifier and count rows to inspect repeats [S1]. If using its column profile, switch from the first 1,000 rows to the entire dataset before drawing roster-wide conclusions [S2].

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

What’s the basic check after importing a roster? I want to know whether it has exactly one row per person.

Geez

Use a stable person identifier, such as an employee or member ID, rather than names alone. Names can be repeated or formatted differently, so they are poor evidence that two rows represent the same person.

Make three comparisons: total imported rows, number of distinct person IDs, and the expected set of IDs from the roster you intended to import. If every expected person should appear once, the total and distinct counts should match the expected headcount, and the IDs should match the expected set. Matching totals alone is not enough: one missing person and one extra row can cancel each other out.

Keep an untouched copy of the import while checking it, so investigation does not change the evidence you are comparing.

Follow-up question

How do I find which IDs occur more than once?

Geez

Group or summarize the imported rows by the person ID and count the rows in each group. Any ID with a count greater than one needs review; it may be a duplicated record, or there may be a legitimate reason that person has multiple entries. Power Query supports grouping by columns and applying a Count rows operation [S1].

For example, suppose an illustrative import has 102 rows and grouping produces 100 distinct IDs, with ID-17 appearing three times and ID-42 appearing once. The result flags ID-17 for investigation; it does not prove which row, if any, should be removed. Compare the flagged rows’ other fields and the source records before deciding what to do. Do not delete repeats automatically if the roster’s rules allow multiple records per person.

Follow-up question

What’s a good way to find people who are missing, including when the row totals look right?

Geez

Compare the imported ID list against an authoritative expected roster for the same reporting period. Write down IDs expected but absent from the import, plus any imported IDs not on the expected list. Those are separate exceptions to explain; a matching row total cannot show that the identities match.

If you use Power Query’s column distribution profile to inspect repeated or distinct identifier values, check its coverage setting: the profile is limited to the first 1,000 rows by default, and can be changed to the entire dataset [S2]. A profile count is useful for inspection, but it does not identify absent expected people. For that, you still need the expected ID list and a direct comparison. Record the comparison date and roster version so the result is interpretable later.

Follow-up question

Can you give me a reusable reconciliation checklist and a compact way to report the result?

Geez

Use this sequence before treating the import as reconciled:

  1. Preserve a copy of the original import and note the expected roster’s version or date.
  2. Confirm the person ID field is populated and uses a consistent format; investigate blanks or apparent formatting differences rather than silently changing IDs.
  3. Count imported rows and group by person ID to identify IDs with more than one row.
  4. Compare imported IDs with the expected ID list; record missing and unexpected IDs separately.
  5. Review exceptions against the source records and document the decision for each; keep unresolved items visible.
  6. Re-run the counts and comparison after any corrections, and report the scope and date checked.

Copyable report (replace placeholders): Roster checked: [name/version/date]. Imported rows: [number]. Distinct IDs: [number]. Repeated IDs: [number/list]. Expected IDs missing: [number/list]. Unexpected IDs: [number/list]. Unresolved exceptions: [number/list]. Status: [reconciled / exceptions remain].

This check can expose count and identifier discrepancies, but it cannot establish that every other field is accurate or that an exception is an error. Resolve those questions with the roster owner or authoritative source.

A practical checklist

  • Preserve the original import and identify the expected roster version or date.

  • Use a stable person ID and note blank or inconsistent identifier values.

  • Count imported rows and count rows per ID; review IDs occurring more than once.

  • Compare imported IDs with the expected list and record missing and unexpected IDs separately.

  • Investigate exceptions, document unresolved items, then repeat the checks after corrections.

A few more useful answers

If the imported row count matches the expected headcount, is the roster reconciled?

Not by itself. A missing person and an extra record can leave the total unchanged, so compare the actual IDs and inspect repeated IDs too.

Does a distinct-ID count tell me who is missing?

No. It can help show how many different IDs occur, but identifying absent people requires comparing imported IDs with an authoritative expected list [S2].

Should I delete every repeated ID?

Not automatically. First determine whether multiple rows for that person are invalid under the roster’s rules, then document and verify any correction.

Sources

References used for this guide.

  1. [S1] Group or summarize rows: count rows per identifier
    learn.microsoft.com · Checked
  2. [S2] Power Query data profiling: distinct and unique values
    learn.microsoft.com · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work