What is data mapping?

Data mapping is the process of identifying and linking data fields from source systems to a destination database — the foundation of any analytics, BI, or data integration pipeline.

Navy background with teal arc and dot grid
IN THIS ARTICLE
Request a Demo

Key Takeaways

Data mapping is the process of extracting data fields from one or more sources or databases, identifying them, and mapping them to target fields in a destination database. Data mapping is widely used in analytics, business intelligence and data science applications to gather and organize data so that it can be easily queried.

Why data mapping matters

To obtain actionable insights from data, analysts typically need to gather and aggregate information from multiple sources. For example, having a customer's contact and demographic information can be helpful — but suppose you can combine that information with details such as prior purchases, browsing activity and chat sessions with a customer service representative. You can understand the customer much better with access to more complete information. This puts you in a better position to mount effective marketing campaigns that will capture their interest, strengthen the relationship, and increase future sales.

Data mapping is what makes that combination possible. Without a clear definition of which field in one system corresponds to which field in another, data from different sources can't be reliably joined, compared, or rolled up.

How data mapping works

While tools and methods vary, most data mapping efforts follow a similar sequence:

  1. Identify sources and targets. Determine which systems hold the data and where it needs to land — for example, an ERP and a CRM feeding a data warehouse.
  2. Profile the source data. Examine field names, data types, formats, and value ranges to understand what each field actually contains.
  3. Match fields. Link each source field to its corresponding target field, such as mapping cust_no in one system and customer_id in another to a single customer_key.
  4. Define transformation rules. Specify how values must change along the way — converting formats, translating codes, or combining fields.
  5. Test and validate. Run sample data through the mapping and confirm the results.
  6. Maintain the mapping. Update it as source systems, schemas, or business requirements change.

Define your data

The first challenge that data engineers often face when gathering and mapping data is making sense of it. Source field data formats and encodings can vary widely. For example, the same date might be represented as "2022-01-23", "Jan 23, 2022" or in timestamp format as "1642896000". Also, data can be represented using different character encodings, be inconsistent, imprecise or have missing or duplicated values. When mapping data from a source to a destination, data engineers frequently need to account for these differences and transform data to a standard representation.

Differences between measures and dimensions

Another important consideration in understanding data is distinguishing between measures and dimensions. A measure refers to a field that can be aggregated in some way. For example, a numeric database field called "order_amount" in an orders table describes a measure because it can be aggregated in some way — summed, averaged or sorted. On the other hand, dimensions refer to fields that can be used to segment or bucket data in some fashion. An analyst might want to examine various measures and roll them up by different data dimensions such as gender, sales_region or country.

Understanding data is essential when mapping it into a central repository such as a data warehouse. With a better understanding of data, data engineers can anticipate how it will be used and structure it accordingly. Consistent definitions of measures and dimensions are also what allow a semantic layer to present the same business metrics to every user and tool.

Approaches to data mapping

Approaches to data mapping include:

  • Manual mapping, where data from a source is mapped using code or SQL. While offering the most amount of flexibility, this process is time-consuming and requires changes to the code or SQL scripts.
  • Semi-automated mapping, which uses a combination of coding and a visual user interface to create custom schemas.
  • Fully automated mapping, which does not require any coding and can easily be changed and scaled as needed.

The right approach depends on the number of sources, how often schemas change, and available engineering capacity.

Data mapping best practices

  • Start with business questions so mappings support the metrics and reports people actually need
  • Document every mapping and rule in a shared, maintained location
  • Standardize naming and formats for common entities such as customers, products, and dates
  • Validate with real data before mappings are used in production
  • Plan for change, since source systems are upgraded and reconfigured over time

Challenges of using ETL pipelines for data mapping

Organizations have traditionally solved this challenge of data mapping using ETL pipelines to extract data from various sources, transform it, and load it into a destination repository. The problem with ETL pipelines is that they typically need to be created and maintained by data engineers. Pipelines need to be updated and revalidated whenever source or destination schemas change. ETL pipelines are typically expensive, complex and can take a long time to execute on large data sets. Also, they run only periodically, so data is often out of date by the time it lands in a data warehouse. ETL pipelines also typically involve the creation of intermediate data sets, further increasing costs and complicating security and governance.

A better approach: Direct Data Mapping® tools

Advances such as new columnar file formats and in-memory query engines now allow organizations to efficiently gather data from multiple sources and query it without the need for cumbersome ETL pipelines. Incorta, a unified data analytics platform, employs a revolutionary approach called Direct Data Mapping®. Incorta automatically examines source data and stores it in a fashion that delivers exceptional query performance — even when data sources involve billions of rows, hundreds of joins and thousands of tables.

Incorta's Direct Data Mapping® technology essentially eliminates the need for costly and time-consuming ETL processing. Incorta rapidly loads data using high-throughput data connectors and performs schema introspection, automatically recognizing dimensions and measures. Data is stored in highly efficient, industry-standard Parquet format files where it can be analyzed within Incorta or queried using existing BI tools. By using Incorta with Direct Data Mapping®, organizations can reduce cost, dramatically reduce data engineering workload, and realize faster query performance for better insights.

Frequently asked questions

What is an example of data mapping?

A common example is linking a customer identifier stored as cust_no in an ERP and customer_id in a CRM to a single customer_key field in a data warehouse, so orders and support interactions can be analyzed together.

What is the difference between data mapping and ETL?

Data mapping defines how fields in a source correspond to fields in a destination. ETL is a process that executes those mappings, along with other transformations, to physically move and reshape data.

What is the difference between a measure and a dimension?

A measure is a numeric field that can be aggregated, such as order amount. A dimension is a field used to group or filter measures, such as region or country.

Can data mapping be automated?

Yes. Fully automated tools can examine source data, recognize field types, and map data without coding, which reduces maintenance as sources change.

Newsletter

Get more from Incorta

The latest updates and resources from us, directly to your inbox.

See Incorta in action