You can use multiple API Calls and merge the data,since you can get Monthly data without departments and Department data without monthly breakdown. Alternatively you can query raw transactions with filtering for date ranges and tracking category,instead of using the P&L report endpoint.