Skip to content
Back to articles

Reports · November 28, 2026

Test Salesforce Report Buckets with Boundaries and Blanks

Group Accounts by employee count without a custom field, then test range boundaries, blank values, totals, and report filters before sharing.

A sales manager wants an Account list grouped into three staffing bands. Creating another object field may be unnecessary if the classification is useful only in this report. A numeric bucket column can provide the grouping, but a convincing chart is not enough: an employee count exactly on a boundary, or a missing value, can change the interpretation.

This tutorial uses fictional Accounts in a sandbox. The proposed categories are Starter for 50 employees or fewer, Growth for more than 50 through 250, and Enterprise for more than 250. These are sample business definitions, not Salesforce’s standard customer segments. Confirm your own thresholds with the report owner.

1. Define the report population first

Create an Accounts report in Lightning Report Builder. Select a folder you can save to and confirm you have the report-building permissions required in your org. Salesforce’s numeric-bucket documentation lists Enterprise, Performance, Unlimited, and Developer editions; check availability before promising the feature to a team.

For this exercise, choose an account scope that includes the authorized test records and a Created Date range that includes them. Add Account Name and Employees to the detail columns. Use a distinctive test-name prefix or a controlled test folder so your checks do not mix synthetic and real customer data.

Run the ungrouped report and confirm that it returns the expected Accounts before adding categories. If fields or rows are missing, inspect the report type, filters, and user access first. The custom report types guide helps separate the report’s available data structure from its presentation.

2. Add and name the numeric bucket

  1. In the Outline pane, open the menu next to Columns and choose Add Bucket Column.
  2. Select Employees as the source field. Name the bucket Employee band so a reader knows what it measures.
  3. Set the first upper breakpoint to 50 and name that range Starter. Add a second upper breakpoint of 250 named Growth. Name the remaining range above 250 Enterprise.
  4. Leave the option to treat empty source values as zero unchecked for this example. Apply the bucket.
  5. Group the report’s rows by Employee band, retaining the Employees detail column for inspection. Save it with a descriptive name such as Accounts — Employee bands — QA.

Salesforce’s numeric range rule includes the upper breakpoint and excludes the lower breakpoint. Here, 50 belongs to Starter and 250 belongs to Growth. A label such as “50–250” is ambiguous because it appears to include 50 in both categories; document the actual comparisons in the report description.

Employee bucket comparisons: Starter is 50 or fewer; Growth is greater than 50 through 250; Enterprise is greater than 250. Blank stays unbucketed when treating empty values as zero is off.
Original boundary diagram for this example. The separate blank path preserves the distinction between missing data and a recorded zero.

3. Use an explicit acceptance set

Create seven synthetic Accounts with the values below, or use an approved equivalent test set. Keep the blank genuinely empty. Run the full report rather than relying only on the preview, inspect the detail rows, and compare each result with the expected output.

Expected bucket results for the seven test Accounts
EmployeesExpected resultCheck
0StarterRecorded zero remains a value
49StarterBelow the first boundary
50StarterUpper boundary is included
51GrowthAbove the first boundary
250GrowthSecond upper boundary is included
251EnterpriseAbove the second boundary
BlankDash / unbucketedMissing is not silently zero

For this isolated test population, the expected counts are three Starter, two Growth, one Enterprise, and one unbucketed Account: seven total. Any different result deserves a row-level investigation. Check source values and filters before changing the thresholds to make totals look right.

Now enable the empty-as-zero option temporarily and rerun. The blank test Account should join the bucket containing zero. Record the difference, then restore the unchecked setting. This comparison gives the manager a concrete choice about missing data rather than burying it in a setup checkbox.

4. Check filters and publish the definition

Test a bucket filter, then inspect it again after any change to the category values. Salesforce warns that modifying bucket values can remove filters that refer to the bucket column. Re-run the report and confirm its scope after edits, especially before scheduling delivery.

Write the thresholds, blank policy, and intended population in the report description. Ask an intended reader to verify the saved report using their own access. If you later add a subscription, follow the safe running-user and recipient checks rather than assuming the author’s view matches the delivered results.

Limits and when to use an object field instead

Official Salesforce references

Documentation checked November 28, 2026. The test records and acceptance totals above are an original worked example; they do not represent results from your org.

Browse all articles