What I’m trying to do: I have an app_tables with a column named ‘payment_amount’. The table data is displayed on a Form in a DataGrid component. In another section of the Form, I have a label named ‘label_total’.
I would like to sum the values in the ‘payment_amount’ column then display the output on the ‘lable_total’ label. Furthermore, I would like to include the following calculations (I will make additional labels for the additional calculations):
- Total sum of all values
- Total sum of all values ‘this month’
- Total sum of all values ‘last month’
- Total sum of all values ‘this month last year’
Any direction/advice is greatly appreciated. Thank you.
Adam
https://anvil.works/build#clone:GBCVJBIINSA53MQ3=5CJ3UZ6XI6YD6IYNADZUCWLA