Flexible table component / Pivot Table

Wow that's great. I suspect it's not possible to do it in much less code, a pivot table is a relatively complicated thing. May well give this a go. Thanks for sharing!