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.

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
Metric catalogue
Agreed definitions for metrics like spend, order count, recency and engagement, with owners and the source fields behind them.
→Calculated insights
SQL or builder-based insights at the unified individual level, with dimensions and measures chosen for reuse across segments.
→Segment design
Reusable segment patterns, nested logic and exclusions such as consent, suppression and recent-contact rules.
→Activation set-up
Activation targets, attributes passed with each member and checks in the destination system.
→Troubleshooting
Diagnosis of empty segments, mismatched counts and failed activations in existing setups.
→
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.
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__cHow we deliver it
- 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.
- 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.
- 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.
- 04
Design segments
Build segments on insights and profile attributes, with consent and suppression exclusions applied consistently.
- 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.
- 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.
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
- 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
- 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?
- 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
- 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
- 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
- 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?
- 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
- 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.
- 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.
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
- 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
- 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
- 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
- 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
- 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?
- 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
- 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.
Questions we hear
Should a metric be a calculated insight or a segment filter?
Why do activated counts differ from the segment count?
Can marketers build segments themselves?
How often should segments refresh?
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.




