hi @lukuser
i believe this should work, take a look
https://playground.jsreport.net/w/bjrmatos/DxCB_tRG
i have modified the pptx to have this call at the top {{pptxSlides (chunksBySuites buildings)}} and then just added the chunksBySuites helper
function* _chunk(buildings, maxSuites) { for (let i = 0; i < buildings.length; i ++) { const { suites, ...rest } = buildings[i] for (let j = 0; j < suites.length; j += maxSuites) { const newBuilding = { ...rest } newBuilding.suites = suites.slice(j, j + maxSuites) yield newBuilding; } } } function chunksBySuites(buildings) { const maxSuites = 3 return [..._chunk(buildings, maxSuites)] }