Datatable, How to use GroupBy with SUM function

Hello everyone,

i have this excel table i need to sum amounts in the column B by currency.
So that i get another table with consolidated amounts for each currency with the date and Characteristics numbers.

on the left side is the input table and in the right side the output table
Kind regards,
Hussam