Alteryx Designer Desktop Discussions

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

To many IF conditions in excel to Alteryx

sriniprad08
11 - Bolide

Hi Team,

Hope you are well.

I need help. I have this excel function which i need to replicate into alteryx. Can you please help?

thanks

IF(B3="BELOW THRESHOLD STABLE",0,IF(B3="ABOVE THRESHOLD STABLE",1,IF(B3="ABOVE THRESHOLD FLAG",2,0)))+IF(C3="BELOW THRESHOLD STABLE",0,IF(C3="ABOVE THRESHOLD STABLE",1,IF(C3="ABOVE THRESHOLD FLAG",2,0)))+IF(D3="BELOW THRESHOLD STABLE",0,IF(D3="ABOVE THRESHOLD STABLE",1,IF(D3="ABOVE THRESHOLD FLAG",2,0)))+IF(E3="BELOW THRESHOLD STABLE",0,IF(E3="ABOVE THRESHOLD STABLE",1,IF(E3="ABOVE THRESHOLD FLAG",2,0)))+IF(F3="BELOW THRESHOLD STABLE",0,IF(F3="ABOVE THRESHOLD STABLE",1,IF(F3="ABOVE THRESHOLD FLAG",2,0)))+IF(G3="BELOW THRESHOLD STABLE",0,IF(G3="ABOVE THRESHOLD STABLE",1,IF(G3="ABOVE THRESHOLD FLAG",2,0)))+IF(H3="BELOW THRESHOLD STABLE",0,IF(H3="ABOVE THRESHOLD STABLE",1,IF(H3="ABOVE THRESHOLD FLAG",2,0)))

 

I would like to create the column I ,"Weighted Score" in the below excel file.

Please find attached,

 

Thanks,

17 REPLIES 17
atcodedog05
22 - Nova
22 - Nova

Hi @sriniprad08 

 

You can transpose it, apply the condition and summation it. Like below

 

atcodedog05_0-1634117409038.png

 

Hope this helps : )

Christina_H
14 - Magnetar

I've done basically the same as @atcodedog05 but with a lookup table for the values instead of the formula

Christina_Hurrell_0-1634118263837.png

 

sriniprad08
11 - Bolide

Hi @atcodedog05 ,

Perfect. Thank you so much is it also possible to color the fields like a heat map for e.g

sriniprad08_0-1634118243454.png

 

Wherever its Below Threshold then it should be colored Green. etc.

 

Please let me know 

 

thanks,

sriniprad08
11 - Bolide

Hi @Christina_H ,

 

Thank you so much 🙂 . Very helpful.

 

Cheers

Christina_H
14 - Magnetar

@sriniprad08 To get background colors you'll need to use a table tool with column rules, see attached.  I've set conditions on the first two columns, they will need adding to the others too.

Christina_Hurrell_0-1634119525051.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @sriniprad08 

 

Here is my take on it by setting the column rule 

 

Workflow:

atcodedog05_0-1634122937060.png

 

Hope this helps : )

sriniprad08
11 - Bolide

Hi @Christina_H ,

 

Thank you . Amazing. I was about to paste this question. How to set the rule please?

sriniprad08_0-1634123421665.png

 

Thanks,

Sri

sriniprad08
11 - Bolide

Hi @atcodedog05 ,

Amazing too. Thank you very much.

 

Cheers,

Sri

sriniprad08
11 - Bolide

Hi @atcodedog05 ,

Not sure why its not showing me the option to edit. Please let me know .

thanks

sriniprad08_0-1634123799277.png

 

Polls
We’re dying to get your help in determining what the new profile picture frame should be this Halloween. Cast your vote and help us haunt the Community with the best spooky character.
Don’t ghost us—pick your favorite now!
Labels