The slicer is a good way to filter data visually and faster for both tables and pivot tables. Please follow the steps below to add a slicer for a table:
Step 1: Click anywhere in the table;
Step 2: Click the "Insert" Tab from the ribbon
Step 3: Click "Slicer" in the Filters section;
Alternatively, click "Insert Slicer" in the "Design" Tab (or Table Design);
Step 4: "Insert Slicers" window with all columns titles will appear, select the titles you want to be slicers (e.g., Gender);
Step 5: Click "OK" at the bottom, a new slicer with "Gender" will be generated.