ServicesSalesforce consultingArchitectureImplementationOrg health checkDevelopmentIntegrations and APIsData migrationTesting and QAManaged supportSpecialist supportMarketing Cloud auditDeliverability
SolutionsMarketing Cloud EngagementMarketing Cloud NextSalesforce + BrazeAccount EngagementData Cloud (Data 360)Identity resolutionInsights and segmentsAgentforce and AIMCP integrationsSales and Service CloudReal-time personalisationIntegration solutionsEnterprise AI integrationBy industry
ArchitectureSalesforce CRMData 360Salesforce + BrazeAgentforceCustomer 360API-led integrationEvent-drivenMCP host, client and serverIdentity and consentMCP securityData governanceCI/CD and releasesOur public MCP server
ResourcesEngineering journalDecision guidesSolution blueprintsSalesforce productsProjects and achievementsSales ROI calculatorWhere we workChecklists and templatesPlanning toolsReadiness assessmentGlossaryAbout GeekMidstOur approachOur expertiseContact
CompanyAbout GeekMidstOur approachDelivery methodologyTrust and evidenceProjectsAchievementsBook a consultationContactWhere we workSecurity and data
Book a Consultation

Data Cloud Calculated Insights and Segmentation

Turn unified profiles into audiences people can use. We define metrics as calculated insights, build segments on them and test that activations arrive correctly.

Analyst circles a cluster of dots on a printed scatter chart pinned to a glass wall as a manager watches

A unified profile is only useful once it answers questions such as "who has spent most in the last year?" or "which customers have an open case and a renewal next month?". In Data Cloud, those answers come from calculated insights, which compute metrics across your data model, and segments, which use profile attributes and insights to define audiences for activation.

GeekMidst designs and builds both. The aim is a small, well-defined set of metrics that marketing, service and analytics teams agree on, and segments that refresh on a sensible schedule and arrive in the destination with the counts and fields you expect.

Where teams usually struggle

  • The same metric (lifetime value, last purchase date, engagement score) is defined differently in every segment.
  • Insight results do not match CRM or finance reports, and nobody can explain why.
  • Segments are built directly on raw events, so they are slow and hard to maintain.
  • Activated audiences in Marketing Cloud or ad platforms do not match the segment count in Data Cloud.
  • Refresh schedules are set by default rather than by how fresh the audience needs to be.

What we build

Analyst presenting customer metrics on a wall screen to a marketing team

An illustrative calculated insight

The example below shows the shape of a customer spend insight at unified individual level. It assumes a custom Orders__dlm object with customer_id__c, order_id__c and order_total__c fields mapped from an order source, where customer_id__c holds the same ID as the source Individual record that identity resolution links. Unified individual and identity link object and field API names depend on your org and ruleset, so check them in Data Explorer before adapting this. It is a sketch, not production code.

sql
SELECT
  UnifiedIndividual__dlm.ssot__Id__c AS customer_id__c,
  COUNT(Orders__dlm.order_id__c) AS order_count__c,
  SUM(Orders__dlm.order_total__c) AS lifetime_spend__c
FROM Orders__dlm
JOIN IndividualIdentityLink__dlm
  ON Orders__dlm.customer_id__c = IndividualIdentityLink__dlm.SourceRecordId__c
JOIN UnifiedIndividual__dlm
  ON IndividualIdentityLink__dlm.UnifiedRecordId__c = UnifiedIndividual__dlm.ssot__Id__c
GROUP BY UnifiedIndividual__dlm.ssot__Id__c
Sample calculated insight: order count and spend per unified individual

How we deliver it

  1. 01

    Agree the questions

    Start from the audiences and decisions teams need, then list the metrics they depend on. Most programmes need fewer insights than first expected.

  2. 02

    Define each metric

    Write the definition in plain words, including grain, time window, currency, returns and cancellations, and the source of truth to reconcile against.

  3. 03

    Build and reconcile

    Create insights, run them and compare results with CRM or finance figures for a sample of customers. Differences are explained or fixed before use.

  4. 04

    Design segments

    Build segments on insights and profile attributes, with consent and suppression exclusions applied consistently.

  5. 05

    Plan refresh and activation

    Choose refresh frequency per segment based on how fresh the audience needs to be and the consumption it creates, then configure activation targets.

  6. 06

    Test end to end

    Confirm member counts and attribute values in the destination, and document what each segment is for and who owns it.

What you receive

  • A metric catalogue with definitions, owners and reconciliation notes.
  • Calculated insights and segments configured in your org, with naming conventions.
  • An activation map showing which segments go where, with which attributes.
  • A short run book for common issues: empty segments, stale insights and count mismatches.

Dependencies and risks

This work assumes identity resolution is in a reasonable state. If unified profiles are wrong, every insight built on them will be wrong too, so we may recommend an identity resolution review first. Segment refresh and insight processing both contribute to consumption, and processing schedules and limits vary, so we check current limits for your org in Salesforce Help during design rather than assume them.

Workflow diagrams

Explore how the pieces fit together. Select a step to read what happens there.

Workflow

Calculated insights

Open full size
Calculated insightsAn analyst turns a business question into measures and dimensions, then builds either a batch calculated insight or a streaming insight. Results are validated against source totals; if they reconcile they are used in segments and activation, otherwise the logic is fixed.Calculated insightsAnalystBatch insightStreaminginsightConsumersNoYesYesNoBusiness need: Metric to act on. Start from a decision, for example "who has spent most in the last year". An insight nobody uses still costs processing on every run.Business needMetric to act onDefine the metric: Measures and grain. Write down the measure (sum, count, latest), the dimension it is grouped by (usually the unified individual) and the filters. Agree the definition before building.Define the metricMeasures and grainNear real-time need?. Most insights are batch. Use a streaming insight only when the value must react within minutes, such as activity in a recent time window.Near real-timeneed?Batch insight: SQL or builder. Built with SQL or the visual builder over data model objects and run on a schedule. Check joins carefully; a join on the wrong key quietly double counts.Batch insightSQL or builderStreaming insight: Rolling time window. Calculated continuously over incoming engagement data within a time window. Keep the logic small; streaming insights support a narrower set of functions than batch.Streaming insightRolling time windowValidate results: Against source data. Compare totals and a handful of known customers with the source system. Most insight defects are mapping or join problems, not SQL syntax.Validate resultsAgainst source dataNumbers reconcile?. Only publish when the results match the source within an agreed tolerance and the people who will use them have seen the examples.Numbersreconcile?Fix the logic: Then validate again. Trace the gap: missing source rows, a wrong mapping, a bad join or timezone handling. Fix it at the cause, rebuild the insight and validate it again.Fix the logicThen validate againSegments and activation: Filter, attribute. The validated insight can be used as a segment filter, sent as an activation attribute or shown on the profile.Segments andactivationFilter, attributeStartProcess stepDecisionSystem or platformPerson or teamAlert or exceptionEnd or outcomeOriginal GeekMidst explanatory diagram, not an official Salesforce reference.

Select any step in the diagram, or use Step through, to see what happens at that point and why.

Text version: every step in order
  1. Business need AnalystMetric to act on

    Start from a decision, for example "who has spent most in the last year". An insight nobody uses still costs processing on every run.

    Next: Define the metric

  2. Define the metric AnalystMeasures and grain

    Write down the measure (sum, count, latest), the dimension it is grouped by (usually the unified individual) and the filters. Agree the definition before building.

    Next: Near real-time need?

  3. Near real-time need? Analyst

    Most insights are batch. Use a streaming insight only when the value must react within minutes, such as activity in a recent time window.

    Next: No: Batch insight; Yes: Streaming insight

  4. Streaming insight Streaming insightRolling time window

    Calculated continuously over incoming engagement data within a time window. Keep the logic small; streaming insights support a narrower set of functions than batch.

    Next: Validate results

  5. Batch insight Batch insightSQL or builder

    Built with SQL or the visual builder over data model objects and run on a schedule. Check joins carefully; a join on the wrong key quietly double counts.

    Next: Validate results

  6. Validate results AnalystAgainst source data

    Compare totals and a handful of known customers with the source system. Most insight defects are mapping or join problems, not SQL syntax.

    Next: Numbers reconcile?

  7. Numbers reconcile? Analyst

    Only publish when the results match the source within an agreed tolerance and the people who will use them have seen the examples.

    Next: Yes: Segments and activation; No: Fix the logic

  8. Segments and activation ConsumersFilter, attribute

    The validated insight can be used as a segment filter, sent as an activation attribute or shown on the profile.

    End of the flow.

  9. Fix the logic AnalystThen validate again

    Trace the gap: missing source rows, a wrong mapping, a bad join or timezone handling. Fix it at the cause, rebuild the insight and validate it again.

    End of the flow.

An analyst turns a business question into measures and dimensions, then builds either a batch calculated insight or a streaming insight. Results are validated against source totals; if they reconcile they are used in segments and activation, otherwise the logic is fixed. Original GeekMidst explanatory diagram; not an official Salesforce reference architecture.

Workflow

Segmentation in Data 360

Open full size
Segmentation in Data 360A marketer starts from an audience goal, chooses what the segment is built on, adds inclusion rules and exclusions, and checks the population count. If the size is wrong the rules are refined; if it is right the segment is published and its membership refreshes on schedule.Segmentation in Data 360MarketerSegment builderData 360YesNo, refineAudience goal: Who, and why. Write the goal in one sentence, including what will happen to the audience. It keeps the rules focused and makes the expected size easier to judge.Audience goalWho, and whyChoose segment on: Usually Unified Individual. The "segment on" object defines what one member is. Segmenting on a source object instead of the unified individual can count the same person more than once.Choose segmentonUsually Unified…Inclusion rules: Profile, related, insights. Combine profile attributes, related engagement and calculated insights. Related-object rules need the relationships in the data model to be set up correctly.Inclusion rulesProfile, related,insightsAdd exclusions: Suppressions and recent buyers. Exclusions remove people who should not be in the audience, such as recent purchasers or existing suppressions. Keep shared exclusions in one place so they stay consistent.Add exclusionsSuppressions andrecent buyersCount population: Before publishing. Data 360 estimates how many members match. Compare it with what you expected from the goal and from source reports.Count populationBefore publishingSize as expected?. A count far from the estimate usually points to a rule using the wrong field, a missing relationship or stale data, not a real change in the audience.Size as expected?Segment is live: Refresh scheduled. Choose a publish schedule that matches how the audience is used. Faster refresh options cost more processing, so use them only when the use case needs it.Segment is liveRefresh scheduledStartProcess stepSystem or platformDecisionEnd or outcomeOriginal GeekMidst explanatory diagram, not an official Salesforce reference.

Select any step in the diagram, or use Step through, to see what happens at that point and why.

Text version: every step in order
  1. Audience goal MarketerWho, and why

    Write the goal in one sentence, including what will happen to the audience. It keeps the rules focused and makes the expected size easier to judge.

    Next: Choose segment on

  2. Choose segment on Segment builderUsually Unified Individual

    The "segment on" object defines what one member is. Segmenting on a source object instead of the unified individual can count the same person more than once.

    Next: Inclusion rules

  3. Inclusion rules Segment builderProfile, related, insights

    Combine profile attributes, related engagement and calculated insights. Related-object rules need the relationships in the data model to be set up correctly.

    Next: Add exclusions

  4. Add exclusions Segment builderSuppressions and recent buyers

    Exclusions remove people who should not be in the audience, such as recent purchasers or existing suppressions. Keep shared exclusions in one place so they stay consistent.

    Next: Count population

  5. Count population Data 360Before publishing

    Data 360 estimates how many members match. Compare it with what you expected from the goal and from source reports.

    Next: Size as expected?

  6. Size as expected? Data 360

    A count far from the estimate usually points to a rule using the wrong field, a missing relationship or stale data, not a real change in the audience.

    Next: Yes: Segment is live; No, refine: Inclusion rules

  7. Segment is live Data 360Refresh scheduled

    Choose a publish schedule that matches how the audience is used. Faster refresh options cost more processing, so use them only when the use case needs it.

    End of the flow.

A marketer starts from an audience goal, chooses what the segment is built on, adds inclusion rules and exclusions, and checks the population count. If the size is wrong the rules are refined; if it is right the segment is published and its membership refreshes on schedule. Original GeekMidst explanatory diagram; not an official Salesforce reference architecture.

Questions we hear

Should a metric be a calculated insight or a segment filter?
If more than one segment or team will use it, make it an insight. Filters inside a single segment are harder to reuse and to reconcile.
Why do activated counts differ from the segment count?
Common reasons include members without the contact point the destination needs, consent exclusions applied at activation, and timing between segment refresh and activation. We check each in turn.
Can marketers build segments themselves?
Yes, and that is usually the goal. We set up the insights, naming and patterns so marketers can build segments without writing SQL.
How often should segments refresh?
As often as the use case needs and no more. A welcome journey may need frequent refresh; a quarterly win-back audience does not.

Need audiences you can trust?

Tell us which audiences you are trying to build and where they need to go, and we will suggest how to structure the insights behind them.

Discuss your segmentation →

Next step: Data Cloud Calculated Insights and Segmentation

  1. We read it A practitioner reads your message and replies by email.
  2. Short call We confirm goals, constraints and what success looks like.
  3. Written scope You get a scope and estimate before any work starts.

Tell us what you are trying to fix.

Share your Salesforce setup, goals and constraints. A practitioner reads every message and replies with questions, first thoughts or an honest view of whether you need outside help at all.

Talk to a Salesforce Expert
Book a Consultation