# GetFieldSelectionCount Method

## Overloads

| [GetFieldSelectionCount(String)](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ISelectionObserver.GetFieldSelectionCount.htm#Qlik_Sense_Client_ISelectionObserver_GetFieldSelectionCount_System_String_) |  | Get the number of selected values of the specified field. |
| --- | --- | --- |

[](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ISelectionObserver.GetFieldSelectionCount.htm) [](https://help.qlik.com/en-US/sense-developer/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.ISelectionObserver.GetFieldSelectionCount.htm)

## GetFieldSelectionCount(String)

Get the number of selected values of the specified field.

### Declaration

```

          int GetFieldSelectionCount(string fieldName)
    
  
```

### Parameters

| Type | Name | Description |
| --- | --- | --- |
| System.String | fieldName | The name of the field to check. |

### Returns

| Type | Description |
| --- | --- |
| System.Int32 | The number of selected values of the specified field. |