hi, im creating a report data that need to be exported to pdf or excel. but i have a problem, if i enable this pipe:

the pdf export show the counted data & resulting invalid footer row like this:

but when i disable the pipe, the excel result does't have total count row data.

how to set if i export excel, the pipe will run, but if i display report & export pdf, the pipe didn't run?
