Trend Visualization 'view by' drop down not appearing

I have a Trend visualization on top of a native SQL query. The trend shows but only compares last day to previous day.
Here is my query results:


I was expecting a drop down to be available at the bottom allowing me to change between Month and Day as depicted in the documentation here: Redirecting…
What do I need to make that drop down appear?
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/86.0.4240.198 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.9.1+1-Ubuntu-0ubuntu1.20.04",
"java.vendor": "Ubuntu",
"java.vendor.url": "https://ubuntu.com/",
"java.version": "11.0.9.1",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.9.1+1-Ubuntu-0ubuntu1.20.04",
"os.name": "Linux",
"os.version": "5.4.0-1029-aws",
"user.language": "en",
"user.timezone": "Etc/UTC"
},
"metabase-info": {
"databases": [
"h2",
"sqlserver"
],
"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": "2020-10-26",
"tag": "v0.37.0.2",
"branch": "release-x.37.x",
"hash": "ba7be09"
},
"settings": {
"report-timezone": null
}
}
}

Hi @jamieb
That has never been available for SQL questions, and likely won’t be until Metabase is able to parse SQL.
Granularity were removed in 0.33 for GUI questions - there’s an issue open to returning them:
https://github.com/metabase/metabase/issues/11183 - upvote by clicking :+1: on the first post
And you should migrate away from H2 if you are using Metabase in production:
https://www.metabase.com/docs/latest/operations-guide/migrating-from-h2.html

1 Like