Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

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

Pultayap
7 - Meteor

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 ? 

4 REPLIES 4
PhilipMannering
16 - Nebula
16 - Nebula

@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. 

atcodedog05
22 - Nova
22 - Nova

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 😀👍

AngelosPachis
16 - Nebula

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

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @Pultayap 

 

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

 

Cheers and Happy Analyzing 😀

Labels