How to pivot data on your dashboard views