How to convert a table to pivot table with sum of a particular column

@jamnanin
You can group by based on DepartMent column.
For grouping and take the sum refer this post

creating new datatable after grouping and taking sum of each group.
Now to take the sum of that particular column refer the below post

Regards,
Mahesh