We are updating the DevExpress product documentation website and this page is part of our new experience. During this transition period, product documentation remains available in our previous format at documentation.devexpress.com. Learn More...

How to: Pass a Dashboard Parameter to a Calculated Field's Expression in Code

The following example demonstrates how to create a new dashboard parameter and pass it to a calculated field's expression.

In this example, the dashboard connects to the Northwind database and selects data from the 'SalesPerson' table. A new calculated field evaluated at a summary level returns 'true' or 'false' depending on whether on not the average discount exceeds the selected parameter value.