[cfdb-table form="your-form" trans="field1=ceil(field1)"] or use “round”.
Mean is a function on more then one number. You can use AverageField see http://cfdbplugin.com/?page_id=1167
Michael, thanks for response.
I use this: [cfdb-value form=”Cotação” show=”produto-1″ function=”mean”][/cfdb-value]
and
this: [cfdb-table form=”Cotação” trans=”Averagefield(produto-1)”]
Both works fine for me.
But i couldn’t round any of them. Could you help me?
Thy this for the second one. I’ll get back to you on the first
[cfdb-table form="Cotação" trans="AverageField(produto-1)&&produto-1=round(produto-1)"]
On the first one, don’t use function=”mean” in this case, use the AverageField transform:
[cfdb-value form="Cotação" show="produto-1" trans="AverageField(produto-1)&&produto-1=round(produto-1)" ]