Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1600
How to sum in this case?
posted

One of the columns in SummaryBand looks like below;

12:30:14   (which means 12 hours 30 minutes 14 seconds)

11:36:45

1:22:18

The sum of the column should be 25:29:17.

I think I should set summaryType as Formula like....

summaryBand.Summaries.Add(

"TMinutes", SummaryType.Formula, summaryBand.Columns(fnMinute), SummaryPosition.UseSummaryPositionColumn)

But I have no idea how to set up the formula, can you help me?

 

Parents
  • 469350
    Suggested Answer
    Offline posted

    Hi,

    What's the DataType of the column?

    The formula for this would look just like the formula for any other column sum. Something like this:

    "SUM([column key])"

    But this will only work if the data type of the column supports the addition (+) operator. If it does not, then another option would be to use SummaryType.Custom and create your own ICustomSummaryCalculator class.

Reply Children