Percentage column
Hi Juraj,
We have
analyzed the reported problem and it can be resolved by using the “CalculationType”
property of PivotComputationInfo as “Formula”.
Please refer
to the following code example.
|
<syncfusion:PivotGridControl.PivotCalculations>
<syncfusion:PivotComputationInfo CalculationName = "Total" Description = "Summation of
values" FieldName = "Amount" Format = "C" SummaryType="DoubleTotalSum"/> <syncfusion:PivotComputationInfo CalculationName = "Total" Description = "Summation of
values" FieldName = "Quantity" Format = "#,##0"/>
<syncfusion:PivotComputationInfo CalculationName = "Total" Description = "Summation of
values" FieldName = "UnitPrice" CalculationType="Formula" Formula="[Amount] /
[Quantity]" Format = "C" SummaryType="DoubleTotalSum"
AllowRunTimeGroupByField="False"/> </syncfusion:PivotGridControl.PivotCalculations> |
Regards,
Saranya C.
Attachment: CS_c0952c47.zip
We have modified your sample. Please refer to the appropriate sample below.
Sample Link:
122102
NOTE: The expression given in the “Formula” property must have the “FieldName” of “PivotCalculations”.
Regards,
Saranya C.
- 3 Replies
- 2 Participants
-
JT Juraj Tomana
- Feb 17, 2016 10:07 AM UTC
- Feb 18, 2016 10:21 AM UTC