API for generating pivot reports.