Custom report help

You may want to wait before you put too much effort into that because

For your actual question.
Have you looked at the Reports → Tax code. Such as Tax audit, Tax summary, Tax transactions.

What countries tax requirements are you trying to comply with? Several countries have localisations which produce similar reports to those.