Sub topic 5
Keeping Data Consistent and Checking It
This chapter assumes you know basic social analytics terms such as reach, impressions, and engagement. It also assumes you can use spreadsheet formulas and export data from at least one platform.
A monthly report is only useful when every number uses the same rules. Before calculating changes, create a simple data contract. A data contract is a written agreement about what each metric means, which dates it covers, and where it comes from.
Set consistent definitions and date ranges
Choose one reporting window, such as October 1 through October 31. Record the timezone used by each platform and whether the start and end dates are included. A report can show false changes when one export uses local time and another uses UTC.
Use the same definition every month. For example, use the platform's total reach rather than adding daily reach values. Daily reach can count the same person more than once.
| Metric | Definition for this report | Check |
|---|---|---|
| Reach | Unique accounts that saw content | Do not sum daily unique reach |
| Impressions | Total times content was displayed | Can be higher than reach |
| Engagements | Likes, comments, shares, and saves | Record which actions are included |
| Engagement rate | Engagements divided by reach | Keep the denominator consistent |
Keep raw exports unchanged. Add a separate cleaned or calculated table for renamed columns, formulas, and notes. This preserves an audit trail, which is a record of how the reported number was produced.
Validate before calculating
Run checks before you compare months:
- Confirm that every row belongs to the reporting window.
- Check that required columns are present.
- Look for duplicate rows caused by repeated exports.
- Confirm that counts are numeric and not negative.
- Check that channel names and campaign labels use one spelling.
- Confirm that paid and organic rows are labeled consistently.
- Compare totals with the platform dashboard and investigate large differences.
The following script checks dates, duplicate channel-date rows, required fields, and invalid values:
from datetime import date
rows = [
{"date": date(2026, 10, 1), "channel": "Instagram",
"reach": 900, "impressions": 1200},
{"date": date(2026, 10, 2), "channel": "Instagram",
"reach": 850, "impressions": 1100},
]
def validate(rows, start, end):
errors = []
seen = set()
required = {"date", "channel", "reach", "impressions"}
for number, row in enumerate(rows, start=1):
missing = required - row.keys()
if missing:
errors.append(f"Row {number}: missing {sorted(missing)}")
continue
key = (row["date"], row["channel"])
if key in seen:
errors.append(f"Row {number}: duplicate date and channel")
seen.add(key)
if not start <= row["date"] <= end:
errors.append(f"Row {number}: outside reporting window")
for metric in ("reach", "impressions"):
value = row[metric]
if not isinstance(value, (int, float)) or value < 0:
errors.append(f"Row {number}: invalid {metric}")
return errors
errors = validate(rows, date(2026, 10, 1), date(2026, 10, 31))
print("Validation passed" if not errors else "\n".join(errors))Investigate anomalies instead of hiding them
An anomaly is a result that differs sharply from the surrounding data. A zero may mean that no content was published, or it may mean the export failed. A sudden reach increase may come from a viral post, a paid campaign, a tracking change, or a duplicated row.
Use this process:
Create a validation log with the issue, source, decision, and reviewer. For example, note that a campaign was paused for five days or that a platform changed its definition of video views. These notes help explain future changes without relying on memory.
Exercise
Exercise
Your October export has 20% more reach than September, but the dashboard total is unchanged. What should you check first?
Show answer
Check whether the October export contains duplicate rows, uses a different date range or timezone, or includes a new channel. Compare the raw export with the dashboard and document the cause before calculating month-over-month change.