How to calculate date diff in custom expression?


How can I calculated the difference between dates in a custom expression?

I'm trying that:


And getting this result:


But I need it in seconds or minutes to create a chart

Thank you

Hi @trialsin
There's a request for having a function in Custom Expressions: - upvote by clicking :+1: on the first post

1 Like

That would be very helpful.

Did you find any workaround?

Hi Tanguy,

I think you can do this with a native query, but it depends on what type of source database is.

Indeed :man_facepalming: