Sales/Purchase comparison report

Hello,

I am trying to create a comparison report to see the evolution of sales/purchase from one year to another.
I’d like to be able to display the orders by cutomer/product for the same month the year before.
Can I do this with some kind of dynamic report like the sales analysis?
I’d like to be able to choose all customers/suppliers/items or just one and which month I’d like to compare ?

I checked this page: https://erpnext.com/kb/report/making-custom-reports-in-erpnext but the explanations are light… I don’t know where to find the ids/names of the fields I want for example…

Thanks for your help on this

You can check field names from Customize Forms or directly from mysql window in terminal. To connect mysql, you can use bench frappe --mysql <site_name>

Ok I’ll have a look, thank you.