Skip to content
ImagineWorld

Data Discovery

node_idnode-book_practical-data-quality_chapter-05-data-discovery
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num5
chapter_titleData Discovery
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Regularly in my data quality career, customers and stakeholders have told me that they know their data “inside out”. However, from my experience, the application of data profiling will surprise even these stakeholders. For example, at one organization, the procure to pay process owner assured me that no suppliers were on “pay immediately” terms (meaning that invoices would be paid as soon as they were issued). Data profiling revealed that in fact, 40 suppliers were set to these terms, with a total spend of several million dollars being paid immediately instead of accruing interest for the organization.

Data profiling helps to identify the data quality rules that organizations would like their data to comply with by pointing out the “extremities” of the data. Often, these extremities are examples of something that has gone wrong with the data and needs to be corrected.

To detect these extremities, a tool typically evaluates all the records in a dataset and provides basic information about each column of data within it. Data profiling, however, is only a part of the process of discovering data quality rules. This chapter will walk through this data discovery process and the best ways of applying data profiling at this early stage of a data quality initiative.

The topics we will cover in this chapter are as follows:

  • An overview of the data discovery process
  • Understanding business strategy, objectives, and challenges
  • The hierarchy of strategy, objectives, processes, analytics, and data
  • Identifying data quality issues through data profiling

Data discovery is the process where an organization obtains an understanding of which data matters the most and identifies challenges with that data. The outcome of data discovery is that the scope of a data quality initiative should be clear and data quality rules can be defined.

This starts with understanding the strategy of your organization, the objectives of key stakeholders, and crucially, what is getting in the way of fulfilling these. It is important to ask stakeholders to talk about this holistically and not to filter their answers, based on what they think might be data quality related. It is very common for issues to appear to have little to do with data, but when an investigation takes place, a link to data quality is uncovered. Clearly, not every problem will have a data quality root cause, but it is important to have the chance to form your own expert opinion.

Once the strategy and objectives are well understood, it is time to review the challenges in achieving these. The challenges themselves should then be linked to the processes, systems, and data that relate to them. See the following for an example:

  • The strategy includes paying suppliers later (on average) to improve working capital management and cash flow.
  • A challenge to that strategy is that many suppliers have a payment term set to “pay immediately”.
  • It would be important to link this challenge to the following:
    • The supplier creation and change process where these suppliers were assigned this payment term (to understand the root cause)
      • The system (for example, the ERP system) where data would need to be profiled, checked against defined data quality rules and then finally corrected
      • The data itself – for example, obtaining an understanding of the table and field that holds the supplier payment term

Once you have this level of specificity, the areas to which data profiling techniques should be applied becomes much clearer. These techniques should lead to the key data quality rules that you need to implement for your organization to improve its data.

The discovery process, end to end, involves the following steps:

Figure 5.1 – The steps of the data discovery process

Understanding business strategy, objectives, and challenges

Section titled “Understanding business strategy, objectives, and challenges”

The biggest mistake that can be made in a data quality initiative is focusing on the wrong data. If you fix data that does not impact a critical business process or drive important decisions, your initiative simply will not make the difference that you want it to. It could lead to the end of your work before it has had the chance to mature. Senior stakeholders have a lot of proposals competing for budget, and it is common for initiatives that do not make the right impact to lose their funding.

Focusing on the wrong data often happens when the person instigating the data quality initiative or sponsoring it has a particular background. One organization I worked with had a new data quality manager with a purchasing background. They came from a large organization with a manufacturing element, where the efficient purchasing of raw materials was make or break in terms of margin. Suppliers were managed really effectively, and associated suppliers were grouped together for spend analysis in order to negotiate better deals.

The manager then joined a services organization, where purchasing was still important, but it was no longer make or break. At that organization, client experience differentiation was the way to succeed in the marketplace, and as such, client data was the priority.

The data quality manager put their initial focus into improving supplier data. The difference they made in that area was exemplary, but it was not well recognized as a success in the organization. There were much more important data quality issues to resolve, such as duplicate client accounts that led to confusing communication when invoicing and trying to collect cash.

This section is about taking the time to understand organizational strategy and objectives in order to make sure the focus of your initiative is right. This starts with identifying the right stakeholders to liaise with.

It can be very challenging to find the right stakeholders to explain an organizational strategy at the right level of depth. Most organizations will communicate their vision and strategy loudly and clearly to their employees. This is a key part of creating a cohesive organization because people can use the strategy as a framework to make decisions (for example, we shouldn’t do this because it doesn’t seem to contribute to any of the strategic pillars).

Objective setting for every employee should ideally be tailored to the strategy. The ultimate goal of this is to ensure that every employee can understand how they individually contribute to the delivery of the strategy so that they feel accountable for successes and motivated to resolve challenges. Organizations that do this can progress delivery of their strategy more rapidly because they can delegate more effectively internally, and decision-making is shared through the hierarchy of people.

Despite this broad understanding of strategy that many organizations strive to give to their employees, finding those who can give greater detail (beyond that which has been broadly communicated) can take time.

I have identified the common approaches to stakeholder identification that worked across the organizations I have supported. These approaches are mentioned in the following table:

ApproachDetail
Consult a central strategy teamMany organizations have a central strategy team that owns the development and communication of the strategy. They may be able to share more detail on the strategy than is available to employees generally, and they can usually point you toward the people from the top down who are accountable for each pillar of a strategy.
Leverage a Data Governance CouncilSome organizations will have a Data Governance Council and a list of data owners or stewards to consult (as mentioned in Chapter 4). It is really valuable to have this because it gives you a clear set of stakeholders to consult with at a range of different hierarchical levels. The stakeholders are usually embedded in most business functions you need to engage with and are predisposed to expect and support data quality-related conversations.
Review the organizational structureThe organizational structure of a company is generally easily available. It can help you to find departmental leadership and try to arrange meetings with key executives. In a smaller organization, it may be possible to start with C-Suite executives (for example, a Chief Financial Officer (CFO) or Chief Operating Officer (COO)). In larger operations, a mid-management level might be more appropriate (titles such as director, VP, and so on). For larger organizations, if you start at a lower level, there will almost certainly be a longer list of people to meet with than you have time for.
Engage other parts of the data and analytics teamOther members of the data and analytics team of your organization can often provide great insight into strategic pillars. For example, the BI/analytics and data science teams will be able to explain the key reports that their stakeholders use, who uses them, and which parts of the organizational strategy they support. This should be a mandatory part of your approach. If you are part of the same wider team, you should glean all the information you can before approaching the stakeholders. If you do not do this, you risk duplication in conversations and frustration from the stakeholders.

Table 5.1 – Common approaches to stakeholder identification

The following section has some examples of applying these approaches from my experience.

One organization that I worked with had a central strategy team, and I asked for their help to better understand a strategic pillar related to supply chain optimization. This pillar was about ensuring the following:

  • Products were manufactured as close to the eventual customer base as possible to reduce logistics cost
  • Production schedules were optimized so that no capacity was wasted
  • Processes were harmonized across the globe

Discussion with the strategy team led to connections with the leader of the supply chain organization and his leaders. These connections were the obvious ones for the strategy team to make because supply chain was the main contributor to this part of the strategy. However, the strategy team also suggested discussions with commercial leadership, who provided input into the planning process to get goods to customers. This process defines which customers need which products, and when.

The strategy team identified additional stakeholders who would be able to help. For example, the team had discussions with the quality team (who would need to change documented processes to support the changes made through the strategic pillar) and the operational excellence team. The input of these teams was critical to the identification of the appropriate data to profile and to the eventual set of rules that we designed. Without the strategy team, it is doubtful that these crucial yet less obvious discussions would have taken place.

In another organization, the central analytics and data science teams were very helpful to the understanding of the strategy and how it linked to datasets.

They explained a report they designed to support the objective of making inventory management more efficient in the organization’s warehouses. The report looked at the rate of inventory turnover (usage) in different locations and contrasted this with the average time it took to load/unload to/from the location. The aim was to look for the inventory that moved quickly but was put into a difficult location (from an access perspective – such as one requiring a cherry picker to reach it). The data lineage of this report (a diagram showing the flow of data, typically available in most business intelligence tools) helped the team to find the datasets that supported inventory and warehousing in general at the organization. The team was then able to link objectives tied to this area of the company (and the challenges they were experiencing in meeting these) to the underlying data.

Note

Data lineage refers to documenting the movement of data from its source through to a report, including the transformations made along the way – for example, the table name in the data source, the extract, transform, and load (ETL) program that moves the data from the source to the data warehouse, and the report that the data is displayed in.

All the conversations described take a lot of time – both yours and also the time of the stakeholders. Sometimes, it can be challenging to get the time that you need from stakeholders.

If you are struggling to get into the diary of a key stakeholder (particularly a senior one such as a C-level executive or senior VP), my recommendation is to do the following:

  • Include in your initial email a meaningful example of a data quality issue that may be occurring in their area and connects clearly to their business strategy and objectives
  • Have the email sent by the most senior person in your department– for example, if you are in a data organization, the email should ideally come from the Chief Data Officer (CDO)
  • Make it clear that this first conversation is to give context and to be signposted to the right people in their leadership team – that is, you do not intend to take up a large amount of their time and need them primarily to direct you to others within their leadership teams

The key to success is to tailor communication to each individual so they can see clearly that they can add value through having the conversation.

Once the stakeholders have been identified, sessions can be arranged, and time can be allocated to prepare the content of the conversations.

In most data quality discovery exercises, there will need to be more than one conversation with each stakeholder. Clearly, these conversations will differ according to the personalities involved. The following sections aim to help you structure each of the conversations to achieve the outcomes required.

The initial conversations should focus on the following:

  • The context and desired outcome of the initiative
  • An overview of the business area from the person you are talking with
  • Relevant strategic pillars and the role of that function in the delivering work that contributes to one or more pillars
  • Current and expected future challenges that could impact the ability to deliver one or more pillars of the strategy

As already mentioned, the conversation should not be restricted to just known data challenges.

In one such conversation, a senior HR leader explained that they were unable to meet their objective to make the annual bonus calculation process more streamlined (reduced from three months to a target of just one month). They explained that the line managers were taking longer than desired to enter bonus proposals for team members. The intention was to replace the system used by line managers to do this to make it easier and more efficient. The stakeholder remarked at the time that this issue was “nothing to do with the data.”

On exploring the issue with the data stewards in HR, it became clear that this was very much a data issue. A high percentage (more than 10%) of line managers had to raise tickets to the HR helpdesk because of data issues that they observed. These issues included the following:

  • Duplicate data (duplicate employee records)
  • Missing mandatory fields for their employees (for example, their hierarchical level)

The system where bonuses were entered showed an error when they tried to submit their bonus recommendations.

The issues became part of the scope of the data quality initiative, and when the data improved, the process speed also improved in line with the ambitious target of one month. There was no need to invest in a new system – simply to improve the data. Had we just asked the stakeholder for the “data issues”, we would not have been informed of and resolved this challenge.

As in this example, following the initial conversations, the challenges outlined by senior leaders must be followed up with operational-level members of the team (such as data producers and data consumers), who are “on the frontline” and use data every day. They are the ones who can help to translate strategic challenges and blockers into either data issues or other issues.

Here is an example of one of these conversations, showing the topic, the typical presentation materials, and the expected outcomes.

Agenda itemPresenterTypical materialsExpected outcomes
Initiative contextDQ leadA high-level plan, explaining phases. Anecdotal evidence of data quality issues. An example data quality profile/scorecard (showing the end product they might receive).The stakeholder understands the purpose of the discovery phase in an overall project context.
An overview of the business areaBusiness stakeholderAn overview of the responsibilities of each element of their organization and the key priorities of the function.The DQ team understands how this part of the organization fits into the overall picture. Identification of additional stakeholders to speak with.
The role of the function that the stakeholder owns in delivering strategic pillarsBusiness stakeholderOrganizational strategy slides, highlighting those that carry the most relevance for the stakeholder’s function and the objectives that tie to them.The DQ team understands key priorities for the stakeholder’s area.
Function KPIsBusiness stakeholderDefinitions of key performance indicators and how they tie into the relevant strategic pillars.The DQ team understands empirically where the function achieves its objectives and where it is struggling to deliver due to challenges.
Challenges in pillar deliveryBusiness stakeholderArticulates a list of current challenges, both short-term and long-term, to delivering a strategy. Identifies those in their team currently managing those challenges.The DQ team understands the key challenges of the team and who to explore them further with.

Table 5.2 – The typical agenda and outcomes for the first stakeholder meeting

The last section (challenges in pillar delivery) is very important, and the next stage is to translate the list of challenges into a list of possible data quality implications to explore with the stakeholders.

Here is an example list of challenges from the initial conversations and what the data quality team might look to do with them. The list is based on a manufacturing team:

ChallengeQuestionsPossible data quality implications
Unpredictable demand leads to unused capacity in manufacturing plants.Why is demand unpredictable? What data would be required to make the demand more predictable? Which team is responsible for predicting demand? Is demand managed at a local level (for example, European demand in a European manufacturing plant, or US demand in a US plant)? If the data was available, could it be managed globally? Are there specific product lines where demand is less predictable?Commercial sales forecasts may be incomplete or disconnected from the manufacturing data (for example, held in a file rather than a data platform). Data may be siloed so that global demand is not easily understood. Data may be incomplete or duplicated in one region. Particular product lines might lack reliable sales forecast data.
Quality control picks up manufacturing issues too late. A product is completed but then must be scrapped, causing increased costs.Do quality control activities take place throughout the manufacturing process? Where is the data for these checks recorded?Assuming quality control checks take place throughout the process, an issue with the data might prevent it from being available on a timely basis. Perhaps teams have to clean the quality control data before it can be used.
Raw material costs are excessively high and are impacting the profit margin.What is driving increased materials costs? Are costs increasing for the whole industry or is the effect more pronounced for our organization? Who are the suppliers of the raw materials? Which purchasing teams are responsible for the procurement activities?Supplier spend aggregation may be adversely affected by missing supplier hierarchy data. In other words, the organization may not realize it is spending a large amount with a single supplier group. Realizing this through improved data can lead to a stronger negotiation position and lower prices.

Table 5.3 – Sample questions and possible data quality implications of challenges

Many of these questions and data implications will not lead to anything useful. At this stage, it is important to be expansive in your thinking because many of these will be dead ends. Even if only 10% of the implications you identify are found to be valid data quality issues, it is likely that you will uncover enough to proceed with the next phase of activity.

The detailed conversations will involve exploring each of the questions and looking to prove or disprove the possible data quality implications identified from the initial conversations.

The detailed conversations will usually be with people at least one level down in the hierarchy from the stakeholder in the initial conversation. The conversation should cover the following:

Agenda itemPresenterTypical materialsExpected outcomes
Initiative contextDQ leadAs before, but also an outline of the initial stakeholder input, and a list of challenges, questions, and data quality implications.The stakeholder understands the purpose of the discovery phase and the view of their leadership team.
Their role and challengesBusiness stakeholderAn overview of what they and their team do. An outline of the challenges as they see them.Validation of the challenge articulated by their leader. New challenges they would like to add.
Detailed exploration of challengesBusiness stakeholder, supported by the data quality team and system subject matter expertsA review of the challenge and the work done so far to overcome it.Categorization of a challenge as data quality-related or not data quality-related. An understanding of the processes, systems and data involved in the challenge. An understanding of any new system changes or implementation work aimed at resolving the challenge.

Table 5.4 – Agenda and outcomes for detailed conversations

Once senior stakeholders have been consulted, it is important to identify a selection of people at lower levels of the organization and present the findings so far to them. Those who actually manage the impacts of the data day to day may give a reality check. They may identify a series of issues that have not yet been discussed, or they may identify misunderstandings in the issues identified so far. Sometimes, leaders do not have a realistic view of what is really going on at an operational level (usually, this suggests an issue with the organizational culture, which I will come back to as part of Chapter 9 in the Requirements for success section) and this is a sensible precaution to identify these situations.

Finally, it is important at this early stage to start engaging with IT application leaders and system owners. This is for two reasons:

  • The discovery phase may require system-specific knowledge from their teams
  • Long-term correction of data quality issues may drive change to source systems – for example, where data validation can be added to a data capture form to present errors occurring in the first instance

As outlined so far in this section, the process of identifying and engaging with stakeholders can become complex and time-consuming. In some organizations, stakeholders want formal documentation of who is consulted and the role that they play.

In these cases, I would recommend two possible templates. A stakeholder map could be prepared to plot stakeholders against two variables – their level of interest and their level of influence. This would be used to identify stakeholders who must be managed most closely. To understand in more depth who is required to contribute time, an alternative to this would be to create a RACI matrix, documenting which roles are involved and their level of responsibility (Responsible, Accountable, Consulted, or Informed).

The outcomes of all the conversations so far are usually sufficiently detailed that you can start to act. A conversation may have identified a particular system of record that is tied to a challenge. You could start to explore the data in that system and try to identify data quality gaps.

Many data quality professionals will jump to action at this stage, but my recommendation is to pause and review your findings to ensure that your scope is carefully selected to focus on the issues that will drive the most value in the organization. The next section will talk about how to do that.

The hierarchy of strategy, objectives, processes, analytics, and data

Section titled “The hierarchy of strategy, objectives, processes, analytics, and data”

If you have followed the process outlined in the Understanding strategy, objectives, and challenges section, you should have at this point a list of data quality-related challenges, as well as an idea of the systems and data involved in the challenge. It is likely at this stage that you identified more potential challenges than you can prioritize at this time.

The next step in the process is to review these holistically and select where to put your focus.

Having gathered data quality challenges that impact various pillars of a strategy, it is time to take stock. This may involve going back to the strategy team to present your findings.

The following diagram illustrates the typical outcomes of the early discovery meetings.

Figure 5.2 – Strategic pillars by the number of rules and complexity

There is often a particular strategic pillar where a significant number of data challenges are identified. This might be because this particular pillar is highly data-driven, or because the stakeholders in that area are particularly data-literate.

The complexity of implementation work refers to the level of effort that it might take to deliver data quality rules for a particular pillar. The complexity can be high for a number of reasons, including the following:

  • The number of systems that the data spans (for example, data about the organization’s staff may be spread across Workday, SAP Concur, SAP SuccessFactors, etc.)
  • The complexity of the data quality rules that might be required
  • A perceived lack of clarity from stakeholders that may require deeper investigation work
  • Different parts of the organization operating in different ways, which would require separate data quality rules

If looking at Figure 5*.2* in isolation, it appears obvious that Pillar 3 and Pillar 5 would be prioritized. There is a lot to do, but the complexity of each issue is low, so the progress would be fast.

However, we need to bring another view to this analysis. It is highly likely that one element of the strategy brings greater benefit than another if fully delivered. It is also likely that there are dependencies between strategic pillars.

For example, Pillar 1 may only have two data quality challenges, but it may be the fundamental strategic pillar upon which all the others depend. One organization I worked with had an aging product for which margins were eroding and sales quantities were falling. They had a new competitive and differentiated product ready for release, and this was the key pillar of their strategy at the time of the data quality initiative. The other pillars include enhancing their commercial operation with new systems, new teams, and new processes. The commercial pillar was worth very little without a successful new product launch. Therefore, all the initial data quality work was to support the new product launch. There were tangential benefits for the commercial pillar anyway because part of the work involved customer data cleansing.

One challenge arising from this approach is that one or more pillars may be eliminated from the early scope of the data quality initiative. They may have put a substantial effort into the discovery phase before seeing their requirements de-scoped.

It is very important to manage expectations on this in the discovery meetings. It should form part of the initial context provided in the meetings. Additionally, the outcomes of the strategy conversations should be presented to all the stakeholders engaged in the discovery phase, and scoping decisions should be discussed and approved by everyone.

Once the meetings have helped to refine the list of challenges to focus on, it is time to research each of the issues in detail and link them to the underlying business processes, data, and reporting.

Linking challenges to processes, data, and reporting

Section titled “Linking challenges to processes, data, and reporting”

In order to properly understand the data quality challenge and how it impacts an organization, you must deep dive into each of the issues that are going to be in scope.

Typically, each challenge will warrant its own meeting or even several meetings. Ideally, these should be condensed into a relatively short period of time, to maintain stakeholder interest and keep the focus appropriately tight. Usually, representation will be needed from multiple functions and locations. Different functions will often have a different viewpoint, and sometimes even a conflicting view. These can actually be very challenging conversations. In one organization, separate meetings with the finance and procurement teams identified that each function felt the other was “to blame” for the data quality issues. The data quality team needed to broker a discussion between the two functions, where the facts were carefully analyzed and shared issues were identified. This is a relatively regular occurrence because data quality teams are very cross-functional in nature, whereas other functions (such as those in the preceding example) can sometimes focus only on their area – even if this is not best for the organization.

This is a particularly problematic area because data objects often have shared components. For example, supplier data can be considered to belong to procurement, but procurement only manages supplier selection, onboarding, and purchasing. It does not manage payments, which are the purview of finance. Finance relies on the procurement team to collect the bank details of the supplier, but procurement does not need this data to perform its primary role. Arguments can be made for either procurement or finance to own the supplier bank details, but in reality, cooperation is needed for the good of the organization as a whole, rather than success for procurement or finance. Procurement will not be successful if the organization gets a reputation for being poor at payment.

In these meetings, for each issue, the following information needs to be ascertained:

InformationRelevanceExample
Impacted end-to-end processesAn understanding of whether the challenge affects one process or many.Procure to pay.
Which teams are involved in that process?Identifies which teams need to be consulted or are impacted by the data quality challenge.Procurement. Finance.
Which step(s) in the process is/are impacted?Allows the data quality team to focus on a particular step or steps. The focus would then be on the input, output, systems, and activities involved in that step.A supplier invoice posting against a purchase order. Supplier spend analysis and negotiation.
What would improve if the data quality challenge was resolved?Understanding in more depth the impact of the issue.Supplier invoices could be posted more rapidly. Supplier spend could be properly measured and negotiations would be improved.
What workaround(s) is/are being applied today because of the issue?Understanding in more depth the impact of the issue.Suppliers are manually consolidated in a spreadsheet on a weekly basis. Suppliers are also consolidated manually in the data warehouse by the data engineering team.
Which systems are involved in the process?Data quality issues have to be resolved in the systems of record. Understanding the systems involved helps you to identify system owners. The system owners will need to provide access to the system so that the data quality tool can assess the data.SAP Ariba
Which tables and fields are involved?If table/field level information can be provided at this stage, it makes the data profiling step much more specific.SAP – an LFA1 table.
Which subsets of data are affected?Allows the data profiling checks performed on the data to be more specific.Only suppliers in the raw materials group
The source of the dataWhen the data needs to be corrected, where does it come from? Does it come directly from a business partner (for example, a supplier) or an external source?Completed supplier registration form.
How can we identify which data is active?Data quality checks are only valuable if they are against actively used data. Take for instance a data quality report showing that 1,000 records checked and there were 800 failures, this will only be of value if most of those 800 failed records are actively used. If, for example, only 300 of the records were actually in use, the report will show a large number of irrelevant failures and the stakeholder will not get value from the data.Active suppliers are determined by the following: - The purchase order in the last 12 months - Open invoices unpaid or Purchase Orders unused - Whether they were created in the last six months
Is data duplication an issue? If so, how can duplicates be identified?Duplication is a very specific type of data quality issue that typically requires a different approach, where different resources and costs may come into scope.Duplication is an issue. Duplicate suppliers can be identified when the following details are the same: - DUNS number - Tax number - Address - Email address

Table 5.5 – Information required for each identified data quality challenge

The best-case scenario after a series of these meetings is that you will have a very specific dataset to investigate. With the information from the example column in Table 4.5, you will be able to connect to SAP and find the LFA1 table, filter it only for a specific material group, and profile that dataset.

The profile would then identify some potential data quality issues at the field level, which might lead to initial data quality rules.

For example, the profile might show that the DUNS number field is only 15% complete, and that the tax number field is only unique for 60% of the suppliers. This would imply two problems:

  • There are many different supplier records that share the tax number, with at least 1 other supplier record. The implication of this is the following:
    • A finance person would need to choose one record to post an invoice against – sometimes, invoices would be posted to one account, and sometimes, they would be posted to another account
      • This would lead to a fragmented accounts payable list and no easy single source of truth for how much the company owes to the supplier
      • There is also the risk that the invoices on one account are settled on time but the invoices on another account are not settled on time, leading to supply issues
  • The poor completeness of the DUNS number field would make it difficult to understand which suppliers are actually part of the same group. Imagine 10 suppliers, which in reality are all part of a group of companies. The total spend across the group might be 10m,whichmighttriggerasignificantdiscount.IftheorganizationdoesnotconnectthesesupplierstogetheraspartofasinglegroupusingtheDUNSnumber,thennegotiationsmightonlyidentifythespendagainstasinglesupplier–forexample,10 m, which might trigger a significant discount. If the organization does not connect these suppliers together as part of a single group using the DUNS number, then negotiations might only identify the spend against a single supplier – for example, 1m. This would be subject to a much smaller discount.

In Chapter 6, we will discuss how to use results like these from profiles and turn them into data quality rules that can be used to monitor and improve data quality.

Obviously, in any aspect of work, the best-case scenario is not always the outcome. Many of these discussions do not dive into the specifics of tables and fields. These discussions are with people in business roles (rather than data roles), and often, they do not discuss this kind of technical detail. This implies that there will often be another step in the process. The initial conversations may not produce suggestions of tables and fields to review in a system, but they will certainly be able to provide the names of the systems used and the forms that are completed in their processes. Usually, the next discussion will be with teams such as the following:

  • System center of excellence: Most applications will have a center of excellence team who are responsible for the roadmap of a system and own the implementation of the business process in the system. For example, in one organization, there was a business systems team, with a SAP center of excellence. That center of excellence team was able to take the information provided by the business – the process step, the completed form, and so on – and translate it into relevant tables, fields, and filters.
  • Operational excellence or process governance: Some organizations have teams who have a specific role to manage a wide set of business process designs. They may use tools such as ARIS (a popular business process mapping and documentation tool) to document process steps and understand the underlying data used in those processes.
  • Analytics teams: In many organizations, the analytics teams have a strong understanding of the data dictionary in various systems of record. If a business person is talking about supplier data and purchase order data, the analytics teams (particularly the data engineers) will often know what that means in terms of tables and fields.
  • Colleagues in data governance: More mature organizations may have implemented a metadata solution. Metadata solutions help to translate business concepts into underlying system tables and fields. For example, the business may define a “supplier group” field as a concept. The metadata solution may record that in SAP, the supplier group information is actually captured in the “material group” field on the supplier purchasing data table. In other words, the material group field is used for a purpose other than the one for which it was intended.

Before finally moving on to the data profiling process, it is important to spend some time thinking about the impact of the identified data quality challenges on reporting. This is important because, in the process so far, we have mainly considered the impact of data issues on business process effectiveness. Some data issues will not impact business processes at all. They will only impact the ability of an organization to make important decisions.

These decision-making challenges should hopefully have arisen through the process detailed in Figure 5*.1* already, but it is worth spending time with the reporting team to ensure that nothing major has been missed.

Specifically, it is important to talk about the following:

  • Manual workarounds, which are managed by reporting and analytics teams to handle gaps in data. These can cause major inefficiencies in an organization and can make data very latent. The workaround can take so long to implement each period that the data is very out of date by the time it reaches the report stage. Manual workarounds are inherently risky because human error becomes a variable. A mistake in manual data manipulation can completely skew the outcome of reports.
  • Any reporting requirements that could not be delivered because the data is simply not available or accurate enough.
  • Reporting requirements that are delivered later than necessary for internal customers because of a high level of manual effort needed from busy team members.

Often, the manual workarounds list is very long and seriously impacts the ability of the reporting and analytics teams to be effective. One organization I worked with had made many attempts to create a single source of truth for their customer master data. This led to four different live repositories of customer data because not enough was done to decommission the older repositories before implementing a new one. There were overlaps of customers, and data was different across different sources. The analytics team had to decide which version of the customer to include in data warehouse tables, and where there were conflicts, they had to consult the customer services team. Another organization introduced a full-time data quality role into a data platform team of four, simply to correct data issues before they could negatively impact reporting each month.

These issues need to be surfaced so that they can be considered when prioritizing which data quality issues to tackle first.

Once all the different meetings have been conducted and there is a single agreed list of data quality priorities, it is time to start the technical activity of data profiling in order to start identifying the rules that data must be compliant with – that is, defining what good data looks like.

Data profiling assesses a set of data and provides information on the values, the length of strings, the level of completeness, and the distribution patterns of each column. For example, for both values and string lengths, the minimum, maximum, mean, and median are provided to help identify outliers.

Most of you will have some experience in data profiling – even if you have not heard the term before. The first task that many people perform when looking at an unfamiliar set of data is to open it in a spreadsheet tool and apply a filter (the autofilter feature in Microsoft Excel, for example) to all the columns. They will check all values in each column, looking to see whether the column contains a couple of values that all the rows are associated with, or whether there are many. People look to see whether the data is a number, a date, text, and so on. It’s quite common to look for the smallest and largest values. Even this basic action is an example of data profiling.

As an example, consider a spreadsheet containing a list of invoice postings against different customer accounts. If you place a filter on the amount column, you might expect to see only positive values. You might be surprised to see negative values, and you might see that another column contains “INV” for the positive values and “CRN” for the negative values. It is highly likely that the positive values are invoice postings and the negative values are credit notes, issued when a customer complains about a product not arriving, for example. By profiling the data, you might realize for the first time that the spreadsheet contains both invoices and credit notes, and you might ask a colleague to filter out the credit notes in the future, depending on the business need.

Data profiling in a data quality initiative is simply a more powerful version of this kind of analysis, often using tools that are specifically designed for this purpose.

There are a number of tools available in the marketplace specifically to help organizations manage data quality. All of these will have data profiling capabilities. The typical tools used in the marketplace are as follows:

  • Informatica Data Quality, Informatica Intelligent Data Management Cloud, and Informatica Data as a Service
  • Ataccama ONE Data Quality Suite
  • IBM Watson Knowledge Catalog, IBM InfoSphere Quality Stage, IBM Match 360, and IBM InfoSphere Information Server
  • SAP Information Steward, SAP Data Services, and SAP Data Intelligence Cloud
  • Talend Data Fabric and Talend Data Catalog

I have knowledge of all the various tools from considering them in selection processes, but I only have specific experience implementing Informatica and SAP solutions.

I do not intend to focus on the capabilities of a particular tool. They all have their strengths and weaknesses, and I am not promoting one over the other. The decision will often depend on the organization buying the tool to some extent. For example, an organization implemented SAP, many of the systems holding key data were also from SAP, as well as their other data and analytics tools. For example, SAP Information Steward might be a good choice when an organization uses SAP ERP systems, SAP CRM systems, and SAP Master Data Governance for master data management processes.

The following section provides a guide to the basic capabilities that all data quality tools share when data profiling.

This section will explain in depth what a typical data profiling tool actually does and how to read the results.

Data profiling tools typically provide information on a whole dataset, covering the following:

  • String evaluation: For each column, this is the minimum, maximum, mean, and median string lengths. For example, if a “title” field was being profiled for customer data, you would expect to see a minimum value of 2 (for Mr, Ms, or Dr) and a maximum value of 9 (for “Professor”).
  • Field value evaluation: For each column, this is the minimum, maximum, mean, and median field values. For example, for a numerical field such as “Order Value” on a sales order table for a company that has made 1,000 sales so far, the minimum might be “0000000001” and the maximum might be “0000001000”.
  • Pattern matching: For each column, the tool provides an analysis of the patterns of data within the field in terms of data types. For example, a postal code field for the UK might have the pattern XX11 1XX (where X = an alpha value and 1 = a numeric value). You would also see patterns such as XX1X 1XX for Central London postcodes. The number of records against each pattern is provided, along with the number of records that are null or blank.
  • Completeness: For every column, the tool will provide the number of records that are blank, the number of records that are null, and the number of records that are zero.

Null, blank, and zero are technically different. Null means that there is no value in the field at all. Blank applies to text fields, and it means that a user has deliberately selected blank – for example, perhaps a user is asked their age and told, “If you are not willing to provide this, leave it blank.” Zero is the numerical equivalent of this. For example, where a company is dormant and the revenue for that year is zero, this is clearly different from null (where the revenue has not been entered at all yet).

  • Distinct: For every column, the tool will provide the number of values that have at least one record associated with them. For example, a customer dataset with an age column in it with ranges 0–15, 16–30, 31–45, 45–60, and 60+ would return a distinct value of 5, as long as there was a customer registered in each of these different age ranges. If there were no customers aged 0–15, then the distinct count would be 4.
  • Uniqueness: For every column, the tool will provide the number of values where there is only one record associated with it. For example, with the aforementioned customer dataset, if there is only one child customer (aged 10) and one customer over 60, but every other range has many different customers, then the uniqueness value for this column would be 2/5, or 40%.

It is important to say that it is possible to leverage many of the techniques described in this chapter without buying a data quality tool. It may take longer and cost more in people costs, but you can at least make progress and start to bring your organization on the journey with you. To give a simple example of this, a very commonly used data visualization tool (Microsoft Power BI) provides some great data profiling capabilities. Power BI is already embedded in many organizations, and the part of the application that provides these capabilities (Power BI Desktop) is available without license costs anyway.

When you connect to data in Power BI, you can use the View menu to see three options:

  • Column quality
  • Column profile
  • Column distribution

Column quality provides an indication of whether the data in the column matches the expected data type and is complete. For example, it will note any text values in a numerical column as errors.

Figure 5.3 – The Power BI Column quality capability

Column profile provides a view of the uniqueness of the data and the distribution of the data across the different values.

Figure 5.4 – The Power BI Column profile capability

Finally, Column distribution provides a view of the value distribution for all the columns at the same time.

Figure 5.5 – The Power BI Column distribution capability

These capabilities can be applied to the entire dataset instead of the default 1,000 rows, as follows:

Figure 5.6 – The setting in Power BI to profile the entire dataset

Clearly, these capabilities are not a full replacement for a data quality tool, and they are not intended to be. However, they are certainly helpful in getting started and making the case for a data quality tool.

Once this case has been made and the data profiling capability is available, it is time to run profiles and use the capabilities to learn about data.

When I get data profiling results back from our data quality tool, what am I looking for? This section is intended to answer this question with as many practical examples as possible.

The idea of string evaluation is to identify where your data does not fit an expected pattern. Your expectation when looking at string length for a column might be that every record has a certain string length. For example, if you were looking at supplier VAT numbers in the UK, there is only one valid string length – 11 characters (UK VAT numbers have the GB123456789 format (two alpha and nine numerical characters)). The mean and median can give you a sense of whether most of the data matches an expected string length or not. For example, a mean of 13 with a maximum of 14 would suggest many records are 14 characters in length.

In a profile, it is very common to find in a column such as this that the minimum string length value is 9 and the maximum is 14. At first glance, it would appear that the profile has immediately uncovered bad data in this case. It would be tempting to simply delete these values from the dataset because they are wrong. However, consider this additional information:

  • 5% of records have a string length of 9 – one procurement team has dropped the use of “GB” because all UK records are known to have “GB” at the start.
  • 10% of records have a string length of 14 – all procurement teams enter “Not Registered” for suppliers that are too small to register for VAT.
  • 1% of records have a string length of either 10, 12, or 13. These appear to be the result of poor data entry.
  • The remaining 84% of records have a string length of 11.

In this example, it may be appropriate to remove all the records with a length of 10, 12, or 13. It would definitely not be appropriate to remove the records with a string length of 9. These are potentially correct VAT numbers, which simply need GB added to them. In fact, you could decide to remove GB from 84% of the correct records if that is faster for the procurement teams, and it still results in a full VAT number being printed on correspondence with the supplier and tax authorities if the correspondence is set up correctly.

Finally, the 10% of records with a string length of 14 could all be correct and appropriate.

From this, we can derive a data quality rule like this:

  • For a VAT number string length, check the following:
    • The length should be 11 or 14 characters
      • For a string length of 11, the format must be GB111111111 (where each 1 represents any number between 1 and 9)
      • For a string length of 14, the value should be “Not Registered”

Pattern evaluation can provide us with even more intelligence about our data. We assumed earlier that all records with a string length of 11 or 14 are potentially correct. The pattern may show us otherwise. For example, for records with 11 characters, we might find the following:

  • 86% have the AA111111111 pattern, which is correct
  • 10% have the 11111111111 pattern, which is not correct
  • 2% have the A11111111AA pattern, which is not correct
  • 2% have the 111111111A1 pattern, which is not correct

For records with 14 characters, we might find something very similar:

  • 90% have the XXX XXXXXXXXXX pattern, which is correct
  • 10% have the 11111111111111 pattern, which is not correct

This can help us to make our data quality rule more specific. The rule can be coded to fail all records with an incorrect pattern and to accept all the correct patterns. For particularly urgent rules, we could proceed immediately to correct the data – for example, if we know that this causes issues with the tax authority on our VAT returns. Chapter 4 outlined the need for an early remediation workstream. This is an example of where data profiling can lead to immediate work for a workstream like this well before the official remediation phase has been reached.

The specificity of the profile is also very important. The profile for this column is really only valuable when it is filtered just to suppliers based in the UK. If we had run this profile for a global dataset, we would not be able to identify a single pattern that we would expect in terms of string length. For example, in South Africa, the VAT number format is a 10-digit number, always starting with a 4.

Pattern matching is very valuable when looking at the larger quantities of data that are typically found in “fact” tables. There are other techniques that are more suitable to analyze columns within “dimension” tables. Field value profiling is one of these techniques.

Field value profiling helps us to understand the “extremities” of the values found in a column. As mentioned previously, it is a little less useful than string length and pattern matching to examine “fact” tables. This is because only looking at the “extremities” of data values in large datasets often doesn’t tell you much. Having said this, there is still value in using this element of the profile, as the following examples will show.

Note – facts and dimensions

Facts are the large tables of data that you want to analyze – for example, sales orders and their amounts. Dimensions are usually much smaller tables and are the information you want to “slice and dice” the data by. Examples of dimensions are countries, organizational units, and sales channels. You might want to report on the total value of sales orders (fact) by country and sales channel (dimensions).

The dataset used here is a list of all the road traffic accidents in the UK between 2005 and 2010. It contains information about the location and nature of each accident, as well as the weather at the time of the accident.

In this dataset, the number of the road that the accident occurred on is captured. In the UK, roads are typically numbered with an M (motorway), A (major road), or a B (minor road). From the field values, we can immediately notice some issues in the road number column. The following screenshot is from the Attacama DQ Analyzer tool, which is available for free via this link: https://www.ataccama.com/download/dq-analyzer:

Figure 5.7 – A profile of UK road numbers in Accident Data (UK Accident Data is from Kaggle (https://www.kaggle.com/datasets/tsiaras/uk-road-safety-accidents-and-vehicles) and was curated from publicly available information by Thanos Tsiaras)

From the preceding screenshot, we can see the following:

  • The minimum value is 0, and the maximum value is 9,999. Neither of these values is a real road number in the UK.
  • When looking at the frequency of these values occurring, we can see that 0 is a very common selection and that there are some null values:

Figure 5.8 – Frequency Analysis of the road number data

  • The 0 value is assigned to 27% of the dataset, which implies that it probably has some meaning – for example, to signify a road with no number, such as a small residential road.

Immediately, this analysis gives us some questions to ask the people who know this dataset the best. The obvious next step would be to connect to an external data source with a correct list of UK road numbers, comparing the data in this dataset to it and identifying records in the dataset that do not appear in the external data source. For example, Wikipedia has a list of all UK A roads (https://en.wikipedia.org/wiki/A_roads_in_Zone_1_of_the_Great_Britain_numbering_scheme). However, as stated earlier, there is probably some meaning to the 0 value, and this may need to be taken into account.

Often in these situations, there will be a way to correlate two fields to get a better data quality result. For example, if there is a field in our accident data that tells us about the road in more detail, then it can be correlated with the road number.

The road types are as follows:

  • Motorway/dual carriageway
  • Main through road
  • Side road/lane
  • Residential cul-de-sac
  • Industrial unit roadway
  • Private land

Here is an example to further explain the road referencing nomenclature:

  • An “A” road would have to be a “dual carriageway” or a “main through road”
  • A “B” road would have to be a “side road/lane”
  • A road with a “0” in the road number might be a “residential cul-de-sac,” an “industrial unit roadway,” or “private land”

Using this “mapping” will enable us to create a data quality rule to identify where “0” has been used in the road number, but the road type indicates that we should have captured a proper number.

The most basic data profiling check is the completeness check. From our road traffic data, we can look at the Weather Conditions field. This is used to capture the weather at the time of the accident.

We can see from the basic analysis that there are 20,699 rows that are “null” – nearly 2% of the data.

However, when looking at the frequency analysis, there are other values that we might consider to be incomplete as well.

For example, “Other” does not provide any useful details about the weather. Beyond the main values, we can also see nonsense values, which appear to be times (for example, 17:00). For a full completeness check, we can add up all the rows of data that are not in one of the useful values (the ones that are not highlighted in the following figure). Other fields in the dataset indicate that it would be possible to document the weather data – for example, there is a road conditions field where there are values such as “wet” or “damp.”

Figure 5.9 – Value frequency analysis of the road traffic data weather column

A data profiling outcome such as this one might lead to a rule such as the following:

  • A weather column must be one of the following values:
    • Fine with no high winds
      • Fine + high winds
      • Raining with no high winds
      • Raining + high winds
      • Snowing with no high winds
      • Snowing + high winds
      • Fog or mist
      • None

In this case, None is likely to indicate that there were no notable weather conditions affecting the likelihood of traffic accidents – this is different from “other.”

Another key point is that completeness checks are only really useful when filtered to a subset of the data. Returning to the VAT number example from earlier, it is not really appropriate to apply the same expectation of VAT number completeness to large organizations as it is to small/medium and micro-sized entities (for example, small single-owner limited companies). For the population of small/medium entities and large entities, you might expect the VAT number field to be 90% or more complete. All these organizations will very likely be registered for VAT because it is usually better for them financially. For micro-sized organizations, the completeness level is more likely to be around 50%. Some of these entities will benefit from VAT registration, and some will not so not all will register.

Therefore, it makes sense to run the profile twice – once for the micro-entities and again for all other entities.

These are included in a single section because, typically, they are dealt with together.

There is a field in the road traffic accident dataset that contains the location of the accident, using a system called Lower Layer Super Output Areas (LSOA). The LSOA system is explained on the Census methodology page: https://www.ons.gov.uk/methodology/geography/ukgeographies/censusgeographies/census2021geographies#lower-layer-super-output-areas-lsoas. The LSOA is a code with the “E11111111” format. It always starts with “E” and then has eight numbers. It represents a relatively small geographic area. Our unique and distinct numbers in the profile provide some insight into the data:

Figure 5.10 – Unique/distinct numbers for the LSOA column

From this analysis, we can see that there are 2,001 of these areas (the unique value) where only one accident happened during the period that the data spans. There are 38,516 (distinct) different LSOAs that experienced at least one accident. Most of these were Non-unique, meaning that they experienced two or more accidents during the period that the data spans.

This seems logically quite sensible and does not immediately imply a data quality rule.

However, when looking at the “Accident_Index” column, we can see clear problems. The “Accident_Index” should be a unique reference number that can be used to count the number of accidents in different areas. Each accident should have its own unique “Accident_Index”.

Figure 5.11 – Unique/distinct numbers for the Accident_Index column

This analysis does suggest a problem. There are a large number of duplicate values (nearly 36%). The duplicates are distributed across a small number of the actual values (349 of them). We can see this in the frequency analysis:

Figure 5.12 – Frequency analysis on the Accident Index column

We can see that there are some values in the index column that have more than 7,000 rows of data associated with them. When reviewing the many rows of data for the first index on the list, it is possible to see that not every column of data is the same. For example, there are different road IDs and different locations for the different rows, even though the accident reference is the same. Essentially, the data tells us that the same accident occurred in many different locations!

This indicates a significant issue with the data quality of the index column. It appears that the same index value has been written to distinctly different records by mistake.

Usually in this kind of situation, there would be a need to return to the source data to find out the root cause and potentially re-profile the data.

From the various examples, I hope that you can see how valuable a data profiling exercise can be. It is a great way to encourage discussion about what the data actually looks like, compared to how we want it to look.

Having explained the benefits of profiling, the remainder of the chapter explains how to approach connecting a data profiling tool to the systems which contain the data.

A significant part of the challenge when profiling data is connecting to it. In the preceding examples, an Excel file was uploaded to the Attacama data profiling tool. This tool (and the others mentioned earlier in the chapter) can also be connected directly to databases.

The advantages of connecting to a database

Section titled “The advantages of connecting to a database”

It is usually better to connect to a database. This is simply because you have the control to quickly and easily re-profile data with different parameters once you have established a connection to the data.

For example, if your first profile analysis suggests that you actually need to split data geographically and run one profile per continent, you can do this quickly and easily. If you need to obtain another file extract of data (or many file extracts), this can depend on another team and may take time.

Another aspect is that it is good to be as close to the source of data as possible to avoid any changes in it being made by extraction, transform, and load programs. For example, I have been asked in the past to connect to data via an API for data profiling. While this is very efficient, in those cases, the API already contained an element of data transformation, which meant that our profiling didn’t reflect the reality of the database data that needed to be improved.

Finally, getting a connection to a database in place is going to be necessary for the full data quality initiative when you start to create and monitor data against rules, so getting this done now is a positive step forward.

Before connecting to a database, it is important to take into account the considerations explained in the following section.

If you are connecting to a database, it is important to consider the following:

  • Will the owner of the database provide permission to connect to it?
  • What impact (if any) will the data profiling have on the performance of the database? Will there be any impact on the other activities required from the database?
  • Does the database contain data that it is appropriate for you to have access to? Are there any data privacy considerations?

The owner of the database can usually provide answers to these questions. In some data quality initiatives, it was agreed to create an ETL program to extract data (usually outside of business hours) for profiling to a dedicated database for analytical processing (an Online Analytical Processing (OLAP) database). This separated the potential performance implications of data profiling work from the database that contains live data.

Sometimes, connecting to the database can take longer than you have time for in the discovery phase. It is important to identify non-live systems (for example, test systems) to connect to because user access to these is usually subject to lower levels of governance. However, the data in the test system must be representative of the live system.

There can be multiple approvals required to get a connection in place. In these situations, it may be appropriate to extract a file of data, and in cases where you have access to do this within your team, it may be the fastest way to progress. If you do use file extracts, it is important to discuss this with data security teams before proceeding.

The early part of this chapter outlined how to properly understand the business strategy of a business. If this element goes well and has the right support, an organization will feel that the data quality initiative truly understands the priorities of the business. This breeds confidence that the work done on data quality will be focused on the right aspects.

The chapter also outlined how to use the information from this discovery phase to properly research the root cause of challenges that impact the strategy. It also outlined how to link these challenges to processes, analytics, and data.

All of this has informed which data to profile. The chapter covered the main outputs that profiling provides and the potential data quality rules it can generate. This is likely to have revealed some surprises about data, even to those who use it every day. The maturity of the data conversation has now reached the point where data quality rules can be fully developed.

Following the data quality improvement cycle to this point has prepared you to start identifying rules, refining them, and getting them ready for implementation. This is the subject of the next chapter.