# Expense Recorder to show daily records and total amount spent on that day

**URL:** https://community.glideapps.com/t/expense-recorder-to-show-daily-records-and-total-amount-spent-on-that-day/73900
**Category:** Ask for Help
**Created:** [June 5, 2024, 6:13pm UTC](https://community.glideapps.com/t/expense-recorder-to-show-daily-records-and-total-amount-spent-on-that-day/73900 "2024-06-05T18:13:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![micheal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/micheal/32/80181_2.png) [@micheal](https://community.glideapps.com/u/micheal)
#### Post date: [June 5, 2024, 6:13pm UTC](https://community.glideapps.com/t/expense-recorder-to-show-daily-records-and-total-amount-spent-on-that-day/73900/1 "2024-06-05T18:13:48Z")

</div>

Hello Gliders, thanks for all the previous support. I checked past topics but none of them were able to help me out. I’m trying to create an expense-tracking app. I have a sheet where users can fill in the date, title, and amount for that expense. But what I’m trying to do is be able to group the rows by dates.

For instance, if a team fills in multiple expenses made on June 5th, 2024 then I’m able to group the records under that date and display it in the layout also I’d want to be able to get the total amount of expenses on that day.

I tried using the template column to combine some rows and present it in Kanbas layout then grouped it by date but it’s not showing all the records made on a date also I’m not able to calculate the total of the expenses made on that day and present it.

I’ve been here for two days now watching tons of videos but can’t get it, and I’d appreciate your help.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 5, 2024, 11:54pm UTC](https://community.glideapps.com/t/expense-recorder-to-show-daily-records-and-total-amount-spent-on-that-day/73900/2 "2024-06-05T23:54:00Z")

</div>

- Create a “date value” math column with the formula being: YEAR(D)\*10^4+MONTH(D)\*10^2+DAY(D) with D being the date of the record. You would get 20240606 for today, for an example.

- Use a query that targets the same expenses table, filtered by “date value” is this row \> “date value”.

- Rollup to get the total expense from that query.

- Use a template column to combine the actual prettified date (from your original date column) and the rollup.

- Group the Kanban column by that template.

---

<div class="post-metadata">

### Author: ![micheal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/micheal/32/80181_2.png) [@micheal](https://community.glideapps.com/u/micheal)
#### Post date: [June 6, 2024, 6:43am UTC](https://community.glideapps.com/t/expense-recorder-to-show-daily-records-and-total-amount-spent-on-that-day/73900/3 "2024-06-06T06:43:22Z")

</div>

Hi, thank you for the response. I got the math column but I didn’t quite get the query column. I know I’m making a mistake from somewhere so please check the image. Thank you.

 ![twoo](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/6/a6568288b8641a5b34d0b3853cfc3e905d9361cb.png)  
 ![one](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/2/12a766b30fb8104aa58075d7097a5a6fd3f0dd5a.png)

---

<div class="post-metadata">

### Author: ![micheal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/micheal/32/80181_2.png) [@micheal](https://community.glideapps.com/u/micheal)
#### Post date: [June 6, 2024, 8:26am UTC](https://community.glideapps.com/t/expense-recorder-to-show-daily-records-and-total-amount-spent-on-that-day/73900/4 "2024-06-06T08:26:57Z")

</div>

Update I used the relation column to link the data values to itself… then I used a rollup column and proceeded with ThinhDinh response

 ![2024-06-06 09_23_53-Expenses Tracker Template · Glide](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/8/68a7941ed648989061c81a929ae1377419b605ed.jpeg)

Thanks ThinhDinh  
(I got help from Aleksey Smolokovskiy on the Loqoders group for this part)

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [June 13, 2024, 8:27am UTC](https://community.glideapps.com/t/expense-recorder-to-show-daily-records-and-total-amount-spent-on-that-day/73900/5 "2024-06-13T08:27:04Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
