Multiple Functions in one field

staholly

Registered User.
Local time
Today, 11:44
Joined
Jul 14, 2011
Messages
16
I need to be able to create a multiple function that will return 3 different outcomes for example: if column A =1 than return value "Help" or if column A=2 return value "Stop" or if Column A=3 return value "More". Is this still a iff statement or do I use another function? If so, how do I write it?
 
You can use Choose():
Code:
Choose([FieldA], "Help", "Stop", "More")
 
Please explain further. with choose I have to decided the postion i want to be return, right? What I need to do is to be able to return 3 different values. If a>b="Hoop" a=b="stop" a<b="Help". I can't use a iff statement because it only returns 2 values. I need 3 or more values returned.
 
I need to be able to create a multiple function that will return 3 different outcomes for example: if column A =1 than return value "Help" or if column A=2 return value "Stop" or if Column A=3 return value "More". Is this still a iff statement or do I use another function? If so, how do I write it?

Try this..:

switch([A]=1,"Help",[A]=2,"Stop",[A]=3,"More")
 
The requirement changed. You should have mentioned this in your initial post.

You can use Switch that Taruz suggested but in this form:
Code:
Switch(a>b="Hoop", a=b="stop", a<b="Help")
Search the website that jdraw suggested for the Switch function to understand what it does.
 
Yes, I did. Unless I'm missing something, which I could very well be, I don't see anything that applies to what I need.
 
Yes, I did. Unless I'm missing something, which I could very well be, I don't see anything that applies to what I need.
That was because your requirement changed. You missed my last post ;)
 
Ok this is what I have entered into the query Switch([BilledAmount]<[Final EOB Amount]="partial",[BilledAmount]=[Final EOB Amount]="approved",[Final EOB Amount]=0="denied"). However, I am getting a error message. What am I doing wrong?
 
It works I just left out another formula. Thanks!!!!!!
 
Good to know!!!

I hope you noticed this part of your code that's wrong

[Final EOB Amount]=0="denied")

That should have been a comma (,).
 

Users who are viewing this thread

Back
Top Bottom