P
Pat_RI
I am trying to create an IIF statement where if Plan="den1" then look to see
if plan="med1" return "medical" if not return Plan. What I am trying to do
is if a person has DEN1 then look to see if they have MED1 and if they do
return MEDICAL if not return whatever the Plan is equal to.
table would look something like this
ID Plan Level
1 den1 1
1 med1 1
2 den1 2
2 med2 2
3 den1 3
4 den1 3
4 med1 3
5 med1 1
What I am looking for results :
ID Plan Level
1 den1 1
1 medical 1
2 den1 2
2 med2 2
3 den1 3
4 den1 3
4 medical 3
5 med1 1
if plan="med1" return "medical" if not return Plan. What I am trying to do
is if a person has DEN1 then look to see if they have MED1 and if they do
return MEDICAL if not return whatever the Plan is equal to.
table would look something like this
ID Plan Level
1 den1 1
1 med1 1
2 den1 2
2 med2 2
3 den1 3
4 den1 3
4 med1 3
5 med1 1
What I am looking for results :
ID Plan Level
1 den1 1
1 medical 1
2 den1 2
2 med2 2
3 den1 3
4 den1 3
4 medical 3
5 med1 1