Skip to content

Glossary

Data Engineering

Data Transformation

Data transformation is the process of converting data from its source structure, format, or values into the shape a target system or analysis needs, through steps such as cleaning, type casting, joining, aggregating, and reshaping.

Updated · By the VIZIO AI team

What is data transformation?

Transformation is where raw records become business definitions, such as what counts as an "active customer" or "net revenue". It happens either before loading, in classic ETL, or inside the warehouse after loading, in ELT, which is the dominant pattern with Snowflake, BigQuery and Databricks.

Three levels are useful to separate. Structural changes alter shape: joins, pivots, normalization. Value-level changes fix content: type casting, unit and currency conversion.

Semantic changes encode business logic. Most teams arrange these in layers, commonly staging, intermediate and mart models.

Staging models do light, one-to-one cleanup of each source table. Intermediate models combine sources and apply shared logic. Marts expose final tables at a grain a dashboard or finance team can use directly, and are the only layer business users should query.

What are the common data transformation steps?

Nearly every pipeline repeats the same handful of operations, and each one should be tested.

  1. Deduplicate on a stable key, such as order ID plus line number.

  2. Cast and standardize types and time zones, usually storing timestamps in UTC.

  3. Map codes to standards, for example ISO 3166 country codes and ISO 4217 currency codes.

  4. Join and enrich with reference data such as product catalogs.

  5. Aggregate to the grain reports need, such as daily revenue per SKU.

  6. Derive metrics, for example gross margin = (revenue − cost of goods sold) / revenue.

In dbt, the four built-in generic tests (unique, not_null, accepted_values and relationships) catch most breakages early.

What does data transformation look like in practice?

The test of a good transformation layer is that finance and marketing finally report the same revenue number. Consider a 70-person furniture retailer selling through Shopify and Amazon.

  • Fivetran loads both sources into Snowflake every hour.

  • dbt staging models rename columns, cast Amazon's timestamps and Shopify's store-time timestamps to UTC, and convert prices to one currency.

  • A lookup table maps Amazon ASINs to internal SKUs.

  • An intermediate model unions orders and subtracts refunds; a mart model outputs daily net revenue by SKU and channel.

  • Say a uniqueness test fails the first week, exposing duplicated Amazon order lines that had inflated revenue reports.

Once fixed, the finance team reconciles the mart against payouts each month instead of rebuilding the numbers in a spreadsheet.

What are the pitfalls of data transformation?

The most expensive transformation bugs drop or duplicate rows silently rather than throwing an error.

  • Inner joins that lose rows: orders without a matching product vanish from revenue.

  • Fan-out joins: joining to a table with several rows per key multiplies totals.

  • Logic in the BI tool: the same metric defined differently in three dashboards.

  • Overwriting raw data: without the original, a logic bug cannot be replayed and fixed.

A light hand is right for one-off questions; heavy modeling pays off only for metrics used repeatedly. Row-count reconciliation between layers is a cheap data quality check that catches most silent losses.

How is data transformation different from data cleansing and data integration?

Cleansing fixes errors, integration brings sources together, and transformation reshapes data into the model a use case needs. Data cleansing removes bad values; data integration connects systems; transformation includes some of both but focuses on structure and business logic, which a data model then formalizes.

The most common tools are dbt and plain SQL in the warehouse, Apache Spark for large volumes, Power Query in Excel and Power BI, Google Dataform, Matillion, and Python with pandas or Polars for smaller jobs. Whatever the tool, keep transformation code in version control with code review, so a change to the definition of revenue is visible, reviewed and reversible.

Transform before load (ETL) vs transform in warehouse (ELT)

Transform before load

Transform in warehouse

Where logic runs

Separate processing server or tool

Inside Snowflake, BigQuery, Databricks

Raw data kept

Often not

Yes, in staging tables

Typical tools

Informatica, SSIS, Talend, Power Query

dbt, Dataform, SQL

Best for

Removing sensitive fields before storage

Fast iteration on business logic

Main drawback

Harder to replay after a logic bug

Warehouse compute costs grow

How does VIZIO AI approach data transformation?

VIZIO AI treats a shared data model as the core deliverable, because dashboards only agree when definitions agree. For a fast-growing US women's fashion e-commerce brand, our DX Studio automated ingestion of marketing, sales and pricing data through Precog, then built a consistent data model that reconciled different formats across systems into one KPI layer.

That model powered real-time dashboards for SKU performance, ad spend ROI and pricing elasticity. The brand improved data accuracy by 28% and enabled 32% faster operational decision-making. Where to start: pick the one metric two teams currently report differently and write its definition down in SQL.

logo of Facebook
logo of X
logo of LinkedIn
logo of Reddit
logo of Telegram

Think AI-first.
Move future-fast.

Let’s build what’s next! From product ideas and intelligent workflows to data-driven systems and scalable growth operations.

Book a Strategy Call