Statistical mode for histogram and some prepping for adhoc dashboards