Three Engines, One Truth: A Semantic Model for SAP Datasphere, Databricks, and Power BI
- AIReadiness, SAP Business Data Cloud (BDC), SAP Datasphere
- 8 min reading time
Dr. Andreas Wagner
Three engines, one truth: This wiki shows how SAP Datasphere, Databricks, and Power BI share the same metric definition instead of having to recalculate it three times. The semantic anchor defines business logic—such as currency conversion and fiscal year variants—exactly once at the source, ensuring that the “Net Revenue” metric returns the same value in every engine.
- 1. The Starting Point
- 2. Define business logic once and use it everywhere
- 3. Why It Matters: A Definition, Not Just Data
- 4. The Semantic Layer in Practice
- 5. What Each Engine Provides in Terms of Semantics
- 6. Why Mirroring Instead of Copying? The Mechanism in Detail
- 7. The physical requirement is a data set that all three engines can read
- 8. Example: Define "Net Revenue" once and use it across three engines
- 9. From KPI to Benchmark: A Playbook for Data Architects
1. The Starting Point
One organization, three systems (namely SAP, Databricks, and Power BI), three different revenue figures for the same month: In modern multi-cloud environments, the problem rarely lies in data access, but rather in the lack of consistent semantics. Net revenue is calculated differently in SAP than in the Databricks notebook and yet differently again in the Power BI report, because the logic for currency, periods, and fiscal years is implemented anew and in isolation from one another each time. The result is endless discussions about numbers instead of business decisions.
The solution is not yet another BI tool, but a consistent semantic model.
This wiki shows:
1. Which semantic level each of the three engines actually provides.
2. How SAP Datasphere centrally defines the business logic and how Databricks and Power BI inherit this definition rather than recreating it in transformation pipelines.
3. How data materialization and metadata exchange technically interlock in the Object Store.
4. How Power BI is connected depending on the architecture—via Microsoft Fabric (Direct Lake) or directly via Databricks (DirectQuery).
5. Using a comprehensive net revenue example, we demonstrate how the layers are specifically linked to form a reliable model.
2. Define business logic once and use it everywhere
The analytic models in SAP Datasphere already contain the business logic, such as currency conversion, fiscal year variants, and hierarchies. Instead of redundantly recreating this logic in external ETL processes, the underlying dataset is materialized as a separate (customer-managed) data product in the SAP Datasphere Object Store and made available along with structured metadata (ORD and CSN). Because a Datasphere view does not contain any data itself, its result is first persisted and written to the Object Store—this creates at least one additional copy on the SAP side.
Databricks integrates these data products via the SAP BDC Connector for Databricks using a "zero-copy" (LINK) approach; the metrics are then intentionally imported—either manually or via a CI/CD process—as Metric Views in the Unity Catalog. There is no automatic mechanism that converts an SAP Analytic Model into a Metric View: this pattern is an architectural convention, not a product feature. Power BI consumes the same tables: by default, via DirectQuery live against Databricks—without an intermediate layer—or, where a Microsoft Fabric environment is available, alternatively via a Direct Lake semantic model that quickly reads the delta tables from OneLake without triggering Databricks Compute for every query. The definition remains anchored to a single source and is adopted by the consuming engines.
The practical effect of this is as follows: Net Revenue returns the same value in every engine, since they all reference the same source and the same declaration. Governance and the business unit do not need to discuss how a figure was derived; instead, they can work directly with it.
3. Why It Matters: A Definition, Not Just Data
There are two common misconceptions surrounding semantic anchors that data architects should clear up early on:
- "Metric Views are just another copy of the metric." A Metric View in the Unity Catalog is intentionally designed to reference the logic defined at the source via the same shared table set, rather than recreating the calculation logic in ETL pipelines. This reference is not created automatically but is set up and maintained once. If the metric definition changes at the source, the semantic layer adapts accordingly—an ETL duplicate would not do so.
- “Semantics is the BI tool’s responsibility.” If the business logic is created only in the dashboard, it must be rebuilt from scratch for each report. The semantic layer pulls it back to the source, where it is defined exactly once and in a binding manner.
4. The Semantic Layer in Practice
A key figure is defined in Datasphere in conjunction with source CDS views using SAP's own currency and fiscal year logic. From there, it is transferred to the other two engines without requiring the logic to be rewritten in transformation routes.
5. What Each Engine Provides in Terms of Semantics
Before the layers merge, it’s worth taking a look at the semantics each engine brings to the table—because they aren’t equivalent, but rather work in a division of labor.
- SAP (Datasphere Analytic Model): Provides the richest, authoritative business semantics. This is where currency conversion, fiscal year variants, units of measure, and dimensions exist as business-validated definitions, drawn directly from the S/4HANA context. This level serves as the system of record for business logic.
- Databricks (Unity Catalog Metric View): An analytical semantic layer is provided on top of the Lakehouse. A Metric View defines metrics declaratively and makes them uniformly available to BI, ad hoc SQL, and ML workloads without duplicating physical tables.
- Power BI (visualization and consumption layer): Provides the consumption semantics for business users. Whether as a Direct Lake in Microsoft Fabric or as DirectQuery on Databricks, Power BI visualizes the metrics but must not replicate any deviating business calculation logic in DAX.
6. Why Mirroring Instead of Copying? The Mechanism in Detail
The difference between mirroring and copying determines the reliability of the figure. However, an SAP Datasphere Analytic Model is not transferred to the Object Store (LINK to the Object Store) as a dynamically computing engine: The Object Store does not contain any computational processes, but rather flat Parquet files. Therefore, it is not the dynamic runtime logic that is shared, but rather the materialized data body of the Data Product along with its semantic metadata (ORD and CSN).
Both a Databricks Unity Catalog Metric View and a Power BI measure are built precisely on this principle: They do not duplicate ETL transformation flows, but rather define the business logic (such as Net Revenue) as a binding definition across the same shared set of tables. The metadata protocol ensures that Databricks and Fabric understand the primary keys, dimensions, and field relationships from the SAP source, rather than having to guess them in SQL scripts.
This shifts the question from “Does Databricks calculate net revenue correctly?” to “Does Databricks reference the released data products and their semantic definitions?” The first question can only be answered through a laborious comparison of three proprietary pipeline implementations; the second is purely a catalog and declaration check. It is precisely this separation—a uniform data body plus a metadata contract instead of uncontrolled ETL logic—that makes the semantic layer robust against drift.
7. The physical requirement is a data set that all three engines can read
A shared semantic model requires that all engines have access to the exact same physical dataset. Otherwise, a metric definition is replicated across different copies—and the numbers will diverge due to asynchronous load times, even though the formulas have been synchronized.
The shared data store consists of a single set of Parquet files in the open Delta Lake format, which is stored in the SAP Datasphere Object Store for custom data products (SAP-managed data products are stored in the Foundation Services, FOS). The engines have copy-free read access; however, materialization on the SAP side remains necessary:
Engine | Format | Storage & Access Path | Access Method & Semantics |
SAP Datasphere (BDC) | Delta Lake / Parquet | Datasphere Object Store (custom data products) or Foundation Services (SAP-managed); deployment via BDC Connect | Analytic Model & Definition of Data Product Contracts (CSN/ORD) |
Databricks | Delta Lake | Zero-Copy via the SAP BDC Connector for Databricks (Delta Sharing, known as OpenSharing since 2026) in the Unity Catalog | Metric View via partitioned tables for BI, SQL, and ML workloads |
Power BI (via Fabric) | Delta Lake | OneLake shortcut to the BDC Object Store or Databricks | Direct Lake Mode: Reads Delta Parquet directly without importing or SQL translation |
Power BI (without Fabric) | Delta Lake | Databricks SQL Warehouse Endpoint | DirectQuery Mode: Runs SQL queries live against the Databricks Unity Catalog |
8. Example: Define "Net Revenue" once and use it across three engines
The following example shows the"Net Revenue" metric throughout—from its definition in the SAP source to the identical value in Databricks and Power BI.
Technical definition: Gross sales minus sales deductions, converted to the group currency (the euro) at the monthly average exchange rate, and aggregated according to fiscal year variant K4 (calendar year, twelve periods). It is precisely these three rules—deduction logic, currency conversion, and fiscal year variant—that otherwise differ from one engine to another.
Instead of programming the logic three times in pipelines, it is defined once and then referenced:
Step 1 – Definition in SAP Datasphere: Net Revenue is created as a measure in an analytic model. The deduction logic, the conversion to euros at the monthly average exchange rate, and the fiscal year variant K4 are modeled here. The underlying data sets are released as data products and made available as delta tables in the SAP Datasphere Object Store. If the logic is contained in a Datasphere view, its result is first persisted and written to the Object Store.
Step 2 – Declaration in Databricks: In the Unity Catalog, a metric view is intentionally created—either manually or via a CI/CD process—that builds directly on the published data product tables, rather than recalculating Net Revenue in the notebook using auxiliary tables. This step does not occur automatically but is created as a definition and maintained with version control. From now on, Databricks SQL and ML workloads will access the same semantic foundation.
Step 3 – Connecting to Power BI:
- Option A (directly on Databricks, standard approach): Power BI accesses theDatabricks SQL warehouse via DirectQuery and uses the Metric View defined in the Unity Catalog directly—without any intermediate layer.
- Option B (with Microsoft Fabric, optional): If a Fabric environment is available, the tables are referenced via a OneLake shortcut; Power BI accesses the data in Direct Lake Mode and reads the measure without copying any data. In both cases, no manual reconstruction of the currency conversion in DAX is required.
Step 4 – Verify: For a reference period (such as the monthly closing), verify that all engines report the same EUR value for net revenue. An automated reconciliation check ensures that the model remains free of calculation drift over time.
9. From KPI to Benchmark: A Playbook for Data Architects
A semantic layer isn't created by a specific tool, but rather by the organizational discipline of avoiding duplicate definitions. These three guidelines belong in every playbook:
- Ensure definition authority at the source: Make it a mandatory requirement that all core metrics be defined within the Datasphere context. Every calculation pipeline replicated in Databricks or Fabric represents a potential issue.
- Declare instead of recreating: Integrate metrics into Databricks as Unity Catalog Metric Views. In Power BI, use Direct Lake or DirectQuery to access these views. Resist the temptation to rewrite transformation logic on your own using PySpark or DAX.
- Automate the monitoring of discrepancies: Regularly check to ensure that all engines are referencing the same data and metadata sources. Automated alerts for schema or formula discrepancies prevent numbers from drifting apart unnoticed.
Common Pitfalls
- Replicating the logic in the notebook: Net revenue must be converted “once” in Databricks using an SQL transformation job. This is exactly how the diverging silo figures arise.
- Ignoring hierarchies and dimensions: It is not enough to simply enable the metric column without the associated dimension tables and CSN metadata. Without consistent dimensions, each drill-down will again yield inconsistent results.
- Semantics Without Ownership: Although the definition must be documented centrally, no one is designated to maintain it.
, and new accountability.
The central definition eliminates conflicting metrics, but creates a dependency that architects should actively manage.
| Risk | What it's all about | What Architects Should Do |
|---|---|---|
| Source Dependency | If the Datasphere Analytic Model fails or changes incorrectly, all mirroring engines are affected simultaneously. | Track changes to models, test them, and roll them out using structured CI/CD processes. |
| Feature Gaps | Not all SAP-specific logic can be mapped 1:1 to Metric Views or DAX without any loss of information. | Test the mappability of each key figure before going live, and explicitly document any exceptions in the data contract. |
| Metadata Latency | Changes made to the source may be propagated to external catalogs with a delay. | Measure propagation times and, if necessary, agree on an update SLA for each engine. |
Take the AI Readiness Check.
Whether it's Datasphere Analytic Models, Unity Catalog, Metric Views, or Power BI reporting: Consistent metrics result from the right semantic architecture.
becoming AI-ready?
Reliable semantics are the foundation of AI readiness. In this webinar, Andreas explains what’s essential for a robust data and AI architecture—and how companies can take the next step in a structured way.
With Andreas from s-peers."
Analytic Model
A semantic model in SAP Datasphere that encapsulates key figures—including currency, fiscal year, and hierarchy logic—as a binding definition.
Metric View
An object in the Databricks Unity Catalog that declares or references a metric and makes it uniformly available to analytical workloads.
Direct Lake
A Power BI/Fabric mode that queries delta tables directly from OneLake without importing or copying them in the traditional way.
Fiscal Year Variant
The rule by which a fiscal year is mapped to calendar periods—a common reason for discrepancies in key metrics across engines.
Unity Catalog
The governance and catalog layer of Databricks, which is used to manage metric views, permissions, and lineage.
Delta Lake & Delta UniForm
Delta Lake is an open table format with a transaction log based on Parquet files. Delta UniForm also generates metadata for various open table formats based on a dataset.
Polaris Catalog & OpenSharing
Polaris Catalog is an open, REST-based catalog for Apache Iceberg. OpenSharing refers to the open sharing protocol further developed by Databricks; "Delta Sharing" remains the common term for the underlying protocol.
Published by:
Dr. Andreas Wagner
Customer Success Executive
Dr. Andreas Wagner
How did you like the article?
How helpful was this post?
Click on a star to rate!
Average rating 5 / 5.
Number of ratings: 8
No votes so far! Be the first person to rate this post!







