You can do a nested iif stmt, just didn't know if it warranted one in this case. I may have missed the point on exactly what you are trying to do - which is likely.
I suppose I should have said "how do I layer an if statement?" I am sorry, beginners don't necessarily know how to ask the right question.
I need to produce a statement as such:
if[SumOf30To60DayDebits]>=[Balance]
Then
if([Balance]-[CURRENT]>0 then ([Balance]-[CURRENT] else 0 but if [SumOf30To60DayDebits]is not >=[Balance] then [SumOf30To60DayDebits]-[CURRENT]
I need the 0 to be returned if appropriate.
The end goal is to produce debit amount in aging buckets.
Try this then - I think this will get you what you want. I changed the logical expression on the first iif to be < balance, in order to give a straight x-y equation for the True part, then used another iif stmt for the false part.
I definitely find it easier making the true part a simple equation as opposed to another if.