Modify ECOM Daily Sales/Return Report then add a condition that will filter all null departmentId will display as UNDEFINED. I also perform a test on my local then deploy on the server generate the report