User88744855 posted
suppose the data is stored in my table is like
EMP ID EMP NAME DEPARTMENT
---------- ----------------- ---------------------
101 KEITH MATH,ENGLISH
102 SAM ENGLISH,HINDI
103 KEITH HISTORY,MATH
104 SAM HISTORY
105 MARK ENGLISH
i want to display employee once and their distinct department the out put would be like
EMP ID EMP NAME DEPARTMENT
---------- ----------------- ---------------------
101 KEITH MATH,ENGLISH,HISTORY
102 SAM ENGLISH,HINDI,HISTORY
103 MARK ENGLISH
my report out put would look like above. i want to show distinct employee but their department will include all distinct department name separated by comma.
KEITH is in the department like MATH,ENGLISH and HISTORY,MATH so keith record will show only once and his department will be like MATH,ENGLISH,HISTORY.....department MATH will not show twice.
i managed to hide duplicate row with expression like
=iif(Fields!EmpID.Value = Previous(Fields!EmpID.Value), True, False)
but not being able to concatinate distinct department with the respective employee. so please help me with idea that how to do all this in report level not in sql level. thanks