Forum Discussion
QuickBaseCoachD
8 years agoQrew Captain
In Quick Base, unlike excel, you do not need to nest your IFs. Also while extra parentheses don't hurt, they really don't help either.
If(
[Deal Type] = "AMG Sampler", [Down Payment]+[Balance Due],
[Deal Type] = "AMG Platinum Advantage",[CS Down Payment]+[CS Balance Due]-400,
[Deal Type] = "RCI Points",[Down Payment]+[Balance Due]-948)
This can also be written with a case function since you are comparing to the same field repeatedly.
Case([Deal Type],
"AMG Sampler", [Down Payment]+[Balance Due],
"AMG Platinum Advantage",[CS Down Payment]+[CS Balance Due]-400,
"RCI Points",[Down Payment]+[Balance Due]-948)
If(
[Deal Type] = "AMG Sampler", [Down Payment]+[Balance Due],
[Deal Type] = "AMG Platinum Advantage",[CS Down Payment]+[CS Balance Due]-400,
[Deal Type] = "RCI Points",[Down Payment]+[Balance Due]-948)
This can also be written with a case function since you are comparing to the same field repeatedly.
Case([Deal Type],
"AMG Sampler", [Down Payment]+[Balance Due],
"AMG Platinum Advantage",[CS Down Payment]+[CS Balance Due]-400,
"RCI Points",[Down Payment]+[Balance Due]-948)
MaximumGroup
8 years agoQrew Trainee
I am needing to add to this formula. If I want a specific field to determine the -948 such as Sales Team. If your on Sales Team A you get
[Deal Type] = "RCI Points",[Down Payment]+[Balance Due]-948)
Sales Team B gets
[Deal Type] = "RCI Points",[Down Payment]+[Balance Due])
[Deal Type] = "RCI Points",[Down Payment]+[Balance Due]-948)
Sales Team B gets
[Deal Type] = "RCI Points",[Down Payment]+[Balance Due])