Creation of simple dynamic table like pivot table, when data are changed

I want a simple dynamic table in spreadsheet which looks similar to pivot table. I would like to know whether table can be created if the data are changed dynamically, when filtering has done, just like a pivot table which has dropdown filter. Can anyone help me out?
