Setting Export filter criteria

I want to export only a limited part of my mailbox but it looks like it’s only possible to select an entire folder.

How can I set a filter so I can export only messages belonging to a specific category, within a specific time-frame or from specific contacts?