Skip to content

This example shows how to add fiscal functions to the WinForms Dashboard in a client mode.

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/How-to-calculate-fiscal-functions-for-date-time-data-fields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dashboard for WinForms - How to Calculate Fiscal Functions from Date-Time Data Fields

This example shows how to create and register custom functions that calculate the fiscal year, quarter, and week from date-time data fields in a client mode. These custom functions implement the ICustomFunctionOperatorBrowsable interface. The interface allows you to create a function that can be used for custom calculations in client mode. Refer to the Custom Functions article for more information.

Files to Review

Overview

In this example, the Grid dashboard item displays the fiscal year, quarter, and week for the corresponding date.

SalesDynamics

The following expressions calculate fiscal values for the corresponding date:

Calculated Field Expression
Fiscal Year GetFiscalYear([OrderDate])
Fiscal Quarter GetFiscalQuarter([OrderDate])
Fiscal Week of Year GetFiscalWeekOfYear([OrderDate])

Call the CriteriaOperator.RegisterCustomFunction method to register custom functions in your project (see: Program.cs/Program.vb).

Documentation

Does this example address your development requirements/objectives?

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

About

This example shows how to add fiscal functions to the WinForms Dashboard in a client mode.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published