Month function is not working inside custom column

image

I tried using the above function, month to create custom column, but it is saying unknown column.

Hi @brucewayne_now
Post "Diagnostic Info" from Admin > Troubleshooting.

{
"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": "3.10.0-1160.76.1.el7.x86_64",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"h2",
"mysql",
"csv"
],
"hosting-env": "unknown",
"application-database": "h2",
"application-database-details": {
"database": {
"name": "H2",
"version": "1.4.197 (2018-03-18)"
},
"jdbc-driver": {
"name": "H2 JDBC Driver",
"version": "1.4.197 (2018-03-18)"
}
},
"run-mode": "prod",
"version": {
"date": "2022-11-01",
"tag": "v0.44.6",
"branch": "release-x.44.x",
"hash": "5c6ae21"
},
"settings": {
"report-timezone": null
}
}
}

@brucewayne_now You are referencing v45 documentation, but using v44.6.
Latest release is 0.45.1: https://github.com/metabase/metabase/releases/latest
You should migrate away from H2: https://www.metabase.com/docs/latest/installation-and-operation/migrating-from-h2

Thanks @flamber , i will upgrade to the latest version.

To fetch the data, I am using MySQL database. But application is running with h2 database, any problem in using h2??

@brucewayne_now Search the forum for reasons on why not to use H2 as the application database in production.

1 Like