Start Free Trial

Alteryx Designer Desktop Discussions

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

Multiple choice

zqlcancer
8 - Asteroid

The logics I would apply for this tool are 

 

  1.  if the tax code=A1 and country code=AA or is null, then return 1.
  2. if the tax code=A2 and country code=AA or is null, then return 11.
  3. Otherwise return 2

zqlcancer_0-1683715174773.png

 

 

Looks like my formula are correct but I am not sure if this is the perfect way to do that. I am asking this due to in real practice I have many combinations and wonder if there is an easy way to get my result.

1 REPLY 1
FrederikE
13 - Pulsar

Hey @zqlcancer,

 

You can certainly simplify it a bit. 

E.g. The ones where "1" is assigned you can do: 

 

IF [Tax Code]='A1' AND ([Country]='AA' OR [Country]=Null())

THEN 1

 

An other approach would be to create a lookup list, with many records this is for sure quicker. See the attached example. 

FrederikE_0-1683716617400.png

 

 

Labels
Top Solution Authors