Common Data Model (CDM): Structure & Query Guide

How to query a CDM view (Power Query / M)

Use the datamart domain value as @dataMart and the view name as @viewName.

= Sql.Database(
    DataMart_Host,
    DataMart_Endpoint,
    [
      Query = 
        "EXEC get.myView " &
        "@dataMart = 'project', " &
        "@viewName = 'details', " &
        "@token = '" & DataMart_Token & "', " &
        "@version = 'beta'"
    ]
)

Naming conventions

  • Base data views: details, core, meta_values, meta_dates, item_values.
  • Level 3 collections (two options):
    • A. Suffix the view name – e.g. project.item_values_forecast, project.meta_values_revenue.
    • B. Pass the collection via @version – if supported by your proc (e.g. @version='item_values_forecast').

Sales Pipeline

Covers all stages of customer acquisition and order-to-cash pipeline.

Marketing (marketing)

Activities and campaigns to generate awareness and leads.

Collection DefinitionViews
Base viewsCampaigns, channels, lead gen performance.marketing.core_details / marketing.meta_values

Sales Lead (lead)

Initial prospect or lead record in the sales funnel

CollectionDefinitionViews
Base viewsProspect/lead records in the funnel.lead.core_details

Business Opportunity (busopp)

Qualified opportunities with estimated value and probability.

CollectionDefinitionViews
Base viewsQualified opps with value & probability.busopp.core_details

Order (order)

Customer sales orders committed for fulfilment.

CollectionDefinitionViews
Base viewsCommitted customer orders.order.core_details

Invoice (invoice)

Issued sales invoices sent to customers for payment.

CollectionDefinitionViews
Base viewsSales invoices issued to customers.invoice.core_details

Global

Organisation-wide reference data used across all domains.

Customer (customer)

Master data for customers and their attributes.

CollectionDefinitionViews
Base viewsCustomer master data.customer.core_details, customer.meta_values

Supplier (supplier)

Master data for suppliers and vendors.

CollectionDefinitionViews
Base viewsSupplier/vendor master data.supplier.core_details, supplier.meta_values

Dates (dates)

Canonical calendar structures and period definitions.

CollectionDefinitionViews
Base viewsCanonical calendars/periods.

Company (company)

Registered companies or legal entities in the group.

CollectionDefinitionViews
Base viewsLegal entities in the group.company.core_details

Programme Reporting Units (pru)

Programme Reporting Units, used to group and report projects at programme level.

CollectionDefinitionViews
Base viewsPRU catalogue (reference list).pru.core_details

Workforce

Human resources data covering people, employment, and roles.

Employee (employee)

Employment details tied to people in the workforce.

CollectionDefinitionViews
Base viewsEmployment details tied to people.employee.core_details
ExpensesEmployee-submitted expense claims for reimbursement.employee.item_values_expenses, employee.meta_values_expenses

Person (person)

Personal details and identity attributes for individuals.

CollectionDefinitionViews
Base viewsPersonal identity attributes.person.core_details
AbsenceAbsence and leave records for people.person.item_values_absence, person.meta_values_absence

Job Family (job)

Classification of roles into job families and categories.

CollectionDefinitionViews
Base viewsJob taxonomy..job.core_details

Product/Service

Delivery domains covering projects, resources, and programmes.

Project (project)

Data relating to project delivery and control.

CollectionDefinitionViews
Base viewsProject delivery/control.project.core_details
CommercialsContracted or priced value, order amounts, and variations.project.item_values_commercials, project.meta_values_commercials
CostAll expenses and charges attributed to projects.project.item_values_cost, project.meta_values_cost
ForecastProjected costs, revenues, and outcomes for projects.project.item_values_forecast, project.meta_values_forecast
RevenueRecognised income earned by projects.project.item_values_revenue, project.meta_values_revenue
TimeEffort and hours recorded against projects.project.item_values_time, project.meta_values_time
ContingencyRisk allowances and contingency budgets within projects.project.item_values_contingency, project.meta_values_contingency
BillingInvoices raised or pending for project work delivered.project.item_values_billing, project.meta_values_billing

Resource (resource)

Assignment of people or assets to project activities.

CollectionDefinitionViews
Base viewsAssignments to activities.resource.core_details
ActivityPlanned or actual project tasks and activities.resource.item_values_activity, resource.meta_values_activity

Portfolio Programme (programme)

Groupings of projects into programmes and portfolios.

CollectionDefinitionViews
Base viewsProgrammes/portfolios catalogue.programme.core_details, programme.meta_values

Finance

Financial control and accounting structures.

Finance Organisation (organisation)

Reference structures for finance and accounting.

CollectionDefinitionViews
Base viewsFinance reference structures.
Chart of AccountsMaster list of financial accounts for postingsorganisation.core_details_chartofaccounts
Cost CentresOrganisational cost centre structures.organisation.core_details_costcentres
CurrenciesList of supported currenciesorganisation.core_details_currencies
Foreign ExchangeExchange rates used for currency conversion.organisation.core_details_forex

Accounts Payable (accountspayable)

Liabilities and payments to suppliers.

CollectionDefinitionViews
Base viewsPayables domain base.accountspayable.core_details
Purchase OrderOrders placed with suppliers for goods or services.accountspayable.item_values_purchaseorder
Purchase InvoiceInvoices received from suppliers for paymentaccountspayable.item_values_purchaseinvoice

Accounts Receivable (accountsreceivable)

Amounts owed by customers.

CollectionDefinitionViews
Base viewsReceivables domain base.accountsreceivable.core_details
Sales OrderConfirmed orders from customers.accountsreceivable.item_values_salesorder
Sales InvoiceInvoices issued to customers for settlement.accountsreceivable.item_values_salesinvoice

General Ledger (generalledger)

Core ledger of financial postings and balances.

CollectionDefinitionViews
Base viewsLedger backbone.generalledger.core_details
TransactionsDetailed journal and posting entries in the ledger.generalledger.item_values_gltransaction
BudgetApproved financial plans for accounts and cost centres.generalledger.item_values_glbudget
BalancesPeriod-end aggregated balances by account and cost centre.generalledger.item_values_glbalance
ForecastProjected financial performance in the ledger.generalledger.item_values_glforecast
JournalsManual or system-generated journal entries.generalledger.item_values_gljournal
ConsolidationGroup-level consolidations and eliminations across entities.generalledger.item_values_glconsolidation

Fixed Assets (fixedassets)

Records of company-owned fixed assets.

CollectionDefinitionViews
Base viewsAsset register & attributes.fixedassets.core_details

Cash Management (cashmanagement)

Cash flow, treasury, and banking activities.

CollectionDefinitionViews
Base viewsCash flow, treasury, banking.cashmanagement.core_details

Enterprise

Cross-cutting domains covering infrastructure, risk, and governance.

Infrastructure (infrastructure)

Physical and digital backbone supporting the enterprise.

CollectionDefinitionViews
Base viewsEnterprise backbone.infrastructure.core_details
AssetsEnterprise infrastructure assets such as servers, equipment.infrastructure.core_details_assets
SystemsCore business and IT systems in operation.infrastructure.core_details_systems
FacilitiesBuildings, sites, and facilities management data.infrastructure.core_details_facilities
NetworksNetworking and connectivity infrastructure.infrastructure.core_details_networks

Customer Feedback (feedback)

Mechanisms for capturing customer sentiment and input.

CollectionDefinitionViews
Base viewsFeedback & sentiment.
RequestsCustomer or stakeholder requests for new features or data.feedback.item_values_requests
ComplaintsFormal complaints raised by customers.feedback.item_values_complaints
SatisfactionSurvey or sentiment measures of satisfaction.feedback.item_values_satisfaction
EngagementUsage, adoption, and customer engagement measures.feedback.item_values_engagement

Risk (risk)

Enterprise risks, registers, and mitigations.

CollectionDefinitionViews
Base viewsRisk registers/controls.risk.core_details

Compliance (compliance)

Regulatory and policy compliance data.

CollectionDefinitionViews
Base viewsRegulatory/policy compliance.compliance.core_details

Sustainability (sustainability)

Environmental and sustainability reporting data.

CollectionDefinitionViews
Base viewsEnvironmental reporting.sustainability.core_details

Strategy (strategy)

Enterprise strategies and objectives.

CollectionDefinitionViews
Base viewsStrategies & objectives.strategy.core_details

KPIs / Performance (performance)

Key performance indicators and scorecards.

CollectionDefinitionViews
Base viewsKPIs and scorecards.performance.core_details

Tips

  • If your proc supports it, you may pass Level-3 as @version (Option B). Otherwise, use the suffix pattern (Option A).
  • Join Global reference lists to applied domains via keys (e.g., PRU, Cost Centre).

Leave a Comment