Chapter 2: Understanding Data in Accounting

Accounting Analytics: An Integrated Approach

In this chapter

Part I of V: Foundations of Accounting Analytics

Chapter 2 of 3 in this Part

  • 2.1 Why Data Quality Comes First
  • 2.2 Data Types in Accounting
  • 2.3 Sources of Accounting Data
  • 2.4 Data Quality Dimensions
  • 2.5 Common Data Quality Problems in Accounting Datasets
  • Guided Tutorial 2.1
  • 2.7 The Concept of Tidy Data
  • 2.8 Source-to-Ledger Traceability
  • Guided Tutorial 2.2
  • 2.10 Data Quality Across the Charles River Table Groups
  • 2.11 Looking Ahead

Learning objectives

  1. Distinguish between quantitative and qualitative data and between structured, semi-structured, and unstructured data, and identify examples of each in accounting contexts.
  2. Describe the primary sources of accounting data, including general ledgers, sub-ledgers, trial balances, enterprise resource planning systems, and external data feeds.
  3. Evaluate accounting data against four quality dimensions: accuracy, completeness, consistency, and timeliness.

Learning objectives (continued)

  1. Identify common data quality problems, including missing values, duplicates, inconsistent formatting and values, and outliers, and apply basic tests to detect them in the Charles River data.
  2. Explain the concept of tidy data and why it matters for accounting analytics.
  3. Explain how source-to-ledger traceability tests whether recorded transactions reached the general ledger completely and accurately, and what such a test cannot show.

Is the data reliable enough to analyze?

  • You are a newly hired internal auditor at Charles River
  • Before the year-end audit, your supervisor asks for an assessment of the accounting data
  • Two customers share a name; hundreds of shipments have no tracking number; old shipments still read “In Transit”
  • Some ledger entries carry no amount, and the extract runs into a new fiscal year

2.1 Why Data Quality Comes First

Every result is only as good as its data

  • A PivotTable on revenue with missing dates understates period totals
  • A SQL test for duplicate payments misses duplicates if vendor names differ
  • A budget dashboard misleads when budget and actual use different accounts
  • Financial statement auditors must evaluate the data they use as evidence

2.2 Data Types in Accounting

Quantitative data measures and counts

Table 2.1 · Examples of Quantitative and Qualitative Data in Accounting

Subtype Accounting Example Charles River Source
Continuous Sales invoice line amount SalesInvoiceLine.LineTotal (O2C group)
Continuous Standard cost of a product Item.StandardCost (Master Data group)
Continuous Freight cost on a shipment Shipment.FreightCost (O2C group)
Discrete Number of line items on a sales invoice Count of SalesInvoiceLine rows per invoice (O2C group)
Discrete Number of GLEntry rows posted in a fiscal period GLEntry (Accounting Core group)

Qualitative data names, classifies and orders

Table 2.1 · Examples of Quantitative and Qualitative Data in Accounting

Subtype Accounting Example Charles River Source
Nominal Account name (“Office Supplies Expense”) Account.AccountName (Accounting Core group)
Nominal Customer name (“Walters PLC”) Customer.CustomerName (O2C group)
Nominal Item group classification (“Furniture”) Item.ItemGroup (Master Data group)
Nominal Source document type (“SalesInvoice”) GLEntry.SourceDocumentType (Accounting Core group)
Nominal Sales order status (Open, Backordered, Partially Invoiced, Invoiced, Closed) SalesOrder.Status (O2C group)
Ordinal Supplier risk rating (Low, Medium, High) Supplier.SupplierRiskRating (P2P group)

Structure runs from tables to free text

A horizontal diagram showing three zones from left to right: Structured Data (example: the Charles River GLEntry table with defined columns for PostingDate, AccountID, Debit, and Credit), Semi-Structured Data (example: an XBRL filing with tagged financial elements), and Unstructured Data (example: the text of a lease agreement or scanned invoice images). Each zone includes a brief description and an accounting example. A double-headed arrow below runs from more structure to less structure, and a note says that Excel, SQL, and Power BI are designed for structured data.
Figure 2.1 · The Spectrum of Data Structure

Check your understanding

What type of data is each value?

  1. The total of a sales invoice line
  2. An item’s group, such as Furniture
  3. A sales order’s status, such as Open or Backordered
  4. The number of ledger entries posted in a month

Each value has its type

  1. Quantitative, continuous: an amount
  2. Qualitative, nominal: a category with no order
  3. Qualitative, nominal: status categories with no single defined ranking
  4. Quantitative, discrete: a count

2.3 Sources of Accounting Data

Accounting data comes from five kinds of source

A diagram showing five data sources (General Ledger, Sub-Ledgers, Trial Balance, ERP System, and External Data Feeds) connected by arrows to a central oval labeled Accounting Analytics. Each source box includes a one-sentence description of the type of data it provides.
Figure 2.2 · Common Sources of Accounting Data

Sub-ledgers must agree with the ledger

  • The general ledger records every debit and credit; at Charles River, the GLEntry table
  • Sub-ledgers hold the detail: the O2C tables for receivables, the P2P tables for payables
  • A trial balance is a report that sums the ledger by account
  • ERP data is integrated but not immune to entry, setup and validation errors; external data gives you less control

2.4 Data Quality Dimensions

Accuracy and completeness at Charles River

Table 2.2 · The Four Data Quality Dimensions with Accounting Examples

Dimension Definition Charles River Example
Accuracy Recorded values correspond to the true values they are intended to represent. Some SalesInvoice records are dated before any shipment on the same sales order. Either the invoice date is wrong or the customer was billed before the goods were shipped, and both possibilities matter for revenue cutoff.
Completeness All expected records and field values are present in the dataset. Several hundred Shipment records have no TrackingNumber. For those shipments the extract holds no carrier reference, which weakens any test of whether recorded sales were actually fulfilled.

Consistency and timeliness at Charles River

Table 2.2 · The Four Data Quality Dimensions with Accounting Examples

Dimension Definition Charles River Example
Consistency The same fact is represented in the same way wherever it appears in the dataset or across related datasets. Shipments from every year are still marked “In Transit,” with a DeliveryDate on or before the year-end under review. If that date records the delivery, the two columns disagree, and a count of in-transit shipments by status overstates the goods not yet delivered.
Timeliness The data reflects the current state of the business as of the relevant reporting date. The general ledger extract runs several weeks into a new fiscal year, but those periods hold only supplier payments that settle the prior year’s invoices. Comparing them with complete months of activity would suggest a collapse in business that never happened.

Watch out: one dimension can pass while another fails

  • A ledger can be accurate and consistent yet incomplete, if a subsidiary was not consolidated
  • Test all four dimensions, not only the easiest one to check

2.5 Common Data Quality Problems in Accounting Datasets

Four problems recur in accounting data

A four-panel diagram using real Charles River records. Missing Values: Shipment rows where TrackingNumber is blank. Duplicate Records: two PurchaseInvoice rows from the same supplier with the same invoice number but different dates and amounts. Inconsistent Values: Shipment rows still marked In Transit although their DeliveryDate falls years before the year-end under review, a conflict if that date records the delivery. Outliers: a FreightCost of $873.95, several times the average shipment of about $150. Each panel highlights the problem cells and includes a brief annotation.
Figure 2.3 · Common Data Quality Problems

Blanks and outliers call for judgment

  • Some tools skip missing values and others treat them as zero; both distort totals
  • Not every blank is an error: items that are never sold have no list price by design
  • A blank tracking number, by contrast, is information that should exist
  • An outlier is a question to investigate, not a value to delete

Matching across records and tables

  • Duplicates: a supplier invoice number used twice; customers with identical names
  • Inconsistent formats: dates, names and amounts written differently break lookups and joins
  • Referential integrity: every reference that is filled in must point to a record that exists
  • A record whose parent is missing is an orphaned record

Check your understanding

Name the problem and the quality dimension of each finding:

  1. Shipments with no tracking number
  2. Shipments still “In Transit” after their delivery date
  3. One supplier’s invoice number appearing on two invoices
  4. Raw materials with no list price

Problems, dimensions and judgment

  1. Missing values: completeness
  2. If DeliveryDate is the delivery, fields that disagree: consistency, and timeliness
  3. A possible duplicate: an accuracy test, and a duplicate-payment risk
  4. Missing by design: not an error, because raw materials are not sold

Tests for accuracy and completeness

Table 2.3 · A Data Quality Checklist

Dimension Common Tests Excel Techniques
Accuracy Values within a plausible range; dates in a logical order, such as an invoice dated no earlier than its shipment; no duplicate records Sorting, filters, COUNTIFS to count repeated values, IF and MINIFS helper columns
Completeness Blank values in required fields; entries present in every period; every expected transaction type present Filters for blanks, COUNTBLANK, PivotTables by period and by type

Tests for consistency and timeliness

Table 2.3 · A Data Quality Checklist

Dimension Common Tests Excel Techniques
Consistency Related fields that agree with each other; references that match a parent record (referential integrity); identical coding across tables Filters on combinations of columns, XLOOKUP or COUNTIFS against the parent table, PivotTables of distinct values
Timeliness Date range of the extract; partial first and last periods; entries dated outside the period under review Sorting by date, MIN and MAX, PivotTables by fiscal year and period

Guided Tutorial 2.1: Inspecting Charles River O2C and Item Data for Data Quality Problems

Inspect the O2C and Item tables in eight steps

  1. Get to know the SalesOrder worksheet
  2. Find shipments with no tracking number
  3. Find shipments still marked In Transit after their delivery date
  4. Look for duplicate customers
  5. Look for freight outliers
  6. Find the earliest shipment for each invoice
  7. Flag invoices dated before their first shipment
  8. Distinguish values missing by design from missing information

MINIFS finds each invoice’s first shipment

A mock of the Charles River SalesInvoice worksheet in Excel, filtered to the invoices flagged Check. Columns D and F through L are hidden, leaving SalesInvoiceID, InvoiceNumber, InvoiceDate, and SalesOrderID next to two helper columns: Min Date, the earliest shipment date on the invoice's sales order, and Check. In every row the InvoiceDate is earlier than the Min Date, for example invoice SI-2024-000001, dated 2024-01-01, whose order first shipped on 2024-01-03. The formula bar shows the MINIFS formula in cell M2, and the Check column is outlined.
Figure 2.5 · The SalesInvoice Worksheet with Date Check Helper Columns

Checkpoint

  • shipments with no TrackingNumber (completeness);
  • shipments still marked In Transit after their DeliveryDate (consistency and timeliness, if that date records the delivery);
  • invoices dated before any shipment on their order (accuracy).
  • same-name customers that may or may not be duplicates;
  • freight outliers that may be legitimate;
  • blank list prices that turn out to be expected.

2.7 The Concept of Tidy Data

Tidy data has one fact in one place

  • Each variable in its own column
  • Each observation in its own row
  • Each type of observational unit in its own table
  • Common violations: several values packed into one column; months as column headers

Wide reports reshape into long tables

The same budget data shown in two layouts, using real Charles River salary budgets for the Sales, Administration, and Marketing cost centers in fiscal year 2025. The top panel shows the wide format, with January, February, and March as column headers (messy). A downward arrow labeled Reshape to tidy format leads to the bottom panel, which shows the long format with Department, Month, and Budget Amount as columns (tidy). Boxes beside each panel explain which tidy data principles the layout violates or satisfies.
Figure 2.6 · Messy Versus Tidy Data

Watch out: tidy is not clean

  • Tidy describes structure; clean describes quality
  • Data can be tidy but dirty, or clean but messy
  • Both must be fixed before analysis can proceed

2.8 Source-to-Ledger Traceability

Traceability tests completeness and accuracy at once

  • Completeness: every recorded sales invoice produced its ledger postings
  • Accuracy: the amounts posted for each invoice agree with its total
  • At Charles River, every sales invoice reconciles to its postings
  • Reconciling a sub-ledger to the ledger is a common audit test

Guided Tutorial 2.2: Examining the Charles River Accounting Core for Completeness and Consistency

Test the Accounting Core in eight steps

  1. Get to know the chart of accounts
  2. Check the chart of accounts for completeness
  3. Get to know the general ledger
  4. Check that total debits equal total credits
  5. Check that every ledger account exists in the chart of accounts
  6. Check the periods the ledger covers
  7. Look for entries with no amount
  8. Check that every business cycle posts to the ledger

Debits equal credits across the whole ledger

A mock of the bottom of the Charles River GLEntry worksheet in Excel, showing the last ledger rows, year-end journal entries dated 2026-12-31. After one blank row, a Total row shows the sum of the Debit column and the sum of the Credit column, which are equal, and a Difference row shows $0.00. The formula bar shows the difference formula, which rounds each total to the cent before subtracting, and the totals and the difference are outlined.
Figure 2.7 · Debit and Credit Totals at the Bottom of the GLEntry Worksheet

Checkpoint

  • Completeness: all account types are present in the chart of accounts, every period has entries (and you know why some periods are small), and every expected source document type appears in GLEntry.
  • Consistency: total debits equal total credits to the cent, and every GL account reference exists in the chart of accounts.
  • Accuracy and timeliness: you identified the zero-amount rows and the entries dated beyond the fiscal years under review.

2.10 Data Quality Across the Charles River Table Groups

The business cycles carry the transaction problems

Table 2.4 · Data Quality and Control Issues Across the Charles River Table Groups

Table Group Issues to Watch For
Order-to-Cash (O2C) Missing tracking numbers, shipment statuses that conflict with delivery dates, invoices dated before shipment, customers with identical names, sales priced below the approved floor
Procure-to-Pay (P2P) Duplicate supplier invoice numbers, duplicate payment references, purchase orders created and approved by the same person, requisitions missing approval or just below approval thresholds, supplier addresses that match employee addresses
Manufacturing Work orders with no routing operations
Payroll and Time Missing clock-outs, duplicate time-clock days, employees paid without time records, payroll registers without a payment
Fixed Assets and Financing Asset events and debt schedules that must agree with the ledger

The ledger, reference data and plans

Table 2.4 · Data Quality and Control Issues Across the Charles River Table Groups

Table Group Issues to Watch For
Accounting Core Zero-amount postings, entries dated beyond the period under review, partial periods at the edges of an extract, journal entries created and approved by the same person or created and approved on weekends
Master Data Item names shared by several items, missing catalog attributes, list prices left blank for items that are not sold
Organizational Planning Budget lines and ledger entries with no cost center
Demand Planning and MRP Forecast overrides far outside the normal range

Check your understanding

Which table group would you test for each risk?

  1. A supplier paid twice for one invoice
  2. An employee paid without time records
  3. A budget line with no cost center
  4. A journal entry created and approved by the same person

Each risk has its table group

  1. Procure-to-Pay: duplicate supplier invoice numbers and payment references
  2. Payroll and Time: employees paid without time records
  3. Organizational Planning: budget lines with no cost center
  4. Accounting Core: entries created and approved by the same person

2.11 Looking Ahead

Summary

  • Data types decide which analysis makes sense; structured data is what the tools expect
  • Ledgers, sub-ledgers, ERP systems and external feeds each bring their own risks
  • Accuracy, completeness, consistency and timeliness are tested one by one
  • Missing values, duplicates, inconsistencies and outliers call for tests and judgment
  • Tidy structure and traceability make the data ready to analyze and to trust

Key terms

Accuracy · Completeness · Consistency · Data quality · Duplicate record · External data · General ledger · Messy data · Missing value · Orphaned record · Outlier · Qualitative data · Quantitative data · Referential integrity · Semi-structured data · Structured data · Sub-ledger · Tidy data · Timeliness · Trial balance · Unstructured data

Practice and next steps

  • Financial Accounting
    • Exercise 2.1: Assessing Revenue Data Quality in the Charles River O2C Tables
    • Exercise 2.2: Evaluating General Ledger Completeness at Charles River
  • Managerial Accounting
    • Exercise 2.3: Data Quality Assessment for Product Cost Analysis
    • Exercise 2.4: Evaluating Budget Data for Budget-Versus-Actual Analysis
  • Auditing
    • Exercise 2.5: Data Quality Evaluation for Audit Planning
    • Exercise 2.6: Testing for Duplicate Payments

Next: Chapter 3: The Accounting Data Environment

About these slides

These slides accompany Accounting Analytics: An Integrated Approach, licensed under CC BY-SA 4.0. Every figure and table comes from the chapter:

https://aa.accountinganalyticshub.com/chapters/02-understanding-data/chapter.html