Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
ALTER.NEXT:

Join us on Dec 2 for a half-day virtual analytics + data science event!
US & CA customers only

SAVE YOUR SPOT
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!
SOLVED

if a field contains 1 then all values ın field return 1 else 0

Highlighted
6 - Meteoroid

Hi All,

 

I have real quick question. as ı mention in title. if my certain field contain 1 then ı wanna that my whole field gonna return 1 else it is gonna stay as 0 

how can ı do this ? 

Highlighted
Alteryx Certified Partner
Alteryx Certified Partner

@Pultayap 

 

Lots of ways to do this. Check out my solution attached.

 

You could take the Maximum (in the Summarize Tool) and append it if your field consists entirely of 1s and values less than 1. 

Highlighted
17 - Castor

Hi @Pultayap 

 

Here is a workflow for the task.

Output:

atcodedog05_0-1605618998349.png

Workflow:

atcodedog05_1-1605619015117.png

 

I used summarize and max

 

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

Highlighted
Alteryx Certified Partner

Hi @Pultayap ,

 

I used a summarise tool to check if the column has a different value than 1. If yes, then with a formula tool I would replace the values of the whole column with 1.

 

Screenshot 2020-11-17 131753.jpg

 

Hope that helps.

 

Regards,

Angelos

Highlighted
17 - Castor

Happy to help 🙂 @Pultayap 

 

Feel free to reach out if you face any other issues 🙂

 

Cheers and Happy Analyzing 😀

Labels