Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Community is experiencing an influx of spam. As we work toward a solution, please use the 'Notify Moderator' option on the ellipsis menu to flag inappropriate posts.

Alteryx Designer Desktop Discussions

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

If Numbers are Greater or less than

mmustkee
10 - Fireball

Hi Team,

 

I have below table and I want below criteria to be used for desired output. Kindly Help.

 

if Fridge <0 and Washing Machine>0 - Then No
if Fridge >=0 and washing Machine>0 and AC=0 Then No
if Fridge >=0 and Washing Machine>0 and AC>0 - Then Yes

 

FridgeAcWashing MachineStatus Yes/No
101 
103 
102 
112 
103 
100 
101 
104 
113 
104 
101 
120 
101 
124 
104 
103 
100 
103 
113 
(1)32 
(2)41 
111 
121 
120 
140 
051 
063 
072 
11 REPLIES 11
AngelosPachis
16 - Nebula

Hi @mmustkee ,

 

Would you mind trying this workflow?

 

AngelosPachis_0-1613552451282.png

 

The multi-field formula was used to convert the negative values from (1) to -1

 

Cheers,

 

Angelos

Qiu
21 - Polaris
21 - Polaris

@mmustkee 

What will be result for AC=0?

0217-mmustkee-1.PNG

mmustkee
10 - Fireball

Hi,

 

My Fridge Value is Numeric. Once I apply your workflow and change text to Numeric or all types I am receiving attached error.

 

Please help.

 

Thanks,

Mohammad Mustkeem

 

 

mmustkee
10 - Fireball

Hi Qiu,

 

I can see that there is another new column called Fridge1 and the values in my column called 'Fridge' and your column does not match. I have some negative values also and your column does not show that. Can you create workflow without creating extra column. and once I apply to my data set, I do not see the filed which I want to replace with Fridge and FYI  The field which I want to replace with Fridge is Numeric. Once I drop down none of my numeric value is in dropdown.

 

Please help.

 

Thanks,

Mohammad Mustkeem

 

AngelosPachis
16 - Nebula

Hi @mmustkee ,

 

Can you try the attached workflow please?

 

Thanks

 

Angelos

mmustkee
10 - Fireball

Hi Angelos,

 

I am using the same formula, provided by you. The only difference is I am using exl file to apply the same. All the three values in my sheet are numeric however if I check your multi formula tool it shows fridge value as text. I have attached xls file as well as error screen shots. kindly help.

Thanks for your help.

 

Error2.PNG

Error 1.PNG

  

 

 

 

  

grazitti_sapna
17 - Castor

Hi @mmustkee , give this a try when you import the file into alteryx it will directly convert the (1) into -1.

grazitti_sapna_0-1613623774355.png

If this helps kindly mark this post as solution.

 

Sapna Gupta
AngelosPachis
16 - Nebula

Hi @mmustkee ,

 

The second workflow I have attached does not have a multi-field formula, you should only be able to find a single formula tool with the expression.

 

Thanks

 

Angelos

mmustkee
10 - Fireball

Hi Sapna,

 

It really worked.

 

Thanks a lot. It took time as my data type was different.

Labels