Problem in generating report of transactions

If I try to generate a report of transactions of previous years (ex 2017, 2018, etc), it generates a report containing today’s transactions. Can you help me resolving this issue?

Thanks