## PivotField::Group() method


Automatically group the field.

```cpp
bool Aspose::Cells::Pivot::PivotField::Group()
```

## Remarks


If the field only contains blank and date time, the field will be grouped by Months. If the field only contains blank and number, the field will be grouped by Number. Else only returns false without any group. 
## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [PivotField](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotField::Group(const PivotFieldGroupOptions\&) method


Groups the pivot field with options.

```cpp
bool Aspose::Cells::Pivot::PivotField::Group(const PivotFieldGroupOptions &options)
```


| Parameter | Type | Description |
| --- | --- | --- |
| options | const PivotFieldGroupOptions\& | Options for pivot field grouping settings. |

## ReturnValue



## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [PivotFieldGroupOptions](../../pivotfieldgroupoptions/)
* Class [PivotField](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
