Skip to main content
Users
CloudPortalLogin
  • Powered byPowered by
Introduction to Sitecore CDP
Data availability
Managing your account
Managing system settings
Managing guests
Batch segmentation
Data browser
Audience export
Dashboards
Developer center
  • Sitecore CDP
  • Introduction to batch segmentation
  • Create and add rules to a segment in Sitecore CDP
  • Calculate segment audience size in Sitecore CDP

Calculate segment audience size in Sitecore CDP

It is best practice to calculate the audience size of a segment when you create it or add a new rule in the segment builder. This is particularly useful when working with multiple rules, as it ensures you are using the intended comparators. Additionally, calculating the audience size allows you to view a sample guest_ref records included in the segment.

In advanced mode, you can also calculate the audience size within the SQL editor.

Calculate the audience size in the segment builder

To calculate the audience size in the segment builder:

  1. After you create and add rules to a segment, click Validate to make sure the segment query contains no errors.

  2. After validation succeeds, click Calculate Audience. When finished calculating, the audience size displays as:

    • An integer under Guests in segment.

    • A percentage of the total guests under Segment VS total guests.

    Calculating the audience size of a segment in Sitecore CDP after validating it in the segment builder.
  3. Click View sample. The View Execution Sample dialog displays a maximum of 10 guest_refs that are included in the segment results.

  4. Click icon to open the guest profile in a separate browser window.

Calculate the audience size in the SQL editor

To calculate the audience size in the SQL editor when in advanced mode:

  1. After you create a segment by writing an SQL query, on the Calculate audience tab, click Validate to make sure the segment query contains no errors.

  2. After validation succeeds, click Calculate Audience. When finished calculating, the audience size displays as an integer and a percentage of the total guests.

    Calculating the audience size of a segment in Sitecore CDP after validating it in the SQL editor.
  3. Click View sample. The View Execution Sample dialog displays a maximum of 10 guest_refs that are included in the segment results.

  4. Click icon to open the guest profile in a separate browser window.

Do you have some feedback for us?

If you have suggestions for improving this article,

Privacy policySitecore Trust CenterCopyright © 1999-2025 Sitecore