Hi All,
I am trying to deduct price increase amounts from a value.
I have 2 datasets, one for customers revenue per nominal code per month for the year and another for price increases applied to each customer and nominal code throughout the year and I have joined the 2 sets together based on customer (site id) and nominal code.0.
I then planned to do a formula to say if the effective price rise date is greater than or equal to the revenue month then deduct the price increase from the customers revenue, as shown below.

The issue I have is that some customers have had more than 1 price rise on the same nominal throughout the year, so when I do the join it is creating 2 rows as seen below. The below is showing the customer has been charged £1,268.27 twice in March 2025 when they are actually only charged once. I want there to only be 1 line for this data and to be able to deduct the price increase amount of £63.48 from the value each month from Feb 25 onwards and in addition deduct £8.04 from the value from Apr 25 onwards.

Thanks in advance.