I use this line in Power Query Editor to pivot a table:
= Table.Pivot(#"Sorted Rows", List.Distinct(#"Sorted Rows"[Tipo]), "Tipo"