=IIf((Sum([PMCostBudget.CuryAmount]-[PMCostBudget.CuryActualAmount])<0),'green0')
Above expression is not working. This field is a calculated field to find the variance.

=IIf((Sum([PMCostBudget.CuryAmount]-[PMCostBudget.CuryActualAmount])<0),'green0')
Above expression is not working. This field is a calculated field to find the variance.
Best answer by Eric Ratté
Hi,
I attached an example.
To make it work, here are some tips.
In addition to, I see that the IIF function in your example is not complete. There are 3 segments split by commas =IIF(CONDITION,TRUE,FALSE). When the conditions are met, the TRUE segment will be displayed. Otherwise, the FALSE segment will be displayed.
=IIf((([PMCostBudget.CuryAmount]-[PMCostBudget.CuryActualAmount])<0),'green0','red0')
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.