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].
The question, the details, the next step.
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.
- [S1] Group or summarize rows: count rows per identifier learn.microsoft.com · Checked
- [S2] Power Query data profiling: distinct and unique values learn.microsoft.com · Checked
