Add subtotal. Fix rendering of piechart with the correct information. Fi...

...x default filter

Fixes https://trello.com/c/i3Uu0udL