You can also create segments from existing filter definitions of a visual.
This article demonstrates how to create new data segments in the dataset Customer Value Analysis, based on data previously imported into Arcadia from the datafile customer-value-analysis.csvflights-2014-01.csv.zip.
To create a new data segment in the dataset Customer Value Analysis, follow these steps.
From the available fields, under Dimensions, select State
and drag it over Filters shelf on the main part of the screen. Drop to add it to the shelf.
In the Filter for State window modal, select Arizona and Nevada, and click Apply.
Click the (save down) icon to the left of the Filters shelf.
From the menu, select Create New Segment.
In the Add Segment window modal, specify the following:
[State] in ('Arizona', 'Nevada')
. Click Save.
On the Filters shelf, at the right of the State
filter, click the (down arrow) icon to open the menu.
From the menu, select Clear values.
Again, click the (down arrow) icon to the right of the State
filter to open the menu.
From the menu, select Select values.
In the Filter for State window modal, select Washington, and click Apply.
To define the next segment, select Create New Segment from the Save as Segment menu.
In the Add Segment window modal, specify the following:
[State] in ('Washington')
. Click Save.
To demonstrate how to add specifications to an existing segment, Clear values on the Filters shelf, then Select values, and specify only Oregon in the Filter for State window modal.
Click Apply.
To add the new selection to an existing segment, select Add to Segment from the Save as Segment menu. In the secondary menu, under Geographic Regions, select North West.
Notice that when the Edit Segment modal window appears, it shows the existing configuration for the segment North West.
However, its Filters specification includes Oregon: [State] in ('Washington', 'Oregon')
.
Click Save to finish adding the specification to the segment.
Similarly, define a new segment, California, in the Geographic Regions segment group.
Notice that all three segments (and the segment group) we just defined appear in the Segments section on the left navigation menu, immediately above Fields.
To demonstrate how segments work, select one of the options, and click Refresh Visual.
Notice that the visual only shows the rows that match the segment criteria.
Lastly, remember that you can manage segments in the Dataset Segments user interface.