ExperimentationAnalyzing experiments

Filtering experiment results

This topic explains how to use attribute filters to narrow experiment results by attribute.

Attribute filters allow you to analyze your experiment results by certain cross-sections of your experiment audience using context attributes.

For example, if you wanted to view only results from users within Canada, you might narrow your results by users with a “Country” attribute value of Canada.

Add attribute filters

To filter results by attribute, you can add attributes in the “Select metrics” step when you create an experiment. To learn how, read Creating experiments. You can then filter your results by the different values of one of those attributes.

You can also add attributes to an existing experiment from its Results tab. Here’s how:

  1. Navigate to your experiment’s Results tab.
  2. Scroll to the results table and click Add.
  3. Select Attributes. An “Add attributes” dialog appears, with any eligible and ineligible attributes listed.

The add attribute option on a running experiment.

The add attribute option on a running experiment.
  1. Select any eligible attributes you want to view.
  2. Click Add attributes.

You can now filter your experiment results by these attributes.

Attribute value update timing

After you add attributes to an existing experiment, the time it takes for LaunchDarkly to update the attribute values depends on the metric type and age of the experiment iteration:

Metric typeIteration ageTime to update
LaunchDarkly hostedLess than one dayApproximately five minutes
LaunchDarkly hosted1-60 daysApproximately one hour
LaunchDarkly hostedMore than 60 daysApproximately one day
Warehouse nativeAnyAfter sync with external warehouse, usually 1-2 hours

View filtered results

To filter experiment results by attribute:

  1. Navigate to your experiment’s Results tab.
  2. Above the results table, click All attributes. A menu of attributes appears.
  3. Hover over an attribute from the menu. A list of attribute values appears.
  4. Check the box next to any attribute value you want to narrow your results by.

The graph updates to display results from only contexts with the attribute value you selected:

Experiment results filtered by attribute.

Experiment results filtered by attribute.
You cannot filter results for anonymous contexts or private attributes

Private attributes and contexts with the anonymous property set to true are not available for data filtering. Private attributes and anonymous context attributes do not appear in the “Attribute filters” menus.

Configure your SDK: Context configuration