lookup filter from Master

I have 3 tables:
1.Master (there is a “period” field)
2. Details (see aging table)
3.aging (there is a “period” field)

when input (add page) form master detail
in the Details add i want to lookup tables to the aging table.

how to make aging data appear according to the filter period in the master ( periode filed )

I see the parent / filter only leads to the detail table.
if i use a filter, can the filter be made dynamically to read the filed input on the Master, if possible what is the valiabel name from the master

Better use values from current table to construct SQL to lookup data from the master table.