Skip to content

Latest commit

 

History

History
52 lines (37 loc) · 5.27 KB

File metadata and controls

52 lines (37 loc) · 5.27 KB

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)