Help with summarizing using date-time

Hello!
I am starting to use Metabase and I'm trying to do something that should be quite simple, but have not been able to. I want to summarize using the "CreatedAt" column as can be seen in the image below:

However, when I try to do it, it immediately shows me an error:

400 Bad Request POST https://www.googleapis.com/bigquery/v2/projects/weego-io/queries { "code" : 400, "errors" : [ { "domain" : "global", "location" : "q", "locationType" : "parameter", "message" : "Invalid datetime string "2021-09-26T15:42:36Z"", "reason" : "invalidQuery" } ], "message" : "Invalid datetime string "2021-09-26T15:42:36Z"", "status" : "INVALID_ARGUMENT" }

Does anyone know what I'm doing wrong? Thank you!

Hi @casimiroperez
Post "Diagnostic Info" from Admin > Troubleshooting.
Metabase can only work with dates, otherwise it needs to cast the field, but that's currently not supported in BigQuery:
https://github.com/metabase/metabase/issues/19355 - upvote by clicking :+1: on the first post

Hello, @flamber! Thank you very much for the fast answer!
Here is the 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/97.0.4692.71 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "1.8.0_302-8u302-b08-1~deb9u1-b08",
"java.vendor": "Oracle Corporation",
"java.vendor.url": "http://java.oracle.com/",
"java.version": "1.8.0_302",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "25.302-b08",
"os.name": "Linux",
"os.version": "5.10.68+",
"user.language": "en",
"user.timezone": "Etc/UTC"
},
"metabase-info": {
"databases": [
"bigquery-cloud-sdk"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "13.4"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.23"
}
},
"run-mode": "prod",
"version": {
"tag": "v0.41.5",
"date": "2021-12-16",
"branch": "release-x.41.x",
"hash": "fbfffc6"
},
"settings": {
"report-timezone": null
}
}
}

@casimiroperez You should upgrade to Java 11: https://www.metabase.com/docs/latest/operations-guide/java-versions.html
And I'm guessing that your database column type is actually a string instead of a datetime/timestamp.

@flamber Yeah, I've checked now and it's actually a string.
About the update, you're right. This is my home computer, I don't usually work from here but I should update it as well. :slight_smile:

Once again, thank you very much for the answers!