10.1 Segmentation Canvas, Segment Types (Standard UI & Flow) & Query Processing

Key Takeaways

  • Segmentation in Data Cloud is a distributed query compilation engine that converts visual canvas rules directly into optimized ANSI SQL queries executed across petabyte-scale lakehouse columnar storage (Parquet/Iceberg).
  • The 'Segment On' target entity dictates the fundamental audience granularity: UnifiedIndividual__dlm targets reconciled Customer 360 profiles, Individual__dlm targets source-specific unmerged individuals, and Account__dlm targets B2B business accounts.
  • Once a segment is created, its 'Segment On' root entity is strictly immutable; modifying the audience root requires deleting and recreating the segment definition.
  • Standard UI Segments provide visual, container-based drag-and-drop authoring for scheduled audience curation, whereas Flow-driven or programmatic segments trigger audience evaluation and downstream actions dynamically via Salesforce Flow and Data Cloud APIs.
  • The segment processing lifecycle traverses four sequential architectural phases: Query Compilation (visual AST to ANSI SQL), Distributed Lakehouse Execution (predicate pushdown and columnar scanning), Population Calculation (deduplication and aggregation), and Membership Materialization into MarketSegmentMembership__dlm.
Last updated: September 2026

Segmentation Canvas, Segment Types & Query Processing

In enterprise customer data management, assembling actionable audiences from disparate systems has historically required specialized data engineering, brittle nightly SQL batch scripts, and slow database extractions. In Salesforce Data Cloud, Segmentation transforms this paradigm by providing a high-performance, visual querying interface directly on top of the unified lakehouse architecture.

Rather than executing row-by-row scans on transactional databases, Data Cloud's segmentation engine functions as a distributed query compiler. It translates visual criteria cards and logic containers into highly optimized ANSI SQL statements that execute concurrently across partitioned, columnar Parquet files stored in the underlying lakehouse. Understanding the segmentation engine's internal architecture, target object dependencies, canvas logic mechanics, and processing lifecycle is critical for designing performant enterprise audiences and succeeding on the Salesforce Certified Data Cloud Consultant exam.


What is Segmentation in Data Cloud? Architecture & Business Value

At its core, Segmentation is the process of partitioning a broader universe of records (consumers, accounts, or visitors) into targeted, discrete cohorts based on demographic profile attributes, engagement behaviors, purchase histories, and calculated analytical metrics.

┌─────────────────────────────────────────────────────────────────────────┐
│                     DATA CLOUD SEGMENTATION ENGINE                      │
├─────────────────────────────────────────────────────────────────────────┤
│  1. Visual Canvas UI: Marketer drags attributes into nested containers  │
│  2. Query Compiler: Canvas rules compiled into optimized ANSI SQL AST   │
│  3. Lakehouse Execution: Distributed MPP query engine scans Parquet     │
│  4. Population Sizing: Unique qualifying entity IDs aggregated          │
│  5. Materialization: IDs written to MarketSegmentMembership__dlm        │
└─────────────────────────────────────────────────────────────────────────┘

Business Value Drivers

  1. Omnichannel Audience Activation: Enables marketers to publish identical, unified customer segments simultaneously to Salesforce Marketing Cloud, Meta Ads, Google Ads, Amazon S3, and Core CRM.
  2. Elimination of Data Latency: Connects directly to real-time streaming ingestion and harmonized DMOs, eliminating the need to wait for nightly legacy ETL pipelines.
  3. Democratized Analytical Power: Allows non-technical marketers to construct complex relational queries involving aggregations, multi-hop joins, and date offsets without writing SQL code.
  4. Closed-Loop Feedback: Downstream engagement events (email clicks, ad conversions, mobile opens) stream back into Data Cloud to inform subsequent segmentation runs in near-real-time.

Technical Foundation: Distributed Lakehouse Querying

Traditional CRM databases execute segmentation via index lookups and row-based relational joins on relational database management systems (RDBMS). As data scales past hundreds of millions of records, relational joins experience catastrophic performance degradation.

Data Cloud achieves massive scalability by decoupling compute from storage:

  • Storage: Data Lake Objects (DLOs) and Data Model Objects (DMOs) reside in cloud lakehouse object storage formatted as columnar Apache Parquet files.
  • Compute: A distributed Massively Parallel Processing (MPP) query engine executes segment queries. When a segment runs, the query compiler applies predicate pushdown (evaluating filters directly at the storage level) and partition pruning (skipping entire storage blocks that do not match date or category ranges), ensuring queries finish in minutes regardless of total database volume.

Defining Audience Granularity: The "Segment On" Target Object

Every segment created in Data Cloud must begin with a foundational architectural decision: designating the Segment On entity (also known as the target object or audience root). The Segment On entity defines what a single member of the resulting audience represents.

┌─────────────────────────────────────────────────────────────────────────┐
│                     "SEGMENT ON" SELECTION SPECTRUM                     │
├──────────────────────────┬──────────────────────────┬───────────────────┤
│ UnifiedIndividual__dlm   │ Individual__dlm          │ Account__dlm      │
├──────────────────────────┼──────────────────────────┼───────────────────┤
│ Reconciled Master Person │ Source-Specific Person   │ B2B Organization  │
│ (Customer 360 Master)    │ (Unconsolidated Source)  │ (Company / Firm)  │
│ 1 row = 1 Living Person  │ 1 row = 1 CRM/POS Record │ 1 row = 1 Account │
└──────────────────────────┴──────────────────────────┴───────────────────┘

1. UnifiedIndividual__dlm (Reconciled Master Profile)

  • Audience Granularity: Represents a deduplicated, unified human being resolved by an Identity Resolution ruleset.
  • Primary Key: UnifiedRecordId__c.
  • When to Use: The recommended default for consumer (B2C) marketing, omnichannel journeys, and personalization. If a customer exists as Contact 003A in Service Cloud and Customer POS_99 in retail sales, targeting UnifiedIndividual ensures they are contacted exactly once as a single person.
  • Data Access: Has direct access to reconciled profile attributes and can traverse relational bridges (UnifiedLinkIndividual__dlm) to inspect all related orders, cases, and web events across all contributing source profiles.

2. Individual__dlm (Canonical Source-Specific Record)

  • Audience Granularity: Represents an individual record within a specific source system before identity clustering, or in organizations where Identity Resolution is not configured.
  • Primary Key: IndividualId__c.
  • When to Use: Used when the business must target source-specific records directly (e.g., dispatching an operational alert specifically to a Salesforce CRM Contact ID without consolidating across other source systems), or in multi-brand orgs where cross-brand profile consolidation is legally prohibited.
  • Limitation: Can cause duplicate marketing outreach if the same consumer exists multiple times across different source systems.

3. Account__dlm (B2B Organization / Business Account)

  • Audience Granularity: Represents a company, enterprise account, or household.
  • Primary Key: AccountId__c.
  • When to Use: Designed for B2B Account-Based Marketing (ABM), corporate sales campaigns, partner tiering, and organizational health monitoring.
  • Relational Access: Evaluates organizational attributes (e.g., AnnualRevenue, Industry, EmployeeCount) as direct attributes, and aggregates related employee contacts or corporate purchase orders.

Architectural Comparison: Segment On Entities

Architectural DimensionUnifiedIndividual__dlmIndividual__dlmAccount__dlm
Target Entity TypeDeduplicated Master ConsumerSource System Person RecordB2B Commercial Enterprise
DependencyRequires active Identity Resolution rulesetOnly requires DMO harmonizationOnly requires DMO harmonization
Output IdentifierUnifiedRecordId__cIndividualId__cAccountId__c
Identity Resolution RoleResolves cross-source duplicatesPreserves source system silosB2B organizational hierarchy
Activation BehaviorTraverses UnifiedLink to push native IDsPushes source IDs directlyPushes Account IDs to CRM/Ad targets
ImmutabilityCannot be changed after segment creationCannot be changed after segment creationCannot be changed after segment creation

[!IMPORTANT] The Immutability Rule Once a segment is saved in Data Cloud, its Segment On entity is permanently locked. A marketer cannot alter a segment targeting Individual__dlm to target UnifiedIndividual__dlm. To change the audience root entity, the consultant must delete the segment (or create a new one) and rebuild the canvas logic.


The Visual Segmentation Canvas: Containers & Boolean Logic

The Data Cloud Visual Segmentation Canvas provides a structured drag-and-drop workspace divided into three functional areas:

  1. Attribute Library (Left Pane): Displays all available direct attributes on the target entity, related child DMOs connected via the Data Model, and Calculated Insights.
  2. Canvas Workspace (Center Pane): The visual workspace where criteria cards are arranged into hierarchical container blocks.
  3. Audience Summary & Preview (Right Pane): Displays estimated population sizing, refresh schedules, and attribute counts.

Container Architecture: Inner Logic vs. Outer Logic

A Container is a logical boundary that groups one or more attribute criteria cards together. The interaction between containers defines the boolean logic of the query:

┌─────────────────────────────────────────────────────────────────────────┐
│                     CANVAS BOOLEAN LOGIC TOPOLOGY                       │
├─────────────────────────────────────────────────────────────────────────┤
│  CONTAINER 1 (Inner Logic: AND)                                         │
│  ┌───────────────────────────────────────────────────────────────────┐  │
│  │ Criterion A: Direct Attribute -> UnifiedIndividual.City == 'Chicago'│  │
│  │                                AND                                │  │
│  │ Criterion B: Direct Attribute -> UnifiedIndividual.Age >= 25       │  │
│  └───────────────────────────────────────────────────────────────────┘  │
│                                    AND (Outer Logic between Containers) │
│  CONTAINER 2 (Inner Logic: OR)                                          │
│  ┌───────────────────────────────────────────────────────────────────┐  │
│  │ Criterion C: Related DMO -> WebEngagement.Device == 'Mobile'      │  │
│  │                                 OR                                │  │
│  │ Criterion D: Related DMO -> WebEngagement.Device == 'Tablet'      │  │
│  └───────────────────────────────────────────────────────────────────┘  │
└─────────────────────────────────────────────────────────────────────────┘
  • Inner Container Logic: Governs how multiple criteria within the same container combine. Can be toggled to evaluate as AND (all criteria in the container must be met) or OR (any criterion in the container can be met).
  • Outer Container Logic: Governs how distinct containers combine. Multiple containers can be joined via AND (qualifying profiles must satisfy Container 1 AND Container 2) or OR (qualifying profiles can satisfy Container 1 OR Container 2).
  • Nested Containers: Data Cloud supports nesting containers inside other containers up to three levels deep, enabling sophisticated boolean expressions such as: (A AND B) OR (C AND (D OR E)).

Segment Types: Standard UI vs. Flow-Driven / Programmatic Segments

While visual canvas authoring is the primary method for constructing marketing audiences, enterprise architectures frequently demand automated, event-driven, or programmatic segmentation.

1. Standard UI Segments

  • Authoring Model: Declarative, drag-and-drop canvas configuration performed by marketing operations.
  • Execution Model: Batch-scheduled (12-hour, 24-hour) or manual execution.
  • State Management: Persists audience members into MarketSegmentMembership__dlm.
  • Primary Use Case: Recurring email newsletters, monthly promotional campaigns, quarterly catalog mailings, and broad ad retargeting lists.

2. Flow-Driven / Programmatic Segments

  • Authoring Model: Orchestrated via Salesforce Flow (Data Cloud-Triggered Flows) or triggered programmatically via Data Cloud REST / Connect APIs.
  • Execution Model: Event-driven or scheduled flow invocations. Flow actions can trigger segment publish operations, pass dynamic parameters, or route audience members to operational CRM actions (e.g., creating a Service Cloud case or Sales Cloud task) immediately upon qualification.
  • Primary Use Case: Closed-loop operational automation—such as immediately enrolling a VIP customer into an onboarding journey when their loyalty balance exceeds a threshold, or executing ad-hoc segment calculations in response to external ERP batch completion.

Comparison: Standard UI vs. Flow-Driven Segments

Feature DimensionStandard UI SegmentsFlow-Driven / Programmatic Segments
Primary InterfaceData Cloud Segmentation CanvasSalesforce Flow Builder / REST API
Triggering MechanismTime-based schedule or manual clickPlatform event, DML trigger, API call, or Flow schedule
User PersonaMarketing Specialist / Campaign ManagerData Architect / Salesforce Developer
Downstream DestinationStandard Activation Targets (MC, Meta, S3)Any Salesforce Core object, Platform Event, External Webhook
Query ComplexityHigh (Visual multi-hop joins & aggregations)Varies (Can invoke pre-built segments or evaluate record criteria)

The Segment Processing Lifecycle: From Canvas to Lakehouse

When a user clicks Publish Now or a segment's background schedule triggers, Data Cloud executes a multi-phase computational lifecycle across the distributed infrastructure:

Phase 1: Query Compilation (AST to ANSI SQL)

  • The visual configuration (containers, criteria, data types, operators) is parsed into an Abstract Syntax Tree (AST).
  • The compiler traverses the defined relationship paths between the Segment On DMO and related DMOs.
  • The AST is converted into a fully optimized, distributed ANSI SQL query. If the target is UnifiedIndividual__dlm, the compiler automatically injects the necessary SQL JOIN clauses to UnifiedLinkIndividual__dlm and underlying source DMOs.

Phase 2: Distributed Lakehouse Query Execution

  • The compiled SQL query is submitted to the distributed MPP query engine.
  • The query engine reads columnar Parquet files from cloud object storage.
  • Optimizations applied:
    • Predicate Pushdown: Evaluates WHERE clauses directly during file scanning to read only matching data blocks.
    • Column Pruning: Reads only the specific columns referenced in the segment criteria, ignoring all unreferenced fields.
    • Partition Pruning: Skips entire time partitions (e.g., ignoring orders older than the specified 30-day window).

Phase 3: Population Calculation & Deduplication

  • The query engine executes aggregations (e.g., COUNT, SUM, AVG) and deduplicates qualifying keys.
  • Evaluates any configured Exclusion Segments or suppression criteria by executing SQL EXCEPT or NOT IN anti-joins.
  • Calculates the final distinct count of qualifying target entity IDs (UnifiedRecordId__c or IndividualId__c).

Phase 4: Membership Materialization

  • The resulting qualifying IDs are committed to the system Data Model Object: MarketSegmentMembership__dlm.
  • Each row records the MarketSegmentId__c, member profile ID, qualification status (Active), and publication timestamp.
  • Downstream Activation Jobs listening for segment completion are notified to compile activation payloads.

Critical Exam Traps & Consultant Pitfalls

[!WARNING] Exam Trap 1: Attempting to Change "Segment On" After Creation Scenario: "A marketing team created a segment on Individual__dlm. After deploying Identity Resolution, they want to change the existing segment to target UnifiedIndividual__dlm to eliminate duplicate emails."

  • Distractor: "Navigate to Segment Settings and change the Segment On field from Individual to UnifiedIndividual."
  • Why it's wrong: The Segment On object is immutable once the segment record is saved. The consultant must create a new segment with UnifiedIndividual__dlm as the target entity and re-apply the filter criteria.

[!NOTE] Exam Trap 2: Real-Time Expectation on Standard UI Segments Standard UI segments are batch-oriented (executing on 12-hour or 24-hour cadences, or manual refresh). They do not provide sub-second transactional evaluation. If an enterprise requires instant event-driven audience responses (e.g., trigger SMS within 3 seconds of a web cart abandonment), the architect must use Streaming Segments or Data Cloud-Triggered Flows, not standard UI segments.

[!CAUTION] Exam Trap 3: The Unmapped Relationship Path Error If an attribute card in the left pane appears grayed out or unavailable, it indicates that no active relationship exists in the Data Model connecting the Segment On entity to that related DMO. Segmentation cannot infer relationships dynamically; every join path must be explicitly mapped in Data Model Object Relationships beforehand.

Loading diagram...
The Data Cloud Segment Processing Lifecycle: From Canvas to Lakehouse Materialization
Test Your Knowledge

A retail company configured several marketing segments with 'Individual__dlm' as the target entity before implementing Identity Resolution. After successfully deploying Identity Resolution rulesets that consolidate duplicate customer records, the marketing director requests that all existing segments be updated to target 'UnifiedIndividual__dlm' to prevent customers from receiving duplicate promotional emails. What action must the Data Cloud consultant take?

A
B
C
D
Test Your Knowledge

During a marketing campaign review, a client asks how Data Cloud achieves sub-minute query performance when calculating audience segments across hundreds of millions of engagement rows in lakehouse storage without locking production transactional databases. Which architectural explanation accurately describes this capability?

A
B
C
D
Test Your Knowledge

A Data Cloud consultant is designing an automated audience architecture for a hospitality client. The client needs to evaluate a complex audience segment consisting of multiple related DMOs (Reservations, Loyalty, and Web Visits) once daily, but they also want to trigger an automated notification flow in Service Cloud whenever an existing VIP customer qualifies for a new high-tier segment. What segment design pattern should the consultant implement?

A
B
C
D