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
4165
Unable to Display a column Summary Formula
posted

Hi,

We have a grid with a column named GP. We would like to make this the Average of two sums of two other columns, cost and sell.

I thought it should be this (totalCost/totalSell or the key's for two other summaries on the same grid)

.Formula = (AVG[totalSell()] - AVG([totalCost()]) / AVG([totalSell()]

However it does not work. Even if try a simple formula like

.Formula = SUM([gp]) 

I get just an empty grey square.


I am sure we are missing something simple

EXAMPLE

e.Layout.Bands[0].Summaries.Add("gpavg", SummaryType.Formula, e.Layout.Bands[0].Columns["gp"]);
e.Layout.Bands[0].Summaries["gpavg"].Formula = "SUM([gp])";

Thanks,

M