What is the proper syntax for COUNT DISTINCT in a Prepare Script?
COUNTDISTINCT([Level(HCMEmpTimeRecord.HCMEmpTimeRecord).Employee])