I need to divide these two column, Cumulative sum / cumulative count
but found this error
Hi @varnika
Post "Diagnostic Info" from Admin > Troubleshooting.
And the full stacktrace from Admin > Troubleshooting > Logs.
{
"browser-info": {
"language": "en-GB",
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36",
"vendor": "Google Inc."
},
"system-info": {
"file.encoding": "UTF-8",
"java.runtime.name": "OpenJDK Runtime Environment",
"java.runtime.version": "11.0.11+9",
"java.vendor": "AdoptOpenJDK",
"java.vendor.url": "https://adoptopenjdk.net/",
"java.version": "11.0.11",
"java.vm.name": "OpenJDK 64-Bit Server VM",
"java.vm.version": "11.0.11+9",
"os.name": "Linux",
"os.version": "5.4.0-1029-aws",
"user.language": "en",
"user.timezone": "GMT"
},
"metabase-info": {
"databases": [
"postgres",
"mongo",
"h2"
],
"hosting-env": "unknown",
"application-database": "postgres",
"application-database-details": {
"database": {
"name": "PostgreSQL",
"version": "13.1 (Debian 13.1-1.pgdg100+1)"
},
"jdbc-driver": {
"name": "PostgreSQL JDBC Driver",
"version": "42.2.18"
}
},
"run-mode": "prod",
"version": {
"date": "2021-04-27",
"tag": "v0.39.1",
"branch": "release-x.39.x",
"hash": "6beba48"
},
"settings": {
"report-timezone": null
}
}
}
Please revert on this.
Thanks
@varnika What does that mean?
Latest release is 0.41.1: https://github.com/metabase/metabase/releases/latest
And you have not provided any stacktrace.
I simply want to divide these two cumulative columns to get average by week
I used the simple divide function here below
and got the above error shown in first screenshort when visualise.
@varnika https://github.com/metabase/metabase/issues/13634 - upvote by clicking on the first post
Hello, I'm trying to divide two columns with CumulativeSum, but it doesn't work, the result is wrong. I give you an example:
The column "Acumulado RN" is a CumulativeSum(RN). The column "Capacidad Acumulada" is a CumulativeSum(CapacidadDia). As it can be seen, the values of those columns are correct, however, when I divide CumulativeSum(RN)/CumulativeSum(CapacidadDia) the result is wrong, you can see it in the column "cumcum".
I've tryed to create a custom column before the aggregation called CapacAcum which have CapacidadDia*Numer of days, which is a way to do a cumulative manually. The result is in the column "CC_CapaAcum" and it's correct. Nevertheless, if I divide CumulativeSum(RN)/Sum(CapacAcum), the result is wrong again, you can see it in the column "%Acumulado Mes". In this case, it seems that always divide AcumuladoRN/CapacidadDia instead of the cumulative
Please, can you help me? Or it is impossible to do this? I've seen that cumulatives work with + or -, but it doesn't work if you multiply or divide them.
Thanks in advance!
@Adriana1 You should have created a different topic, since it's not the same as this.
You are seeing this issue:
https://github.com/metabase/metabase/issues/15118 - upvote by clicking on the first post