Date_part function

Hey All,

I’m New to Metabase and using it for a week now, I have to find the avg no of days taken to reach to sell product X comparing the 2 columns which consist of dates, Not able to use date_part or date_diff is there any way around?

Error - function date_part(unknown, integer) does not exist Hint: No function matches the given name and argument types. You might need to add explicit type casts. Position: 146

What’s your database? Is that syntax correct for it?