Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

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

Being more efficient with Multi Row?

Bobbins
8 - Asteroid

Hello There,

I am using the PDF tool to import documents which require tidying up and placing into the correct columns (I am aware of Intelligence Suite and PDF imports with tables it has a problem as noted already to Alteryx support) so I am using Multi row which works well. However I have a few questions

 

1) Is there a way to do multiple Expressions in the same step rather then needing seperate workflow boxes? IE

  • If A then B else C EndIF
  • If A1 then B1 else C1 EndIF

2) How do you use OR in Expression? IE I would normally write in other languages

  • IF OR(A=1,B=2) then C else D EndIF

Thank you

 

 

5 REPLIES 5
atcodedog05
22 - Nova
22 - Nova

Hi @Bobbins 

 

You can define all these formulas in a single formula tool like below.

 

atcodedog05_0-1643722892765.png

 

Hope this helps : )

 

Bobbins
8 - Asteroid

😖Thank you, thats perfect, just a good reminder that sometimes a tool that starts off as the right one may not be the right one when you finish getting what you want out of it


Thank you

gabrielvilella
14 - Magnetar

Hi @Bobbins, you can have IF statements in another IF or IFELSE statements, such as:

 

IF A
THEN
   IF AA
   THEN BB
   ELSE CC
   ENDIF
ELSE B
ENDIF

 

IF A
THEN B
ELSEIF C
THEN D
ELSE E
ENDIF

 

For the OR statement, here is how:

IF A=1 OR B=2
THEN C
ELSE F
ENDIF

 

atcodedog05
22 - Nova
22 - Nova

Happy to help : ) @Bobbins 

If my response helps please don't forget to mark it as solution.

Cheers and have a nice day!

Bobbins
8 - Asteroid

Thanks @gabrielvilella I knew you could nestle IF statements but normally only when they are talking the same problem. The single use of formula will mean i will keep them separate (helps tinkering). Also thank you for OR structure.

Labels
Top Solution Authors