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
80
Summarie Formular to Calculate like Excel: FREQUENCY
posted

Hello Forum,

 

I want to Display in a UltraWinGrid at the Bottom a Summarie Field

where I simply want to put out Calculated data from a specific Column

1) Total RowCount in Column [Differences]

2) The number and % how often a 0 is found in Column [Differences]

3 The number and % how often a 1 is found in Column [Differences]

 

The Data in the column [Diffrences] looks like this

ID   Diffrences

1    0

2    0

3    0

4    0

5    1

6    1

 

This Codeline was Created by the Formular editor:

Infragistics.Win.UltraWinGrid.SummarySettings summarySettings1 = new Infragistics.Win.UltraWinGrid.SummarySettings("totalDif", Infragistics.Win.UltraWinGrid.SummaryType.Formula, "count([Differences])", null, -1, false, null, -1, Infragistics.Win.UltraWinGrid.SummaryPosition.Left, null, -1, false);

and it Simply Calculates the Total number of Rows.

Now i want something like in excel: = FREQUENCY(A1:A13; 0), but i cant find the correct formular

What is the simplest way to do that?

TIA

Michael!

 

 

 

Parents Reply Children
No Data