Help to Create Calculated Field

Hello, I am trying to create a difficult calculated field, hoping you can provide assistance:
image

  • new calculation = “Transaction Amount” unless there’s a “Follow-On” amount. If there’s a “Follow-On” amount, the calculation should be the “Follow-On” Amount.
    Thank you,
    Diana

In the picture, you can see the “Aggregate” = “Transaction Amount” + “Follow-On” , which isn’t correct.
we want the aggregate to be the “Follow-On” unless there is no “Follow-On.” If there isn’t a “Follow-On” the “Aggregate” should = “Transaction Amount”

Hi @dherasme,

Can you try this?

Aggregate = coalesce({Follow-On}, {Transaction Amount}) 

Hi! @David_Wong Thanks, this does pull the “Follow On” field, but where “Follow-On” is “0” it isn’t pulling the “Transaction Amount”
image

Hi @dherasme,

Can you try this?

ifelse(
    {Follow-On} > 0, {Follow-On},
    {Transaction Amount}
)

@David_Wong this worked!! thanks so much!