I’m at a loss as to how to do this as it’s throwing an error in looker …
I have 2 dates were i’m calculating the duration
dimension_group: dwell_time {
type: duration
intervals: [second, minute, hour, day]
sql_start: ${firstfield_date_created_time} ;;
sql_end: ${secondfield_date_created_time};;
}
Value works fine
If I run the avg dwell
measure: avg_dwell {
type: average
value_format_name: id
sql: ${minutes_opp_addsite} ;;
}
This works correctly
However when I try and get the median (because avg swings this way too much on high times)
measure: median_dwell {
type: median
value_format_name: id
sql: ${minutes_opp_addsite} ;;
}
I get this error:
A LookML model issue prevented this query from running.
SQL Dialect “snowflake” does not support Symmetric Aggregates with percentiles, field ignored. (In field “salesforce_account.median_dwell”)