How to show value in child table

In this table I have items details table and then I have sub items details where we submit the qty delivered

but I want to show total received qty in the form when making an entry on right side form

I tried to use this and also tried with condition like current form ID = Current form popup-> Replacement Items-> ID but it still shows all values from parent form it should match the product name selected and show only that value