FME Transformers: 2024.2

Categories
Calculated Values
Data Quality

ListHistogrammer

Computes a histogram of the values found in a list, and returns these in a new list attribute on the feature.

If the source list did not have elements, a new list will not be created and this transformer will have made no changes to the feature.

Example

If a feature with this list enters this transformer:

somelist{0}.val = 'apple'

somelist{1}.val = 'donut'

somelist{2}.val = 'aardvark'

somelist{3}.val = 'apple'

somelist{4}.val = 'aardvark'

somelist{5}.val = 'apple'

the resulting feature will have this list attribute:

_histogram{0}.value = 'apple'

_histogram{0}.count = 3

_histogram{1}.value = 'aardvark'

_histogram{1}.count = 2

_histogram{2}.value = 'donut'

_histogram{2}.count = 1

Configuration

Parameters

Editing Transformer Parameters

Transformer parameters can be set by directly entering values, using expressions, or referencing other elements in the workspace such as attribute values or user parameters. Various editors and context menus are available to assist. To see what is available, click beside the applicable parameter.

For more information, see Transformer Parameter Menu Options.

FME Community

The FME Community has a wealth of FME knowledge with over 20,000 active members worldwide. Get help with FME, share knowledge, and connect with users globally.

Search for all results about the ListHistogrammer on the FME Community.