Hello,
I need to calculate percentage expression in for angular label value.
It should be like this: ${ (A + B) / (A + B + C + D) }
Unfortunatelly, when I try to enter such a expression, it fails in compile.
Is there any elegant work-around or fix?
My expression:
${(ProductionOrder.Pieces_GoodCount + ProductionOrder.Pieces_ScrapProcessCount) / (ProductionOrder.Pieces_ScrapStartupCount + ProductionOrder.Pieces_Test + ProductionOrder.Pieces_TestPT + ProductionOrder.Pieces_TestCohesion + ProductionOrder.Pieces_ResidualCount)}
Error:
"Failed to compile"
: Parser Error: Missing expected ) at the end of the expression [(ProductionOrder?.Pieces_GoodCount + ProductionOrder?.Pieces_ScrapProcessCount) / ((((ProductionOrder?.Pieces_ScrapStartupCount + ProductionOrder?.Pieces_Test) + ProductionOrder?.Pieces_TestPT) + ProductionOrder?.Pieces_TestCohesion) + ProductionOrder && (ProductionOrder.Pieces_GoodCount + ProductionOrder.Pieces_ScrapProcessCount) / ((((ProductionOrder.Pieces_ScrapStartupCount + ProductionOrder.Pieces_Test) + ProductionOrder.Pieces_TestPT) + ProductionOrder.Pieces_TestCohesion) + ProductionOrder.Pieces_ResidualCount)]