Skip to content

The example shows how to use window functions in the calculated fields.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/winforms-dashboard-window-function-calc-field

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dashboard for WinForms - How to Use Window Functions in Calculated Fields

This example emulates the standard Percent of Total window calculation behavior in the calculated field's expression.

You cannot include the window functions in a calculated field directly. To support window functions inside a calculated field expression, use the w-Function.

This example contains the calculated field with the following expression:

ToDouble(Sum([Sales])) / w(Total(Sum([Sales])), partitionBy(), orderBy())

The second part of this expression uses the w-Function with the embedded window function (Total in this example) to calculate the total Sales summary for the entire aggregated data collection. The current row summary is divided by this total to obtain the percentage. In addition, the Percent formatting is applied.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)