Creating a report of User longevity

I have a field "Last Activity" on the site and another field account "Created". I read in Metabase documentation that I can use the function "datetimeDiff" to calculate the difference here: DatetimeDiff

I tried this function by using the following equation as either a custom column or a custom expression:
datetimeDiff([Core User - User → Created] , [Last Activity] , month)

And I receive an error: "Unknown function datetimeDiff"

What do I need to add or change to use the datetimeDiff function?

Can you share Admin -> Troubleshooting -> Diagnostic Info

That function worked on the 45 release ... I am afraid you are not on release 45

Thank you for your follow up, @TonyC . Here is the diagnostic info:

  "browser-info": {
    "language": "en-US",
    "platform": "Win32",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36",
    "vendor": "Google Inc."
  "system-info": {
    "file.encoding": "UTF-8",
    "": "OpenJDK Runtime Environment",
    "java.runtime.version": "",
    "java.vendor": "Eclipse Adoptium",
    "java.vendor.url": "",
    "java.version": "",
    "": "OpenJDK 64-Bit Server VM",
    "java.vm.version": "",
    "": "Linux",
    "os.version": "5.4.209-116.367.amzn2.x86_64",
    "user.language": "en",
    "user.timezone": "GMT"
  "metabase-info": {
    "databases": [
    "hosting-env": "unknown",
    "application-database": "postgres",
    "application-database-details": {
      "database": {
        "name": "PostgreSQL",
        "version": "11.13"
      "jdbc-driver": {
        "name": "PostgreSQL JDBC Driver",
        "version": "42.5.0"
    "run-mode": "prod",
    "version": {
      "date": "2022-11-01",
      "tag": "v1.44.6",
      "branch": "release-x.44.x",
      "hash": "5c6ae21"
    "settings": {
      "report-timezone": null

You are on the 44.6 which still doesn't have that function.

Also I noticed you are a customer of metabase (1.44.6), then you can go to Admin > Troubleshooting > Help > click "Contact support".

1 Like