Data should load in table based on value selected from lookupfield

Data should load in table,If I select value from lookupfield.

Please,give me example

Use query parameter in the table’s datasource.