Since then, all existing Questions chart with a custom expression that have “/” operator are broken.
At first I thought it was a data format problem, but even a “1/count()” doesn’t work.
I tried to created a new SQL request, and a new question based on this SQL request to see if it could be some kind of corrupt chart/sql request, but the problem is still there.
Note that if I only do “Count()” instead of “1/Count()”, it works (and count() is not null nor 0)
“SELECT
1.0 / NULLIF(CAST(COUNT(*) AS double), 0.0) AS test
FROM mytable”
I only use MySQL server with metabase, so I can’t tell if something else would work.
An incompatibility with the MySQL DB version and the Metabase version might be a nice lead, as it is prior v8. I will try an update this week and come back to tell if it solved the problem.