Hi, I am having problem with the date_diff solution for dev:
I currently have:
dimension_group: ts_1 {
type: time
timeframes: [date, raw]
sql: ${TABLE}.ts_1 ;;
}
dimension_group: ts_2 {
type: time
timeframes: [date, raw]
sql: ${TABLE}.ts_2 ;;
}
dimension: date_diff {
type: number
sql: DATEDIFF(day, ${ts_2}, ${ts_1}) ;;
}
and am receiving an error message in the UI.
Any solutions? Thanks!