Formulas and %IF %THEN

Technical support

Moderators: Bob Cergol, Data Access, Cintac

Formulas and %IF %THEN

Postby Mark D Eppley » Mon Jan 31, 2011 11:56 pm

I cannot seem to get a formula to work with a %IF - %THEN statement

Formula is as follows

%IF
([[Budget]]-[[Amount]] < 0)
%THEN
[[Budget]]-[[Amount]]
%ELSE
0
%ENDIF

Results are always TRUE regardless

Thanks
Mark
Mark D Eppley
 
Posts: 3
Joined: Wed Oct 07, 2009 5:51 pm

Re: Formulas and %IF %THEN

Postby admin » Thu Feb 03, 2011 11:27 am

Hi Mark,

We have reproduced this and will work on a solution. In the meantime, you may be able to achieve what you want with a SQL Extra Column.

such as

CASE WHEN (budget-amount<0) THEN budget-amount ELSE 0 END
see screenshot for sample:
Image

Let me know if that works

Best regards
Bo
User avatar
admin
Certified Dynamic AI Professional
 
Posts: 177
Joined: Thu Jan 01, 1970 1:00 am
Location: Copenhagen, Denmark


Return to Technical Support

cron