Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

Using Conditional Formula to capture "Greater Than" value

nancyyu
6 - Meteoroid

I am attempting to use the Formula tool to write a formula that retrieves result A if A is larger than B, but retrieve B if otherwise for many rows of data. I have written the formula below, but am seeing an "Invalid type in operator >" message. Is this not the best way to do this?

 

IF [Total Hours Worked (Rehired or Terminated)]>[Total Project Hours per Employee] THEN [Total Hours Worked (Rehired or Terminated)] ELSE [Total Project Hours per Employee] ENDIF

 

2 REPLIES 2
Thableaus
17 - Castor
17 - Castor

Hi @nancyyu 

 

Is your field a Numeric Type or a Date Type?

It's possible that compared fields are not the same type.


Cheers,

nancyyu
6 - Meteoroid

Duh! Yes, one of the fields was a string type. I corrected it and the formula now works. Thank you!!!

Labels