Is it possible to have a custom aggregation function on the front end (react) side?. The function will return a result that has to be displayed on the cell
Thank you for posting on our forum.
Flexmonster does not allow defining custom aggregations on the front-end side.
Adding custom aggregation to Flexmonster requires using the custom data source API – our custom communication protocol that allows you to retrieve already aggregated data from a server to Flexmonster Pivot. This approach implies implementing the server that would be responsible for fetching data from a data source, as well as processing and aggregating it. Then the data is passed to Flexmonster Pivot in a ready-to-show format.
Here is our Supporting more aggregation functions guide for detailed information on this point.
If using custom backend aggregations is not an option for you, we suggest checking out Calculated values feature provided by the component. This functionality is fully supported on the client-side and may be used to add measures based on custom formulas.
Please let us know if further questions arise.