## PivotField::AddCalculatedItem(const U16String\&, const U16String\&) method


Add a calculated formula item to the pivot field.

```cpp
void Aspose::Cells::Pivot::PivotField::AddCalculatedItem(const U16String &name, const U16String &formula)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The item's name. |
| formula | const U16String\& | The formula of pivot item. |
## Remarks



Only supports to add calculated item to Row/Column field. 
## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [PivotField](../)
* Namespace [Aspose::Cells::Pivot](../../)
* Library [Aspose.Cells for C++](../../../)
## PivotField::AddCalculatedItem(const char16_t*, const char16_t*) method


Add a calculated formula item to the pivot field.

```cpp
void Aspose::Cells::Pivot::PivotField::AddCalculatedItem(const char16_t *name, const char16_t *formula)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The item's name. |
| formula | const char16_t* | The formula of pivot item. |
## Remarks



Only supports to add calculated item to Row/Column field. 
## See Also

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