In this guide

Compare CSV snapshots with a key you can trust

Use the roster snapshots to verify added, removed, changed and unchanged records by ID.

Direct answer

Select the original CSV as Before file and the later snapshot as After file, then choose a column whose values are present and unique in both files so the comparison can identify the same record even when rows have moved. In the practice roster, id 001 changes status, 002 is removed, 003 is added, and 004 stays the same. Use the report’s change category together with its before and after cells, then reconcile the counts against both snapshots and reopen the download to check that the exported rows match what you reviewed.

What to look for

Use this guide when a recipient asks which records changed between two CSV snapshots. The files may have been sorted differently, their column order may have changed, or their row counts may happen to be equal even though some records entered and others left. You need to pair records by identity before examining the changes in their values.

A difference report helps answer questions such as whether a roster entry was added or whether an existing entry changed its status. It also helps identify structural changes when a new export adds or removes a field. If your job is to stack monthly files into one table, follow the related merge guide. Removing repeated orders from one export starts with a separate rule for deciding which record to retain.

The comparison summary shows one added, one removed, one modified and one unchanged.
The comparison summary shows one added, one removed, one modified and one unchanged.

Why it happens

Rows can move between snapshots when someone sorts or filters before exporting. Row order and header order do not define identity. A unique key should survive those changes and refer to the same record in both files. Pick an identifier with that meaning. If two records legitimately share part of an identifier, use a combination of columns only after checking that the complete combination is stable and unique in both snapshots.

The comparison tests exact cell text. This is useful for codes whose leading zeros, case or spacing carry meaning. In a separate trial, 001 in the before file and 1 in the after file produced an added record and a removed record. Review the original export and use a consistent representation when those values are supposed to identify the same record.

Before you begin

Download roster-before.csv and roster-after.csv below. Each has three data rows and two columns. The before file lists id and status, with the records 001/draft, 002/ready and 004/same. The after file lists status before id and contains 001/ready, 003/draft and 004/same. Make a short note of those pairs before running the report. You will use the note to tell whether a difference came from a changed record or from a mistake in the file selection.

Keep the source snapshots intact and label them with their periods in your working folder. The download represents the order you choose in the comparison; switching the inputs reverses the meaning of added, removed and the paired value columns.

Steps

  1. Load the snapshots and check their source previews.

    Add the two roster files in the comparison tool linked at the end of the guide. Use Active table to inspect each on its own. Confirm that the before table begins with id and that its 001 record has draft as status. The after table begins with status and gives 001 the value ready. The row count should be three in each. These checks establish the ordering and values you are about to use as references.

    • If an identifier looks incomplete or text is unreadable, resolve the import problem first.
    • Choose an encoding and delimiter that fit the original file, and confirm the cell values in the newly loaded table.
    • Changing a damaged identifier based on how it appears in a report risks creating a pair that did not exist in the source.
  2. Set Before and After explicitly, then select id.

    Under Compare files, choose roster-before.csv as Before file and roster-after.csv as After file. Mark id under the unique key columns. Status describes the record and can change, so keep it out of the identity rule. If you combine columns in a different dataset, choose their order deliberately and record it for anyone who will interpret the resulting key.

    • Check each file for empty or repeated keys.
    • In a diagnostic variant, appending a second copy of 004 to the before snapshot stopped the comparison with a duplicate-key error at data row four.
    • Replacing its first identifier with an empty cell stopped it at data row one.
    • Inspect the stated record and decide whether to correct it, exclude it with a reason, or use an identity rule that applies to both files.
  3. Preview and reconcile the categories.

    Select Compare & preview report. The summary should show one added, one removed, one modified and one unchanged. Look for three rows in the report because the unchanged record contributes to the summary and has no difference row. Use the change column to read a row before inspecting its values.

    • The report’s key field is a JSON array written as text.
    • For 001 it contains the text identifier with its leading zeros, and changed_columns lists status.
    • Read before:status as draft and after:status as ready.
    • The removed 002 has a value on the before side.
    • The added 003 has a value on the after side.
    • Use the change category when interpreting an empty cell on the missing side, because a present record can also contain an empty value.
  4. Check for structural changes before interpreting modified rows.

    For the two roster samples, the header order changes and the field names stay the same. The report has no added or removed source fields. For a separate trial, keeping the same before records and adding an empty note field to the after schema produced three modified rows. The schema summary listed note as a new field.

    • When a report unexpectedly shows changes across a whole roster, inspect that summary first.
    • Decide whether the recipient needs those schema changes in the delivered report.
    • For a report restricted to a shared set of columns, prepare appropriate working copies and compare them again.
    • Preserve copies of the full exports so you can show the source of a change if a reviewer asks.
  5. Export the report and keep its context.

    Choose CSV or JSON and use Download full table with Result preview active. Open the saved report. For the sample, check three data records and the seven fields, including change, key, changed_columns and the paired values for id and status. In JSON, key and changed_columns are strings containing arrays. If a receiving system needs an array value, agree on that interpretation with its owner.

    • Keep the report alongside a note that names both snapshot files and the chosen key.
    • The saved report explains changed records; the source snapshots and summary are what let the recipient reconcile unchanged records too.
    • If you send only the report, include enough context for someone to reproduce how an addition or removal was classified.

Check your result

Start with two balance checks. The before file’s three rows are one removed, one modified and one unchanged. The after file’s three rows are one added, one modified and one unchanged. The difference download has the three changed rows. Verify that 004 occurs in both source files and is absent from the difference download.

Then look up the raw key for each reported row in the corresponding source. Confirm that 001 is present on both sides and only status changed. Look for 002 in the before file and 003 in the after file. This avoids mistaking an empty value on one side for a missing record. The saved CSV and JSON both matched the expected report field by field in the local run. Use the recorded SHA-256 values if you want to check the exact downloaded sample bytes.

Measured verification table3 verified cases
idChangeBefore statusAfter status
001modifieddraftready
002removedready
003addeddraft

Common mistakes

Comparing by row position. Use a stable key and check a record that moved or appears under reordered headers. This avoids assigning changes to the wrong person.

Using a changing field as part of the key. Keep status out of the identity rule when the purpose is to see status changes. Inspect duplicate and empty key errors in the named source before running the report again.

Reversing the snapshots. Check their file names and a known value immediately after selection. For 001, draft should be the before value and ready the after value in this exercise.

Treating an added column as a set of unrelated record edits. Use the schema summary to explain the shared cause. The empty note field produced three modified records in the diagnostic run.

Limitations

The meaning of a key depends on the source data. Text normalization or decisions about which repeated record to keep belong in an explicit preparation step. For very wide reports, include the columns you need and keep the originals. In the measured width check, 48 distinct source columns produced 99 report fields. A source with 49 triggered the tool’s width warning.

Test record

On 2026-11-23, we generated and verified the synthetic samples with Veylunex Data Workspace 1.0.0 under Node.js v26.4.0. We repeated the walkthrough in Google Chrome 157.0.8103.80 using a local site build.

Both inputs had 3 records. The report saved 3 rows and 7 columns. The summary showed 1 added, 1 removed, 1 modified and 1 unchanged.

The measurement record includes the inputs, output counts or values, error messages, byte sizes and SHA-256 checksums for the public samples.

Tested in

  • Windows 10.0.22631, Veylunex Data Workspace 1.0.0, Google Chrome 157.0.8103.80
  • Windows 10.0.22631, Node.js v26.4.0

Questions

Can I use more than one key column?

Yes. Check the combination in both files before running the comparison. Only use fields that jointly identify a record and are stable across the two snapshots. Read the order of values in the JSON array in key accordingly.

Why are there three report rows when the summary mentions four records?

The roster contains one addition, one removal and one modification. The remaining record is unchanged, so it contributes to the unchanged count without appearing as a difference row.

Will the tool decide which duplicate key is correct?

Review the key error and the source records yourself. If the two entries represent separate records, choose a stable composite key. If they are duplicates, keep the evidence needed to decide which one survives before re-importing.

Can I send the CSV report straight to a spreadsheet?

Reopen the output with identifier fields imported as text and check how the spreadsheet displays the key and changed_columns. Send the original report with your summary when the recipient needs to inspect exact names and values.

Browser-local utilityCompare CSV files

Report added, removed and modified records by unique key.

Compare CSV files