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?
TonyC
January 16, 2023, 9:20am
2
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/108.0.0.0 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.16.1+1",
"java.vendor": "Eclipse Adoptium",
"java.vendor.url": "https://adoptium.net/",
"java.version": "11.0.16.1",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.16.1+1",
"os.name": "Linux",
"os.version": "5.4.209-116.367.amzn2.x86_64",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"postgres",
"h2"
],
"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
}
}
}
TonyC
January 16, 2023, 1:53pm
4
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