@Tuan_Dang Unfortunately, there isn’t a straight forward way to do this in AppSheet (maybe a community wizard can prove me wrong).
Here’s a sample app that gets pretty close to what you want: appsheet.com - Sum by date - Compute stats over a custom date range Sum by date - Compute stats over a custom date range appsheet.com
As Tony wrote, you can’t have a summing row in your table, but you can do that in the employee table. Add two normal columns like Start and End. Then create a virtual column with the app formula like SUM(SELECT(Payroll[Income],AND([Date]>=[_THISROW].[Start],[Date]<=[_THISROW].[End]))).
@Aleksi_Alkio Thank you so much. That expression works but i also want to filter by employee.
So the start and end date works but it summed up all the employees.
On this payroll report form, I also include dropdown list with all the employees to choose from.
So each employee name has an assorted employee id PRIMARY KEY, but in order to make the match, i do not want to match it by name since it is not UNIQUE. I realize you made use of [_THISROW] syntax to pull the data that is currently selected on the form.
but this will only pull the name of the employee name.
how do i create a dropdown list that has both employee name and its associated employee id but only display the employee name on the dropdown list this way, when an employee is selected, i will take the employee id to read another table to retrieve the correct records for that employee?