Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"A formula cannot refer to itself" - Quandary

Status
Not open for further replies.

LZido

Technical User
Aug 24, 2006
21
US
I have a formula that states if {@FLSA D11}is greater than the total of {@OtherOT} then minus {@OT D11}
and receiving an error - "A formula cannot refer to itself, either directly or indirectly"

Problem Formula

FLSA D11
if {@FLSA D12} <= 0
then Sum ({@ODC Hours D11}, {Coverage.PERSONNELLOOKUPID}) - [highlight #FCE94F]{@OT D11}[/highlight]
else Sum ({@ODC Hours D11}, {Coverage.PERSONNELLOOKUPID})

Referring Formula

[highlight #FCE94F]OT D11[/highlight]:
if {@OT D12} <= 0
and {@FLSA D11} > {@OtherOT}
then
{@OtherOT}

Tried to trick it with this formula.......

[highlight #8AE234]O D11:[/highlight]
if not(isnull({@OT D11}))
then
val(CStr({@OT D11}))
else
0

but it still gets an error about refers to itself.

Still a problem formula

FLSA D11
if {@FLSA D14} <= 0 and {@FLSA D13} <= 0 and {@FLSA D12} <= 0
then Sum ({@ODC Hours D11}, {Coverage.PERSONNELLOOKUPID}) - {@FLSA OT} - [highlight #8AE234]{@O D11}
[/highlight]else Sum ({@ODC Hours D11}, {Coverage.PERSONNELLOOKUPID})

I really need {@FLSA D11} to subtract from the value of {@OT D11}- any suggestions??


 
You have circular reference, so I am not sure how you can fix it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top