Pivot reporting framework

Works fine for trade fields - position would be trickier I think