Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

MIN MAX Column

JDong
8 - Asteroid

Hi Team,

 

I have one column with decimal values.

 

I want to create 2 new columns using this column where on column has MAX and other MIN.

 

0.1178Apples
0.0651Apples
0.0336Apples
0.0291Apples
0.0433Apples
0.0558Apples
0.0091Apples
0.0852Apples
0.0854Apples
0.119Orange
0.0592Orange
0.0535Orange
0.0432Orange
0.0406Orange
0.0466Orange
-0.007Orange
0.0942Orange
0.119Orange

 

Thanks

4 REPLIES 4
Aaron_Harter
11 - Bolide

Hi @JDong,

 

You can use the Summarize tool to create these new fields.  You can create overall Min & Max values to append to your data table, or group by the Type, then Join back to your data table to get the Min & Max for each:

1.PNG 

RolandSchubert
16 - Nebula
16 - Nebula

Hi @JDong ,

 

I guess, you want the MIN and MAX of Field1 for each entry in Field2. The MIN/MAX values can be found using a Summarize tool, you can join the result on [Field2] then.

I've attached a sample workflow. Let me know, if it works for you,

 

Best,

 

Roland

JDong
8 - Asteroid

Hi,

 

In the actual scenario I have more than 30 columns.

 

Can I know how the join will work ?

 

Thanks

RolandSchubert
16 - Nebula
16 - Nebula

One column you want to calculate MIN/MAX and 29 additional columns with "keys" (product, attributes)? You'll have to join on all key fields (and include them in the Summarize tool). If you provide a sample file or the field list (e.g. from Select tool) it's easier to explain.  

Labels