Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi,
I have done the below for nested if else statement.
->pipe(new CalculatedColumn(array(
"a"=>"({target}+{amount}=='0')?0:({target}=='0')?100:{amount}/{target}*100",
)))
However, I still get an error message: Division by zero, although it is stated clearly that if target + amount = 0, then 0.
Where did I do wrong?
Appreciate your help.
Thank you very much.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo