---
schema_version: "1"
id: 7a4efe329c47320064f0a869f2e38b7cfe60824fab619499eb81cb1d9ca9a255
title: SelectionCriteria | Tableau Embedding API
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/embedding_api/reference/interfaces/SelectionCriteria.md
canonical_url: https://help.tableau.com/current/api/embedding_api/en-us/reference/interfaces/SelectionCriteria.html
source_site: help.tableau.com
content_type: documentation
content_hash: 94b1e967bffd39519fcfb26b9e72a8452e26676860c12c10bf0d1055b68f6ecb
description: Documentation for Tableau Embedding API
---
- SelectionCriteria

# Interface SelectionCriteria

SelectionCriteria interface is used to specify to the fieldName to values for Hierarchical, Categorical and Range based selections.

interface SelectionCriteria {  
    [fieldName](#fieldname): string;  
    [value](#value): [CategoricalValue](https://help.tableau.com/current/api/embedding_api/en-us/reference/types/CategoricalValue.html) | [RangeValue](https://help.tableau.com/current/api/embedding_api/en-us/reference/interfaces/RangeValue.html);  
}

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/SelectionInterfaces.ts:43

##### Index

### Properties

[fieldName](#fieldname) [value](#value)

## Properties

### `Readonly`fieldName[](#fieldname)

fieldName: string

Fieldname of the mark that is intended to be selected. Hierarchical fields follow the convention of "\[{parentField}\].\[{selectingField}\]"

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/SelectionInterfaces.ts:53

### `Readonly`value[](#value)

value: [CategoricalValue](https://help.tableau.com/current/api/embedding_api/en-us/reference/types/CategoricalValue.html) | [RangeValue](https://help.tableau.com/current/api/embedding_api/en-us/reference/interfaces/RangeValue.html)

Value that is intended to be selected. This can be specified as the list of values or a single value. Range-based selections need to provide the value in the format of RangeValue interface. To select a single quantitative value, use the RangeValue interface where both max and min are the value you want to select.

- Defined in packages/api-external-contract-js/src/ExternalContract/Shared/SelectionInterfaces.ts:60

### Settings

Member Visibility

- Protected
- Inherited
- External

ThemeOSLightDark

### On This Page

Properties

[fieldName](#fieldname)[value](#value)