- Data Utilization
[Semantic Layer Introduction Vol. 3] Differences Between Data Fabric, Data Mesh, and Semantic Layer: A Comprehensive Map of Data Infrastructure
Last Updated: November 27, 2026
In B2B, before defining "Revenue" or "Customer Count," you must determine how to count a "Single Customer"—whether by legal entity, business establishment, corporate group, or transaction. Without standardized units, no metric definition will yield consistent figures.
In our previous articles, we discussed the symptoms of inconsistent "Customer Counts" across departments (Vol. 1), the concept of a semantic layer to centralize metric definitions (Vol. 2), and where it fits within a data infrastructure (Vol. 3).
In this fourth installment, we address the most challenging issue in B2B semantic layers: "What constitutes a single company?" We will explain the four ways to count customers, why corporate registration numbers alone are insufficient for data matching, how to manage corporate hierarchies, and the recommended sequence for implementing MDM and semantic layers.
Table of Contents
1Why Must We Define a "Single Company" Before "Revenue"?
2How Many Ways Are There to Count a "Single Customer"?
2-1Why Does the "Correct Answer" Differ by Department?
3How Does This Differ from B2C Customer Integration?
4What Is the Difference Between Master Data and Reference Data?
5How Should Corporate Hierarchies Be Modeled?
6Why Is It Impossible to Perform Data Matching Using Only Corporate Numbers?
7What Does a Common Corporate Code Solve?
Recommended Articles
[Semantic Layer Introduction Vol. 3] Differences Between Data Fabric, Data Mesh, and Semantic Layer: A Comprehensive Map of Data Infrastructure
[Semantic Layer Introduction Vol. 2] What Is a Semantic Layer? Returning Consistent Answers Through Unified Metric Definitions
In the first installment of this series, we examined an example where, within the same company, the sales department reported "1,200 customers," the marketing department reported "3,500," and the accounting department reported "900." We identified three causes for these discrepancies: "differences in definitions," "differences in granularity," and "differences in data freshness." Among these, the most deep-seated issue is the difference in granularity—in other words, the discrepancy in "what constitutes a single company."
The sales department may be counting locations with active negotiations, the marketing department may be counting locations with touchpoints via business cards or the web, and the accounting department may be counting locations where invoices are sent. None of these departments are counting incorrectly; they are simply counting different targets.
In B2B, most key performance indicators use the "number of companies" as the denominator.
In the second installment, we introduced three components of a semantic layer: "Entities (what to count as one unit)," "Dimensions (which perspective to aggregate by)," and "Metrics (how to calculate)." General explanations of semantic layers often focus on standardizing calculation formulas for metrics like sales or churn rates. However, in B2B, unless the entity—the definition of a "single company"—is aligned beforehand, no amount of precision in the calculation formulas will yield consistent figures.
In B2B, the counting of a single customer company can be categorized into the following four methods.
| Unit | Primary Departments | Examples of Counting Methods | Suitable Metrics |
|---|---|---|---|
| Corporate Entity Unit | Credit, Legal, and Accounting | Counting one Corporate Number as one company | Credit limits, number of contracts, and number of anti-social force checks |
| Business Establishment Unit | Sales and Marketing | Count Headquarters, Branches, and Factories as Individual Entities | Number of Visits, Area Coverage Rate, and Number of Leads |
| Group Unit | Corporate Planning and Account Sales | Count Parent Companies and Subsidiaries as a Single Entity | Customer Share, Group Revenue, and Number of Key Accounts |
| Transaction Unit | Accounting, Billing, and Customer Success | Count Each Transaction Account and Billing Destination as an Individual Entity | Number of Invoices, Collection Rate, and Contract Renewal Rate |
For example, suppose you are doing business with "Group A," which consists of one parent company and three subsidiaries. This Group A counts as one entity when measured by group, but four entities when measured by legal corporation. Furthermore, it could result in 27 items when measured by business location, including branches and factories nationwide, and 12 accounts when measured by billing transaction units (the figures are hypothetical examples for illustrative purposes).
Even when looking at the same client, the numbers can differ by several times to several dozen times depending on the unit of measurement. Many of the discrepancies in figures between departments, which we discussed in the first installment, can be explained by these differences in units.
The sales department counts by business location because the actual counterparts for visits and business negotiations exist at each site. Credit management counts by legal corporation because the corporation is the entity that incurs debt and becomes a party to the contract. Corporate planning looks at the group level because many companies decide on suppliers at the group level, making the group the unit of decision-making. Accounting counts by transaction unit because billing and payments occur for each account.
In other words, all four counting methods are correct for their respective operations, and the issue cannot be solved by unifying them into just one. What is needed is not to align everything to a single unit, but to create a state where you can convert between units. By maintaining the correspondence of which business location belongs to which legal corporation, and which corporation belongs to which group, you can compare sales figures and credit figures on the same playing field.
In B2C, where individuals are customers, there is no public common key that businesses can freely use to uniquely identify an individual. Therefore, it is necessary to combine attributes such as name, address, phone number, and email address to estimate and match whether they are the same person.
On the other hand, B2B has a public common key called the "Corporate Number." The National Tax Agency assigns a 13-digit number to registered corporations and others, which anyone can reference on the Corporate Number Publication Site. Looking only at this point, B2B customer integration might seem easier than B2C.
However, corporations have a "hierarchy" that individuals do not. While an individual can only be counted as one person, the number of entities for a company changes depending on whether you define the business location, the legal corporation, or the group as "one." This is the difficulty unique to B2B: the fact that figures do not align despite the existence of a common key.
To resolve this complexity, it is necessary to address two key points: distinguishing "what data is being managed" and designing "how the hierarchy is structured."
Data regarding corporate clients can be more easily organized by categorizing it into "Master Data" and "Reference Data."
| Comparison Items | Master Data | Reference Data |
|---|---|---|
| What It Represents | The Business Counterparty Itself | The Criteria Used to Classify Counterparties |
| B2B Examples | Client Companies, Business Locations, and Key Contacts | Industry Codes (Japan Standard Industrial Classification), Prefecture Codes, and Employee Size Categories |
| Who Determines the Criteria | Internal (Sometimes supplemented with external data) | Primarily external standards (Government agencies, industry associations, etc.) |
| How Changes Occur | Changes daily due to company name changes, relocations, mergers, and acquisitions | Changes collectively when standards are revised |
Master data corresponds to the 'entity' in the semantic layer. For more on master data definitions and the differences between the roles of MDM and CDP, please refer to our blog post: What Is the Difference Between MDM and CDP?
Reference data serves as the foundation for 'dimensions' in the semantic layer. For example, when calculating the 'number of customers in the manufacturing industry,' if each department uses its own unique industry classification, the target companies included under the term 'manufacturing' will vary. For the basics of industry codes, please refer to our blog post: Understand in 5 Minutes: What Are Industry Codes? The Basics of Japan Standard Industrial Classification
To standardize the definition of a single company, it is necessary to align not only the "who" as master data but also the "criteria for classification" as reference data.
How should data represent the hierarchy of business locations, legal entities, and corporate groups? There are two primary options.
Regardless of which method is chosen, it is crucial to maintain business locations as the smallest unit of data. If data exists at the business location level, it can be aggregated to the legal entity or group level. However, data held only at the legal entity level cannot be broken down into business locations later. Maintaining the smallest unit and ensuring it can be traced to higher-level units via correspondence tables forms the foundation for the "convertible state" mentioned in the previous chapter.
Another point to note is that hierarchies change over time. Due to M&A, divestitures, or business transfers, parent-child relationships can change overnight. If the "point in time" of a hierarchy is not recorded, past figures may retroactively change, making year-over-year comparisons impossible. How to track changes in hierarchies and maintain their definitions will be discussed in detail in the next installment, Vol. 5.
"Since there is a Corporate Number, shouldn't using it as a key be enough for data matching?" This is one of the most frequently asked questions in the field of customer data integration. While the Corporate Number is extremely useful as a common key for legal entities, it cannot be used to match all customer data on its own. There are four main reasons for this.
*1: Digital Agency, "FAQ: About the Corporate Number"
https://www.digital.go.jp/policies/posts/mynumber_faq_08
*2: National Tax Agency, Corporate Number Publication Site, "FAQ (Procedures for Changing Name or Head Office Location)"
https://www.houjin-bangou.nta.go.jp/shitsumon/shosai.html?selQaId=00045
*3: National Tax Agency, Corporate Number Management Office, "Resource Definition Document (Download File, Web-API) Version 4.0"
https://www.houjin-bangou.nta.go.jp/documents/k-resource-dl-ver4.pdf
In summary, while the Corporate Number is a powerful common key at the "corporate entity" level, it lacks three critical capabilities: identification at the business location level, coverage of sole proprietors, and tracking changes over time. The basics of "data matching" to identify the same company from variations in company names and addresses are explained in our blog post: "[Explained by a Database Company] What Is Data Matching?"
The concept that compensates for the three shortcomings of the Corporate Number is the "Common Corporate Code." A Common Corporate Code refers to a corporate code assigned across both internal and external data to identify the same company down to the individual business location level.
The role of the Common Corporate Code can be organized as follows, corresponding to the three deficiencies mentioned in the previous section.
The corporate information database LBC, provided by our company, is an example of such a common corporate code. For an overview of LBC, please refer to our blog post, "Overview and Features of the Corporate Information Database LBC."
However, introducing a common corporate code does not automatically determine the definition of "one company." The common corporate code serves as the foundation for correctly converting data between four different units. You must decide based on the purpose of each metric whether your company's indicators should be counted at the "legal entity level" or the "business office level."
As we have seen, the B2B semantic layer is built upon master data where the definition of "one company" is standardized. So, which should be developed first: MDM (Master Data Management) to organize master data, or the semantic layer to define metrics?
In conclusion, the definition of entities, or the MDM side, comes first. If you define metrics on top of master data where the method of counting "one company" is not standardized, the calculation results will not be consistent.
However, there is no need to wait for the completion of MDM before starting discussions on metrics. In fact, the process of auditing what each department is counting as "number of customers" should be carried out in parallel with MDM. The results of this audit will clarify "which unit of customer data is required," which in turn determines the scope that should be managed within MDM.
The idea that requirements for "what you want to integrate" should be defined before implementation is also explained in our blog post, "MDM or CDP: Which Should Be Implemented First? What Is 'Integration Requirement Definition'?."
We summarize the key points of this article in three items: (1) Since major B2B metrics all have the "number of companies" as the denominator, the definition of "one company" is required before defining the metrics; (2) There are four ways to count "one customer company"—legal entity, business office, corporate group, and transaction—all of which are valid for business purposes; and (3) It is important not to unify into a single unit, but rather to maintain the business office as the smallest unit and create a state where data can be converted between these units.
The most challenging aspect of a B2B semantic layer is not the calculation of metrics, but the definition of entities. Even with a public common key such as the Corporate Number, it is impossible to fully capture changes in business establishments, sole proprietorships, and corporations. Determining how to count 'one company' for each metric and organizing corporate data that allows for navigation between these units serves as the starting point for ensuring consistent answers across the entire organization.
In the next installment, Vol. 5, we will build upon our previous discussions to introduce the six steps for actually creating and maintaining a semantic layer.
Our customer data integration solution, uSonar, is equipped with Japan's largest corporate information database and supports the data cleansing and integration of client data scattered throughout your company. With our unique 'LBC' coding system, you can manage customer information at the level of business establishments, legal entities, and corporate groups. You can utilize this as a foundation to organize the 'one company' definition that varies by department into a state that can be navigated across the entire organization.
For more details, please feel free to contact us via this page.
Master Data
Basic data that is commonly referenced across multiple operations and systems, such as client companies, business establishments, and products. It is the counterpart to transaction data, which changes with every transaction.
MDM (Master Data Management)
A framework and operational process for integrating master data scattered across departments and systems and maintaining it in an accurate state.
Reference Data
A list of classifications or codes defined by external standards, such as industry codes or prefecture codes. It is used to assign attributes to master data.
Entity Resolution
The process of determining whether multiple records with different notations or registration sources refer to the same actual company or business establishment and linking them. It is nearly synonymous with data cleansing.
Corporate Hierarchy
A structure that represents the containment or capital relationships between companies in stages, such as business establishments, legal entities, parent companies, and corporate groups.
Corporate Number
A 13-digit number assigned to each registered corporation by the National Tax Agency. This number remains unchanged even if the trade name or location changes, but it is not assigned to branch offices or sole proprietorships.
Common Corporate Code
A unique corporate code assigned consistently across internal and external data to identify the same company down to the specific business location level.
Author
uSonar Editorial Department
MX Group, Editor-in-Chief
We are the uSonar Editorial Department.
We provide information on data utilization and digital technologies useful for rethinking future business operations, primarily for companies engaged in B2B business.
uSonar is utilized by various companies
across all industries and sectors.
ITreview Grid Award 2026 Fall
Leader in 6 Categories
With uSonar,
we can help solve your company's challenges!
Case Studies and Sample Reports
Available for Download
