Hi, I need help with calculating XIRR formula
My data has deal_id, flow_date & cashflow amount. Refer to image below.

I want to calculate whenever new date detected the rate will be recalculate. For example: if the deal_id & flow_date is the same then the XIRR will be calculated. I have checked the function in the formula tool but don't quite understand it. I have attached sample data for your reference.
Really appreciate the help
Thank you in advance!!