ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

Pick Min value from 2 fields

Genty
7 - Meteor

Hi all,

 

I am trying to use the formula tool to pick the minimum value over two fields.

 

E.G [Field 1 =3] [Field 2 = 7] = 3

 

Any help how I could do this?

 

Regards

4 REPLIES 4
Thableaus
17 - Castor
17 - Castor

Hi @Genty 

 

There's a Min function in alteryx.

 

Use Formula Tool.

 

Min(Field1, Field2)


Cheers,

Genty
7 - Meteor

Not sure how I missed that (facepalm), I am now however getting a "Invalid type in operator <." error 😞

Thableaus
17 - Castor
17 - Castor

@Genty 

 

This is a numeric function.

 

You might need to do the ToNumber Conversion if your fields are string types.

 

Min(ToNumber(Field1), ToNumber(Field2))

 

Cheers,

Genty
7 - Meteor

yea had to wrong data type set on one of the fields. now resolved thank you

Labels
Top Solution Authors