Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Cloud Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Cloud.

Excel type of Macro to the DataPrep - it is multicondition macro.

Doti
5 - Atom

hello, I am looking on the best approach to bring the Excel type of Macro to the DataPrep - it is multicondition macro. example: 

=IF(AQ3="",50,IF(AQ3>1000,25,IF(AND(AQ3<1001,AQ3>100),20,IF(AND(AQ3<101,AQ3>50),15,IF(AND(AQ3<51,AQ3>25),10,5)))))*2

any tips

2 REPLIES 2
Trifacta_Alumni
Alteryx Alumni (Retired)

Thank you for reaching out.

 

You can use CASE statements here. Below is a screen shot for reference.

 

Happy Wrangling!

 

Best,

Rachana

 

Trifacta_Alumni
Alteryx Alumni (Retired)

 

CASE([AQ3 > 1000, 25, (AQ3 > 100 && AQ3 < 1001), 20, (AQ3 > 50 && AQ3 < 101), 15, (AQ3 > 25 && AQ3 < 51), 10, 5])

Please feel free to learn more at https://docs.trifacta.com/display/DP/CASE+Function

 

Best,

Rachana