Hi Jamshaid,
We have noticed that you missed to provide the aggregation type for the specific value
fields while applying formula
for Calculated Field. We advise you to add the aggregation type to the value
fields in the calculated field formula. Please look at the below code example
for reference.
Code Example
calculatedFieldSettings: [
{
name: 'Total',
formula: '"Sum(In_Stock)"*"Sum(Sold)"'
}
|
Meanwhile we have prepared you a sample for your reference.
Sample: https://stackblitz.com/edit/react-dcujl5?file=index.js
For more information on Calculated Field, please
refer our UG documentation link below.
UG Document: https://ej2.syncfusion.com/react/documentation/pivotview/calculated-field/
With regards,
Rajeshkannah Gopalakrishnan