Dropdown Filter to Table

Hi!
I have crated a filter on my site that displays data in a table based on the name of an employee selected in the dropdown. The employee name is a reference field.
import wixData from ‘wix-data’ ;
export function nameDropdown_change ( event ) {
$w ( ‘#dynamicDataset’ ). setFilter ( wixData . filter ()
. eq ( ‘name’ , $w ( ‘#nameDropdown’ ). value )
);
}
The code works fine, but the first row in the table displays the same data from the collection regardless of the employee selected. I have tried to write code using a WixDataQuery() and include(), however; I cannot seem to get it to work. Any suggestions?