Calculating Total Balance Per Customer For Individual Transactions

I am attempting to calculate a running total of all the transactions that match the criteria of the tenant and property column. 

Here is table 1 - the transactions. 

Screenshot 2022-09-23 at 01.58.32.png

 

I am looking to calculate in the Contract rental amount collected column ,in table 2, the running total of any transaction that has matching REF columns Tenant & Property. 

Table 2 - total 

Screenshot 2022-09-23 at 02.01.47.png

I tried this formula to do it based on tenants REF alone, but, it did not calculate anything. 

Screenshot 2022-09-23 at 02.03.55.png

 

If anyone can help me I would be greatly appreciative 

0 1 91
1 REPLY 1

You can try

SUM(
 SELECT(
  table 1[Rentatl Collection Amount],
  AND(
   [Property] = [_THISROW].[PROPERTY],
   [Tenant] = [_THISROW].[TENANT]
  )
 )
)
Top Labels in this Space