Is there a way around this error?
Using LISTAGG/PERCENTILE_CONT/MEDIAN aggregate functions with other distinct aggregate function not supported
My code:
select
date,
count(distinct listing_id) as count_listings,
count(distinct inquiry_id) as count_inquiries,
avg(days_btw_start_date_first_inquiry) as avg_days_btw_start_date_first_inquiry,
median(days_btw_start_date_first_inquiry) as med_days_btw_start_date_first_inquiry
from together
group by 1
The median is throwing the error, but I'm hoping to have the counts + avg + median in one table.
Thanks!