What is a semantic layer and how do you set up shared KPI definitions?

Glossary AI & Data Atlas

A semantic layer is the layer that keeps business metric definitions in one place and sits between the data platform and consuming tools such as reporting tools and AI applications. The definitions, calculation rules and relationships of metrics such as revenue, profit margin or active customers are kept in this layer; because all reports and applications read the metric from the same source, they give the same result. At SoftwareArge, we see two different "revenue" figures being debated in a meeting as the most familiar sign of a missing semantic layer; in this article, we explain how the layer is set up.

Why is a semantic layer needed?

A semantic layer prevents the inconsistencies caused by calculating metrics separately in each report. When calculations are scattered, small differences accumulate over time: one report deducts returns while another does not, one is based on invoices and another on orders. As a result, several different numbers appear for a single metric, and trust in reports is shaken.

Because the semantic layer defines the calculation in one place, it removes the source of these inconsistencies. When AI assistants rely on these definitions as well, they produce answers consistent with the reports.

What steps lead to a shared KPI definition?

A shared KPI definition is prepared in five steps:

  1. List the metrics Start with the metrics used most often in management reports.
  2. Expose the differences Compare side by side how a metric is calculated in different reports.
  3. Agree on a single definition Write down the calculation rule, scope and exceptions together with the relevant departments.
  4. Assign an owner Name a business owner who will own the definition of each metric.
  5. Move the definition into the layer Implement the definition in the semantic layer and configure reports to draw directly from this layer.

Frequently asked questions

Is a semantic layer a software product?

No; a semantic layer refers to an approach rather than a specific tool. It can be built on the data platform, within business intelligence tools or with a standalone tool. What matters is that definitions live in a single place and that all reports and applications take them from there.

Why does a semantic layer matter in AI projects?

An assistant that answers natural-language questions about data has to guess if it does not know how "revenue" is calculated. Because the semantic layer provides this definition ready to use, the assistant's answers are consistent with the numbers in the reports.

What if agreement cannot be reached on a metric definition?

Different metrics can be defined for different needs, as long as each has its own name and a clear definition. For example, "gross sales" and "net sales" can be kept as two separate metrics.

Let's plan the move from concept to implementation together

Let's assess together how to create shared definitions for the critical metrics in your organization.