We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

If the PT code is any of these listed then ineligible PT,

snadeau456
8 - Asteroid

If the PT code is any of these listed then ineligible PT, tried several ways but not working, thank you in advance.

If ([PT Code] IN ("ABA",
"ACM",
"ADC",
"AFH",
"ALC",
"AT",
"BAA",
"BB",
"BC",
"BT",
"CS",
"DHB",
"DHY",
"DLA",
"DNT",
"ECS",
"GNC",
"HMD",
"HOM",
"IDN",
"LC",
"NSA",
"PC",
"PE",
"PER",
"PSS",
"SBH",
"SDC",
"SES",
"VIP")
Then "Ineligible Provider Type"
End""
EndIF

2 REPLIES 2
SPetrie
13 - Pulsar

You have an extra parenthesis in front of [PT Code] and it should be Else "" and not End"", I updated the formula and pasted below. Other than that, the formula should work (assuming they are exact matches). You may want to consider using a Find/Replace as well since its a longer list to keep your formula from getting too large.

 

If [PT Code] IN ("ABA",
"ACM",
"ADC",
"AFH",
"ALC",
"AT",
"BAA",
"BB",
"BC",
"BT",
"CS",
"DHB",
"DHY",
"DLA",
"DNT",
"ECS",
"GNC",
"HMD",
"HOM",
"IDN",
"LC",
"NSA",
"PC",
"PE",
"PER",
"PSS",
"SBH",
"SDC",
"SES",
"VIP")
Then "Ineligible Provider Type"
Else ""
EndIF

snadeau456
8 - Asteroid

Amazing, thank you very much, it worked.😊

Labels
Top Solution Authors