# GetNumberOfFieldsWithSelections Method

## Overloads

| [GetNumberOfFieldsWithSelections()](https://help.qlik.com/en-US/sense-developer/November2024/Subsystems/NetSDKAPIref/Content/Qlik.Sense.Client.SelectionObserver.GetNumberOfFieldsWithSelections.htm#Qlik_Sense_Client_SelectionObserver_GetNumberOfFieldsWithSelections) |  | Check how many fields that currently have any selected values. |
| --- | --- | --- |

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

## GetNumberOfFieldsWithSelections()

Check how many fields that currently have any selected values.

### Declaration

```

          public int GetNumberOfFieldsWithSelections()
    
  
```

### Returns

| Type | Description |
| --- | --- |
| System.Int32 | The number of fields with any selections. |

### Implements

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