I have a report with calculated values. I noticed that the grand total that is being calculated when I select the rows does not match the value being shown in the grand total row. It is happening for most of the calculated value columns


I am not sure but I think the formula is also being applied to the Grand total row values
Hello Amogh,
Thank you for contacting us.
You are right that the totals of the calculated measure are calculated using the formula as well. Currently, Flexmonster only supports totals based on the same formula, not on the sum of the values.
However, the request to define separate aggregations for totals is already included in our Customers' Wishlist. Our team will notify you about any updates on the matter.
You are welcome to contact us if other questions arise.
Kind regards,
Nadia
Hi Nadia,
Is there a timeline of when this feature would be introduced? This has been flagged as an open issue by many of our clients so we needed to give them a realistic estimate.
Regards,
Amogh
Hello, Amogh,
Thank you for reaching out to us.
At the moment, built-in support for using a different aggregation for Grand Totals (separate from the calculated measure formula) is planned for version 3.0. You can track the progress on our public roadmap here:
https://prerelease.flexmonster.com/roadmap
As a workaround, we suggest using the getData API call to retrieve the data and the customizeCell method to modify the totals. The getData method can retrieve data from the current data source, but with a different slice, allowing retrieval of the totals calculated by a different formula or aggregation. This method reloads the data when the report is loaded and changes. When the data is retrieved, the customizeCell method can be used to set the total values in the corresponding cells.
Additionally, you can observe the slice changes using the reportcomplete and reportchange events, so that report changes (like applying a filter) will be passed to the slice used in getData.
We have prepared the example illustrating this approach: https://jsfiddle.net/flexmonster/t49o8520/
Please note that this approach has some limitations:
getData requests are required.customizeCell are not formatted, so formatting should be applied manually.Feel free to contact us if more questions arise.
Best regards,
Maksym