I have updated the google sheet tables in Web Apps and in this web app with date picker and other filter option. My table consists of some numbers (Row-Chargeback ) I am trying to generate the grand total (Sum) in the top left of my web app.
This should show only the number of selected days
for detailed script refer the sheet sample Sheet
You can use sum() api from datatable to get total of amount. You need to add below cdn.
Add HTML element before table tag, to display the sum amount.
And then add the below callback function during the table datatable initialization.
Note: Since you are using multiple plug-ins, it is beneficial in terms of performance to combine the plug-ins into a single CDN Link wherever possible, rather than making multiple requests to the DataTables CDN.