It sounds like you're looking for 2 tables.
- A Ledger table showing Tenant, Payment, and Date
- A Tenant Table showing summary info and letting you know if they haven't paid for the month yet
Sample Tables Below
Ledger
+--------+------------+------------+
| Tenant | PaidDate | PaidAmount |
+--------+------------+------------+
| Paul | 2015-06-01 | $750 |
| Peter | 2015-06-15 | $600 |
| Mary | 2015-06-29 | $500 |
| Paul | 2015-07-01 | $750 |
| Peter | 2015-07-15 | $600 |
| Mary | 2015-07-29 | $500 |
| Paul | 2015-08-01 | $750 |
+--------+------------+------------+
Tenant
+--------+------------+
| Tenant | LastPaid |
+--------+------------+
| Peter | 2015-07-15 |
| Paul | 2015-08-01 |
| Mary | 2015-07-29 |
+--------+------------+
The LastPaid
column in the Tenant table is a calculated column that points back to the Ledger table with the formula =AGGREGATE(14,6,ledger[PaidDate]/(ledger[Tenant]=[@Tenant]),1)
( online info on aggregate()
here, but basically this gets the most recent date from the ledger table for the tenant ). This assumes you've formatted build tables into datatables ( with ctrl + t ) and renamed them "tenant" and "ledger" ( with alt + j + t + i ).
You have a couple options after that, but the easiest is probably a conditional formatting option on the tenant table ( alt + h + l + n ). I used =$B2<DATE(YEAR(TODAY()),MONTH(TODAY()),1)
when the table starts in cell A1
. After all this, it ends up looking like the below
.
Please feel free to comment with any questions or revise the OP with any updates. Hope this helps!