ACCT 350 · Data Analytics for Accountants

Data Types, Quality and Governance

Know what kind of data you hold, how to score its quality, and who is allowed to touch it before you trust or share any result.

Key takeaways

  • The type of a field (number, category, date, text or identifier) decides which math makes sense.
  • Identifiers such as account numbers and ZIP codes look like numbers but must be treated as labels.
  • Data quality has several dimensions: completeness, accuracy, consistency, timeliness and uniqueness.
  • A quality score tells you how much to trust a result, and it should be reported next to the result.
  • Governance means clear owners, access rules, privacy protection, and a record of where data came from.

Marcus runs a landscaping company with 500 customers. One afternoon he asks a new assistant to find the average ZIP code of his customers "to see where the center of the business is." The assistant, being helpful and fast, types a formula and reports back: 62,418.

That number is perfectly calculated and completely useless. A ZIP code is not an amount. Adding ZIP codes and dividing makes no more sense than averaging phone numbers. The spreadsheet did not complain, because it saw digits and did what digits allow.

This small blunder holds three big lessons of the course. First, you must know the type of each piece of data. Second, you must check its quality. Third, someone must be responsible for how data is stored and shared, which is called governance. Together they decide whether an analysis deserves trust, and they sit between cleaning the data and the methods that come next.

What kind of thing is this field?

Every column in a table holds one kind of value. Knowing the kind keeps you from nonsense like Marcus's average.

  • Numbers you can do math on. Amounts, quantities and hours. Adding, averaging and comparing sizes all make sense. Dollars in a ledger are the classic case.
  • Categories. Labels with no order, such as "Mowing," "Trimming" or "Cash" versus "Card." You can count them and group by them, but you cannot average them.
  • Ordered categories. Labels with a rank, such as risk "low," "medium," "high." You can sort them, but the gaps between ranks are not measured.
  • Dates and times. These support differences ("how many days from invoice to payment?") and grouping by month or quarter.
  • Free text. Descriptions and memos. This is harder to analyze, because the same idea appears in countless wordings.
  • Identifiers. Account numbers, invoice numbers, employee IDs and ZIP codes. They look like numbers, but they name things. Adding two invoice numbers produces nothing real.

A handy test: "Would the sum of this column mean something?" The sum of invoice amounts is the total billed. The sum of invoice numbers means nothing.

Four common field kinds
Amount Money or counts. Add, average, compare. Category Labels like service type. Count and group. Date Points in time. Find gaps and trends. Identifier Names a thing, like an invoice. Match, never add. Amount Money or counts. Add, average, compare. Category Labels like service type. Count and group. Date Points in time. Find gaps and trends. Identifier Names a thing, like an invoice. Match, never add.

Ask what question a field can answer before you choose a calculation.

Identifiers cause a sneaky second problem. Some spreadsheets treat a ZIP code like 02134 as the number 2,134 and drop the leading zero. Account numbers such as 007 become 7. Store identifiers as text so they keep their exact form.

Data can also be structured (neat rows and columns, like a ledger) or unstructured (emails, contracts, scanned receipts, photos). Most accounting analysis starts with structured data. Unstructured data holds a lot of value too, but it takes extra tools to turn into rows.

What good quality means

"Is the data good?" is another fuzzy question. Break it into dimensions, each of which you can check.

Five faces of data quality
Data quality Can we trust the result? Unique Each real event appears once. Timely Recent enough for the decision at hand. Complete No missing values where one is needed. Accurate Values match the real world and the source documents. Consistent The same fact looks the same everywhere. Data quality Can we trust the result? Complete No missing values where one is needed. Accurate Values match the real world and the source documents. Consistent The same fact looks the same everywhere. Timely Recent enough for the decision at hand. Unique Each real event appears once.

A table can pass on one face and fail on another, so check each.

  • Completeness: A customer table where 45 of 500 rows have no email fails this for any email campaign.
  • Accuracy: An invoice entered as $1,200 when the paper says $120 passes completeness and fails accuracy. Only comparing with the source finds it.
  • Consistency: If one system says "St." and another says "Street," or the books and a bank file disagree about a date, matching them is hard.
  • Timeliness: A receivables report from last quarter cannot guide this week's collection calls.
  • Uniqueness: Duplicates inflate totals and confuse counts.

Different jobs weigh these differently. Fast, rough sales trends can live with a little incompleteness. A tax return cannot.

A worked example: scoring Marcus's customer table

Marcus's table has 500 rows. The assistant runs simple checks and records the counts.

Check                                    Problem rows
Missing email address                          45
Duplicate customers (same customer twice)      20
Invoice date in the future                     10

Turn each into a score by asking what share is good.

Completeness of email: (500 − 45) ÷ 500 = 455 ÷ 500 = 0.91, so 91%.

Uniqueness: duplicates are extra copies, so the number of real customers is 500 − 20 = 480. The share of unique rows is 480 ÷ 500 = 0.96, so 96%.

Validity of dates: (500 − 10) ÷ 500 = 490 ÷ 500 = 0.98, so 98%.

Marcus's customer table scorecard
Email present 91% Unique customers 96% Valid invoice date 98% Email present 91% Unique customers 96% Valid invoice date 98%

Percent of rows that pass each check. Example numbers for teaching. Hypothetical example: the numbers are made up to show the method, not a quote or an average.

What do these scores tell Marcus? If he wants to count customers, the 20 duplicates make the answer 500 when the truth is 480, an error of 20 ÷ 480, about 4%. That might be fine for a rough guess and wrong for a commission calculation. If he wants an email campaign, 9% of customers cannot be reached, and he should know that before promising the owner "we'll contact everyone."

Notice the scoring did not fix anything. It measured. Measuring lets you decide what to fix first. A smart rule: repair the problem that most affects the question you are asking. Fixing dates matters little for an email campaign.

Governance: who is responsible?

Data governance is the set of roles, rules and records that keep data trustworthy and protected. It answers practical questions.

  • Who owns this data? Every important table needs a named owner who answers for its accuracy. The head of sales owns customer records, and payroll owns pay records.
  • Who may see it? Access should follow the job. A clerk who enters invoices does not need to see executive pay. This ties directly to internal control: limiting access limits both fraud and accident.
  • How is private data protected? Customer names, bank details, Social Security numbers and health information are sensitive. Rules about this vary by place and industry, and they change, so check with your legal or compliance team and current regulators instead of relying on memory. A good habit is to analyze with the fewest personal details needed, for example using a customer code instead of a name.
  • How long is it kept? Retention rules say how long records must be saved and when they should be destroyed. The right periods depend on the type of record and the law, so use your organization's policy.
  • Where did it come from? Lineage is the trail showing a number's journey from the original transaction through every transformation. A figure without lineage cannot be defended.

Governance also covers changes. If one person quietly changes a field's meaning, every report downstream shifts. Good systems log who changed what and when, so a report can be rebuilt later. Auditors rely on that trail, as you will see in the audit lesson.

The data dictionary: a map for strangers

How does a new analyst learn what "Status" or "Amt2" means in a table? A good organization keeps a data dictionary: a plain list of every field with its name, type, meaning and allowed values. Think of it as the legend on a map.

A short entry for Marcus's table might read like this.

Field         Type         Meaning                          Allowed values
CustomerID    Identifier   Unique code for one customer     C0001 to C9999
Service       Category     Kind of work performed           Mowing, Trimming, Planting
InvoiceDate   Date         Day the invoice was issued       Not in the future
Amount        Number       Billed before tax, in dollars    0 or more

Each line does real work. "Allowed values" turns into a quality check: any row where Amount is below zero, or InvoiceDate falls after today, breaks the rule and gets flagged. The meaning column heads off arguments, such as whether Amount includes tax. Without a dictionary, every analyst guesses, and different guesses produce different answers to the same question.

Writing the dictionary also reveals gaps. If nobody can say what a field means, that is a finding in itself. Ask the owner, write the answer down, and share it.

A common mistake: treating the clean-looking table as true

A table can look polished and still be wrong. Suppose every cell is filled, every date parses, and every label is tidy. It still might be last year's data, or a sample of one branch, or numbers entered carelessly. Tidy is not the same as true.

Another frequent slip is mixing up precision and accuracy. A figure like $48,213.47 looks exact, yet if the underlying invoices are wrong, the cents are decoration. Report results with the same care the data deserves, and state the quality scores next to the answer.

A third slip is sharing data too widely because "it's just a spreadsheet." Copies of customer data on personal drives or in email attachments are a classic source of leaks. Keep to approved locations, and ask before sending anything with personal details.

Words to know

Data type the kind of value a field holds, which decides what math is meaningful.

Identifier a field that names a thing, such as an invoice number or ZIP code, and should be matched, not added.

Structured data information in neat rows and columns, like a ledger.

Unstructured data information without that shape, like emails, contracts and scanned receipts.

Data quality how complete, accurate, consistent, timely and unique the data is.

Data governance the roles, rules and records that keep data trustworthy and protected.

Lineage the documented path of a number from its source through each change to the final report.

Check yourself

  1. Why was the "average ZIP code" meaningless, even though the math was done correctly?
  2. Name the five dimensions of data quality used in this lesson.
  3. A table has 800 rows, of which 56 lack a phone number. What is the completeness score for phone numbers?
  4. A table lists 800 rows, but 32 are duplicates. What share of rows are unique, and how many real customers are there?
  5. Why should an account number such as 007 be stored as text?
  6. Explain why governance includes limiting who may see data, and how that connects to preventing fraud.
Show the answers
  1. A ZIP code is an identifier that names a place, not an amount, so adding and averaging produce a number with no real meaning.
  2. Completeness, accuracy, consistency, timeliness and uniqueness.
  3. (800 − 56) ÷ 800 = 744 ÷ 800 = 0.93, or 93%.
  4. Real customers are 800 − 32 = 768; unique share is 768 ÷ 800 = 0.96, or 96%.
  5. Stored as a number it becomes 7 and loses its leading zeros, so it no longer matches the real account.
  6. Limiting access means fewer people can view or change sensitive records, which reduces both accidents and opportunities to misuse data, a basic internal control.

A free self-study program written for 4Accounting with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: The analytics process

  1. Analytics and the AccountantData analytics turns the records accountants already keep into answers, and this lesson maps the whole process from question to action.11 min
  2. Asking Good Questions of DataA sharp, specific question decides whether analysis helps; learn to turn a vague worry into one that records can answer.10 min
  3. Getting and Cleaning Accounting DataLearn how to pull records out of accounting systems, check them against the books, and fix the mess before you analyze anything.10 min
  4. Data Types, Quality and GovernanceKnow what kind of data you hold, how to score its quality, and who is allowed to touch it before you trust or share any result.10 min

In the news