Data 360 Inspector

Features · Segments and activation

Segment overlap and cost

Overlap between segments, near duplicates and a credit estimate.

Video coming soon.

From the article Do these Data Cloud segments target the same people? (part 19 of the series).

"How many of our Lapsed Buyers are also in the VIP segment?" sounds like a quick question. In Salesforce Data Cloud it is not, because each segment shows its own count and nothing about the people it shares with another one. The usual answer is a SQL query against the membership tables, written by whoever on the team remembers their names. A close cousin of that question comes up in every org that has been live for a year: there are three segments called something like "High value", and nobody is sure which one the activation uses or whether they differ at all.

Today zooms out from one person to whole segments: how many people they share, which ones are near copies of each other, and what each publish costs in credits.

Pick two to five segments

The Segments page has a Details and Overlap switch above the list. In Overlap mode, clicking a segment in the list adds it to the picks, and the search box under the picks finds more by name. The Overlap with... button on any segment's details opens the same view with that segment already picked.

You can pick from 2 to 5 segments, and they must be on the same object, such as the Individual Data Model Object (DMO). Once the first one is picked, the search box reads "Add a segment on Individual" and only offers segments on that object, so you cannot mix them by mistake. Each pick gets a letter, A to E, which the rest of the page uses.

Run counts everything with one Data Cloud query on the latest membership tables. Show SQL displays that query before you run it, if you want to see what will be sent. Because it reads the membership tables, each segment is counted as of its last publish, not as it would match right now, and each segment's card says so with the time of that publish.

On my demo org I picked three segments: Account Execs (title is Account Executive, 8 people), Senior Account Execs (the same plus born before 1980, 5 people) and Born before 1980 (92 people).

Segment overlap with three segments picked: A DCI Demo - Account Execs 8, B DCI Demo - Senior Account Execs 5, C DCI Demo - Born before 1980 92, each "as of the last publish"; the pairwise matrix with 5 (100%) for A and B, 5 (63%) for A and C, 5 (100%) for B and C, shaded by share; and Exact combinations: In C only 87, In all three 5, In A only 3, with "95 people in at least one" and a People in this overlap link on each line.

The pairwise matrix

Each cell of the matrix holds the number of people in both segments and, under it, their share of the smaller of the two. The diagonal holds each segment's own total. I chose the smaller segment as the base on purpose: when a cell says 100%, the smaller segment sits entirely inside the bigger one, which is the case you usually want to find. Here Senior Account Execs shows 100% against both other segments, which is what its criteria promise: every senior Account Executive is an Account Executive and was born before 1980. The cells are shaded by that share, so the heavy overlaps stand out before you read a number.

Click any count and the SQL page opens a new tab with a query that lists those people's IDs (up to 1,000, ordered by ID), ready to run. The Segments page itself only shows counts, never names or IDs.

Exact combinations

The matrix counts a person in every pair they belong to, so its numbers do not add up. Exact combinations does: each person appears once, in the one combination of segments they are in, written as "In C only", "In all three" or "In A only". Each line has a bar for its size, the number of people, and a People in this overlap link that opens the matching SQL. The line above the list gives the number of people in at least one of the picked segments: 95 here, which is 87 + 5 + 3.

Segments that were never published

A segment that was never published has no membership rows, so it counts as 0. For those, the segment's card offers Count from the criteria (approximate). The Inspector then builds SQL from the segment's criteria and counts who matches now, and the card gets an "approximate" badge. When the criteria use something that cannot be turned into SQL, the card says so instead of guessing.

Near-duplicate segments

Under the overlap sits a second card, Near-duplicate segments, which runs no queries at all. It reads every segment's criteria and lists pairs on the same object that fall into one of three kinds:

  • Same criteria: identical, or the same once order, case and spacing are ignored.
  • One adds a condition: one segment has every condition of the other plus one more AND condition, so its members are a subset.
  • One value differs: the same conditions, except one compares the same field with another value.

The exclude criteria must match for any of the three. Each pair shows what differs in words, and the chips at the top filter by kind. Compare overlap picks the two segments and runs the overlap, so you can see whether the difference changes anything in practice.

Near-duplicate segments with 2 pairs, both "One adds a condition": DCI Demo - Account Execs and DCI Demo - Senior Account Execs ("Only in DCI Demo - Senior Account Execs: Individual.BirthDate before "1980-01-01"") and DCI Demo - Born before 1980 and DCI Demo - Senior Account Execs ("Only in DCI Demo - Senior Account Execs: Individual.TitleName is "Account Executive""), each with a Compare overlap button; the chips All (2), Same criteria (0), One adds a condition (2), One value differs (0).

On the demo org it found Senior Account Execs twice: once as Account Execs plus a birth date rule, once as Born before 1980 plus a title rule. That is the near copy I made on purpose, and the card says in one line that its members are a subset of both.

What a publish costs in credits

Data Cloud bills segmentation in credits, and the number that drives it is the rows processed. Every segment's page has a Cost estimate card, marked "estimate", that works the figure out in the open:

  • Rows processed: the row counts of the objects the segment reads, including the related objects of its count rules and the membership table of any segment it includes.
  • Credits per publish: rows processed divided by 1,000,000, times the credits per million rows for the usage type.
  • Credits a month: credits per publish times the runs a month from the publish schedule, for example 60 for every 12 hours.

Count the rows runs one COUNT query per object, and the button says how many objects that is before you press it. The Usage type menu defaults to Batch segmentation, at the rate in Salesforce's public rate card as the code records it. Use the org's multipliers reads the Digital Wallet multiplier object, when your data space has it, and uses your org's figure instead of the list rate.

When activations send the segment, the card adds them: the members at the last publish, times the number of activations, at the batch activation rate. Money figures use the price per credit you entered on Credit prediction, or the list price until you do. The Formula box shows the arithmetic with your numbers filled in, and Assumptions spells out every guess behind it.

Cost estimate on DCI Demo - Emailable Account Execs after Count the rows: Rows processed per publish 710, Credits per publish 0.0143 ($0.000071), Runs a month 60 "every 12 hours", Credits a month 0.8568 ("$0.0043 at $0.005 a credit"); the formula "710 rows / 1,000,000 x 20 = 0.0142 credits per run; x 60 runs a month = 0.852 credits a month" and "Activation: 8 rows / 1,000,000 x 10 = 0.0001 credits per run; x 60 runs a month = 0.0048 credits a month"; and the three objects read: ssot__Individual__dlm 180 rows, ssot__ContactPointEmail__dlm 180 rows and the membership table Individual_SM_1792694599136__dlm 350 rows.

For Emailable Account Execs, which refreshes every 12 hours and has one activation, that is 0.8568 credits a month. It reads three objects: Individual, Contact Point Email for the email rule, and the latest membership table of Account Execs, the segment it includes. At the list price of $0.005 a credit, that is less than half a cent a month. A demo org with 180 individuals costs next to nothing, which is the point of seeing the formula: the same card on a production segment with millions of rows shows where the credits go.

Limits

A few things to know:

  • Overlap reads the latest membership tables, so the counts are as of each segment's last publish. A segment that changed since then needs a publish, or the approximate count from its criteria.
  • Near-duplicates compare the written criteria. Two segments that reach the same people through different rules do not show up, and the list stops at 500 pairs.
  • The cost estimate counts every row of each object. Data Cloud may read fewer (filters, incremental runs) or more (joins), and contracts can have other rates than the public rate card. It is an estimate, not a bill: the Digital Wallet in Setup is the record.
  • The COUNT queries behind the estimate and the overlap query are data queries too, and use a few credits themselves.

The Inspector is free on the Chrome Web Store: https://chromewebstore.google.com/detail/data-cloud-inspector/ghiojkipoephhlkcgcgochoihogiahog