I have a very basic query however not sure if Tableau is capable of doing this:

Fruits

Quantity (Kg)

Imported/Exported

Apple

100

Imported

Banana

200

Exported

Pine Apple

200

Exported

Cherries

50

Imported

Strawberries

60

Imported

If I put this list on a Dashboard and set a filter Imported/Exported, how do I display the number of matching items? For instance for this table, if I click imported, I should see "3 items selected." (These are apple, cherries, strawberries.) somewhere on a dashboard. Can anyone help me in this?

My second query is if I click on the filter Exported only, then is there any way to calculate and display aggregate amount of all Exported items? (400 KG for this example.)