Excel Pivot Table Count Distinct Values Postgresql