How to create a pivot table from a data table

@caduque have a look here,