We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Calculations on Summary Columns in PivotGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

105951 Nov 29,2012 03:38 PM Dec 4,2012 03:36 AM Windows Forms 1
loading
Tags: PivotGridControl
Arora Ruchika
Asked On November 29, 2012 03:38 PM

Hi,

I am trying to use Syncfusion PivotGrid control to achive Pivot functionality in Excel. I have 2 columns say Column1 and Column2 . I want to have a third column calculated as Sum(Column1) / Sum(Column2) *100.

I can calculate individual sums on column1 and column2 using SummaryType = DoubleTotalSum , but I am not getting how to perform calculations on Summary Columns.

Any help will be highly appreciated.

Thanks in advance!

 


Vinish Kumar K [Syncfusion]
Replied On December 4, 2012 03:36 AM

Hi Ruchika,

 

Thanks for your interested in Syncfusion products.

 

Query

Pivot Grid Calculation.

You can achieve this by adding PivotCalculations in pivot grid control. Please refer the following code.

 

Code:

 

this.pivotGridControl1.PivotCalculations.Add(new PivotComputationInfo { FieldName = "Amount", Format = "#,##0", SummaryType = SummaryType.DoubleTotalSum });

 

 

 

Let me know if you have further concerns.

 

Regards,

Vinish.


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;