Power BI Fundamentals

Chapter 5
Data Quality and Transformation Governance

Certificate in Business Intelligence (Power Bi)
Power BI Fundamentals   •   Certificate

Data Quality and Transformation Governance

Introduction

Power BI reports are only as trustworthy as the data behind them. A visually attractive dashboard can still produce poor decisions when records are missing, duplicated, incorrectly typed, inconsistently defined, or affected by bias. Data quality and transformation governance provide the controls needed to make data reliable, understandable, reproducible, and responsibly used.

In Power BI, governance applies across the complete information chain: source systems, Power Query transformations, the semantic model, reports, refresh processes, and business decisions. It is not limited to correcting errors after they appear. Good governance prevents avoidable errors, documents decisions, assigns accountability, and makes limitations visible.

Learning Objectives

By the end of this chapter, you should be able to:

  • identify missing, invalid, duplicate, inconsistent, and potentially biased data;
  • distinguish data-quality dimensions and assess their practical effects;
  • select appropriate data types and validation rules;
  • apply controlled transformations in Power Query;
  • document data lineage, assumptions, and transformation logic;
  • assign refresh ownership and monitor refresh reliability;
  • handle sensitive information responsibly; and
  • evaluate the limitations and risks of a Power BI solution.

1. Data Quality as a Business Requirement

Data quality is the degree to which data is fit for its intended use. Fitness depends on context. A customer telephone number may be essential for a service team but irrelevant to a finance dashboard. A value can therefore be technically valid yet unsuitable for a particular decision.

The most useful dimensions are:

DimensionMeaningExample of failure
AccuracyData represents the real-world valueA sale is recorded for the wrong amount
CompletenessRequired values are presentCustomer region is blank
ValidityValues follow permitted formats or rulesA date contains text
ConsistencyThe same concept is represented uniformlyUK, U.K., and United Kingdom are mixed
UniquenessRecords are not unintentionally repeatedOne invoice appears twice
TimelinessData is current enough for its useYesterday's stock is used for today's allocation
IntegrityRelationships between entities remain correctAn order refers to a nonexistent customer

These dimensions interact. Removing duplicate transactions may improve uniqueness while reducing completeness if the records were legitimate repeated purchases. Quality controls must therefore consider business meaning rather than applying mechanical rules alone.

A useful conceptual model is:

Source data → Profiling → Validation → Transformation → Semantic model → Report → Decision

A defect introduced at an early stage can propagate through every later stage. Conversely, a documented validation step creates evidence that the data was examined and treated deliberately.

2. Common Data-Quality Problems

Missing data

Missing data may be represented by null values, empty strings, spaces, placeholders such as N/A, or impossible defaults such as 0. These representations should be distinguished before treatment. A missing discount may mean that no discount applied, whereas a missing customer segment may mean that the classification process failed.

Possible treatments include:

  • retaining nulls and displaying them as Unknown;
  • correcting the source system;
  • imputing a value only when a defensible business rule exists;
  • excluding records from a particular analysis; or
  • creating a quality flag for review.

Replacing every blank with zero is dangerous because it changes meaning.

Invalid data

Invalid data violates a format, range, domain, or relationship rule. Examples include negative quantities where negative values are impossible, dates in the future, invalid email formats, and product codes not found in the product master.

Validation should be explicit. For example, a quantity rule may be expressed as quantity ≥ 0, while a transaction-date rule may require the date to be no later than the reporting date. Rules should identify whether a violation blocks loading, requires correction, or is merely reported as a warning.

Duplicate data

Duplicates may be exact duplicates or business duplicates. Two rows can differ in an audit timestamp yet represent the same invoice. A reliable duplicate rule requires a business key, such as invoice number plus line number, rather than comparing every column.

Before removing duplicates, determine whether repetition is legitimate. Monthly subscription charges, repeated customer contacts, and multiple lines on one invoice are not necessarily duplicate records.

Inconsistent data

Inconsistency may occur in spelling, capitalization, units, currency, time zones, coding schemes, or definitions. For example, revenue may be stored in dollars in one source and thousands of dollars in another. Standardization should preserve the original value when auditability matters and record the applied conversion or mapping.

A reference table is often safer than a long collection of manual replacements. A mapping table can relate source codes to approved business terms and can be maintained by a designated owner.

Biased data

Bias occurs when data systematically over-represents, under-represents, or misrepresents groups, events, or outcomes. Bias may result from historical discrimination, unequal access, selective measurement, nonresponse, survivorship, or the design of a data-collection process.

A dashboard does not become objective merely because calculations are automated. Analysts should ask who is absent, whose outcomes are measured differently, and whether a proxy variable may reproduce a sensitive characteristic. Bias assessment is particularly important in hiring, lending, pricing, service allocation, and performance evaluation.

3. Data Types and Validation Rules

Data types are controls, not cosmetic formatting. Common Power BI types include text, whole number, decimal number, fixed decimal number, date/time, date, time, Boolean, and binary. Selecting an appropriate type affects sorting, aggregation, storage, relationships, and error detection.

For example, a product identifier such as 00127 should usually be text; converting it to a number changes it to 127 and loses meaningful leading zeros. A monetary amount should use an appropriate decimal representation, and a date should be stored as a date rather than text.

Validation rules should be documented using four elements:

  1. Field or condition: what is being checked.
  2. Rule: what constitutes an acceptable value.
  3. Action: reject, correct, quarantine, or accept with a warning.
  4. Owner: who investigates and resolves exceptions.

A compact validation register might be:

FieldRuleFailure actionOwner
Invoice IDMust be present and uniqueQuarantine and investigateFinance data owner
QuantityWhole number and ≥ 0Reject or correct at sourceSales operations
CurrencyMust be in approved code listMap or quarantineFinance
Order dateMust not be after refresh dateWarning and reviewBI analyst

Validation can be implemented in Power Query by profiling columns, replacing or splitting values, changing types, merging reference tables, filtering exceptions, and creating conditional columns. A robust design commonly retains an exception query rather than silently deleting failed rows.

A practical Power Query sequence

  1. Connect to the source using approved credentials.
  2. Preserve a raw or staging query where feasible.
  3. Standardize column names and trim or clean text.
  4. Replace known missing-value tokens with null.
  5. Assign data types deliberately.
  6. Apply reference mappings and business rules.
  7. Create quality flags and an exception output.
  8. Remove or exclude records only under a documented rule.
  9. Load the prepared table into the model.

Transformations should be ordered carefully. For example, trimming text before applying a lookup improves matching. Converting a column to a numeric type before handling nonnumeric placeholders may create errors that could have been prevented.

4. Transformation Governance

Transformation governance is the controlled management of changes made between source data and analytical output. It answers four questions: What changed? Why did it change? Who approved it? How can it be reproduced?

Data lineage

Data lineage describes the origin, movement, transformation, and destination of data. At a basic level, lineage should connect:

  • source system and table;
  • extraction method and refresh frequency;
  • Power Query steps;
  • model tables and relationships;
  • measures and calculated columns; and
  • reports, audiences, and decisions.

Lineage is valuable during troubleshooting, audit, impact analysis, and regulatory review. If a source column changes name, lineage helps identify affected queries and visuals.

Documentation

Documentation should be concise but sufficient for another competent analyst to reproduce and evaluate the solution. A useful data dictionary records field name, definition, type, unit, allowed values, source, transformation, sensitivity classification, and owner.

Transformation documentation should explain business logic, not merely repeat technical syntax. For example, “Rows are filtered where Status = Closed” is less useful than “Closed cases are excluded because the operational KPI measures unresolved workload; closure status is supplied by the case-management owner.”

Change control

Changes to transformations should be tested before publication. A simple control process includes a request, impact assessment, development copy, test results, approval, deployment, and rollback or recovery plan. Version history is especially important when a measure definition changes, because historical comparisons may no longer be comparable.

5. Refresh Ownership and Operational Controls

A report is not governed if nobody is responsible for its refresh. Ownership should be assigned for the source, transformation, semantic model, workspace, and business interpretation. These roles may be held by different people.

A refresh operating model should specify:

  • schedule and time zone;
  • expected completion window;
  • credentials and gateway responsibility;
  • acceptable freshness or service-level expectation;
  • failure alerts and escalation route;
  • reconciliation checks; and
  • procedure for pausing publication when data is unreliable.

Refresh success alone does not prove data quality. A pipeline can complete successfully while loading zero rows, duplicated rows, or stale source data. Row-count checks, date-range checks, duplicate checks, and reconciliation to control totals provide stronger assurance.

For example, if a finance source reports total sales of 2.4 million currency units and the model reports 2.1 million, the difference requires investigation before publication. The discrepancy may be a legitimate timing difference, a currency issue, or a failed filter; it should not be hidden by formatting.

6. Responsible Treatment of Sensitive Information

Sensitive information includes personal identifiers, health information, financial details, authentication data, precise location, and information that could cause harm if misused. Governance should follow applicable law, institutional policy, and principles such as purpose limitation, data minimization, access control, accuracy, retention limitation, and accountability.

Practical controls include:

  • collect and load only fields required for the stated purpose;
  • mask or pseudonymize identifiers where individual identity is unnecessary;
  • restrict workspace and dataset permissions using least privilege;
  • avoid placing sensitive values in titles, tooltips, exports, or screenshots;
  • apply row-level security where users should see different records;
  • document retention and deletion arrangements; and
  • test whether combinations of apparently harmless fields permit re-identification.

Pseudonymization replaces direct identifiers but does not make data anonymous if a key or additional information can reconnect records to individuals. Analysts should also consider small-cell disclosure: a chart showing one person's salary or medical category may reveal sensitive information even when names are absent.

AI-assisted features can accelerate transformation or interpretation, but they do not remove accountability. Sensitive data should not be entered into an unapproved external service. Generated code and explanations must be reviewed for incorrect assumptions, privacy risks, and biased logic.

7. Worked Application: Regional Service Dashboard

The following is an illustrative case. A service organization builds a Power BI dashboard showing cases received, average resolution time, and backlog by region.

Background and problem

The source contains 180,000 case rows from three regional systems. The initial dashboard reports unusually low backlog in Region C. Investigation reveals several issues: region names differ, blank closure dates are represented as 01/01/1900, one system stores durations in hours while another stores days, and reopened cases have been loaded twice.

Analysis

The team profiles the data and identifies:

  • 4,200 rows with invalid closure dates;
  • 1,150 possible business duplicates based on case ID and event sequence;
  • 7 regional labels requiring a controlled mapping;
  • 3,600 cases with missing region; and
  • inconsistent duration units.

The team also checks whether missing-region cases are concentrated in a particular area. They are predominantly cases submitted through a digital channel used by customers with limited access to local offices. Excluding these cases would therefore create a potentially biased regional comparison.

Approach and solution

The team creates a staging query, converts placeholder dates to null, and standardizes units before calculating duration. A reference table maps regional labels to approved names. Duplicate candidates are placed in an exception table for case-management review rather than deleted automatically. Missing regions are reported as “Unassigned” and shown in a quality indicator.

The business definition of backlog is documented as cases not closed as of the reporting timestamp. Refresh ownership is assigned to the service-data manager, while the BI analyst owns the model and report. A reconciliation check compares total loaded cases with source control totals.

Outcome

The revised dashboard shows that Region C did not have an unusually low backlog; its apparent performance was caused by duplicated closure records and inconsistent regional coding. The report now displays both operational results and data-quality indicators, allowing managers to distinguish service performance from measurement limitations.

Learning points

The case demonstrates that transformation is not merely a technical cleaning exercise. Definitions, exception handling, bias assessment, ownership, and transparent reporting are all necessary for a trustworthy result.

8. Challenges and Limitations

No transformation process can guarantee perfect data. Source systems may lack essential fields, definitions may conflict across departments, and business rules may change. Automated cleaning can also create false confidence by producing neat-looking outputs.

Important limitations include:

  • a valid format does not guarantee factual accuracy;
  • historical corrections may break trend comparability;
  • deduplication can remove legitimate events;
  • imputation can create artificial certainty;
  • quality thresholds may conceal smaller but important errors; and
  • governance controls require time, skills, and sustained ownership.

Quality should therefore be risk-based. A minor spelling variation in an internal label may be low risk, while a one-percent error in a regulatory or safety measure may be unacceptable. The cost of control should be proportionate to the potential impact.

Best-Practice Checklist

Before publishing a Power BI solution, confirm that:

  • definitions and data types are documented;
  • missing, invalid, duplicate, and inconsistent values have been assessed;
  • exceptions are retained or explainably treated;
  • transformations are reproducible and traceable;
  • sensitive fields have an approved purpose and access design;
  • refresh ownership and failure escalation are clear;
  • reconciliation and freshness checks exist; and
  • known limitations and possible sources of bias are visible to users.

Chapter Summary

Data quality is multidimensional: accuracy, completeness, validity, consistency, uniqueness, timeliness, and integrity must be considered together. Missing, invalid, duplicate, inconsistent, and biased data require investigation based on business meaning rather than automatic deletion or replacement. Deliberate data types and validation rules reduce preventable errors. Power Query transformations should be staged, documented, reproducible, and supported by exception handling. Data lineage connects sources to reports and supports troubleshooting and accountability. Refresh governance assigns ownership, defines freshness expectations, and verifies successful loading through reconciliation checks. Sensitive information requires purpose limitation, minimization, access control, retention management, and careful consideration of re-identification. Ultimately, trustworthy Power BI reporting depends on technical controls combined with clear definitions, responsible judgment, and transparent communication of limitations.

Key Terms

Data quality: The degree to which data is fit for its intended use.

Accuracy: The extent to which data represents the real-world value.

Completeness: The presence of required data values.

Validity: Conformity with permitted formats, ranges, and domains.

Consistency: Uniform representation of the same concept across data.

Uniqueness: Absence of unintended repeated records.

Timeliness: Suitability of data's freshness for its purpose.

Data integrity: Correctness of relationships and structure within data.

Business key: A field or combination of fields identifying a business event.

Data profiling: Systematic examination of data structure, distributions, and defects.

Validation rule: A stated condition used to assess whether data is acceptable.

Exception table: A controlled output containing records requiring investigation.

Data lineage: A record of data origin, movement, transformation, and use.

Data dictionary: Documentation of fields, definitions, types, units, and ownership.

Reference table: An approved mapping of source values to standard values.

Refresh ownership: Accountability for maintaining and monitoring data refresh.

Pseudonymization: Replacing identifiers while retaining a possible link through additional information.

Row-level security: A control that restricts records visible to particular users.

Data bias: Systematic distortion caused by collection, measurement, representation, or historical processes.

Review Questions

Short Answer Questions

  1. Why can a value be valid but unsuitable for a particular analysis?
  2. Distinguish an exact duplicate from a business duplicate.
  3. Why should product codes with leading zeros commonly be stored as text?
  4. What information should a validation rule specify besides the condition?
  5. Why does a successful refresh not prove that a report is trustworthy?

Long Answer Questions

  1. Explain the major dimensions of data quality and show how they can conflict in practice.
  2. Describe a controlled Power Query transformation process for a table containing missing values, inconsistent labels, and invalid numeric entries.
  3. Explain how data lineage and documentation support auditability and change control.
  4. Discuss responsible treatment of sensitive information in a Power BI semantic model and report.
  5. Explain why bias assessment is necessary even when calculations and visualizations are technically correct.

Analytical / Application Questions

  1. A sales table contains blank discounts, zero discounts, and the text value N/A. Design a treatment strategy that preserves the different meanings and identifies records requiring review.
  2. A dashboard's total revenue is lower than the source control total, although the refresh reports success. Propose a sequence of diagnostic checks and identify possible causes.
  3. A regional performance report excludes records with missing region. Evaluate the governance and bias risks, and propose a more responsible alternative.

Multiple Choice Questions with Answers

Question 1

Which data-quality dimension concerns whether a value follows an approved format or domain?

A. Validity

B. Timeliness

C. Uniqueness

D. Completeness

Correct Answer: A. Validity

Question 2

Why is an identifier such as 00127 usually stored as text?

A. Text values always require less storage

B. Text preserves meaningful leading zeros

C. Text automatically validates the identifier

D. Text permits arithmetic aggregation

Correct Answer: B. Text preserves meaningful leading zeros

Question 3

What is the safest general response to a possible business duplicate?

A. Delete it immediately

B. Replace it with zero

C. Investigate it using a defined business key

D. Convert it to a date

Correct Answer: C. Investigate it using a defined business key

Question 4

Which item is essential in a validation register?

A. Dashboard colour scheme

B. Failure action and responsible owner

C. Number of report pages

D. User's screen size

Correct Answer: B. Failure action and responsible owner

Question 5

What does data lineage describe?

A. Only the visual design of a report

B. The origin, movement, transformation, and use of data

C. The speed of a computer processor

D. The number of users in a workspace

Correct Answer: B. The origin, movement, transformation, and use of data

Question 6

Which practice best supports auditability of transformations?

A. Deleting all source data

B. Keeping undocumented manual corrections

C. Documenting business logic and maintaining version history

D. Hiding exception records

Correct Answer: C. Documenting business logic and maintaining version history

Question 7

A refresh completes but loads zero rows. What does this demonstrate?

A. Refresh success always proves accuracy

B. Technical completion does not prove data quality

C. Zero rows are automatically duplicates

D. The report has no governance risk

Correct Answer: B. Technical completion does not prove data quality

Question 8

Which treatment is most appropriate when a region is missing and exclusion may distort comparisons?

A. Silently delete the rows

B. Assign every row to the largest region

C. Show an Unassigned category and investigate the cause

D. Convert the region to a numeric value

Correct Answer: C. Show an Unassigned category and investigate the cause

Question 9

What is pseudonymization?

A. Making data permanently impossible to identify

B. Replacing direct identifiers while retaining a possible link through additional information

C. Publishing all identifiers in a secure report

D. Removing all data-quality rules

Correct Answer: B. Replacing direct identifiers while retaining a possible link through additional information

Question 10

Which control most directly limits which records a user can see?

A. Row-level security

B. Text trimming

C. Column renaming

D. Duplicate removal

Correct Answer: A. Row-level security

Power BI Fundamentals
Chapter 5 of 14