Getting a Sum after applying filters

Here’s a concept to get you started.

Bottom line is you have to set up your own set of filters, then a relation/query based on those filters, and a rollup to get the amount of hours.

With that relation/query in place, you can then setup a button to export a CSV file, and then let the user download that file.