Creating a pivot table - TanStack