In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

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

If Statement - Invalid type in operator

julianhoetzel
8 - Asteroid

Hi everyone,

 

could someone explain why there is an invalid type in operator in my if statement? 

 

Thank you in advance.

3 REPLIES 3
Emil_Kos
17 - Castor
17 - Castor

Hi @julianhoetzel,

 

It looks that % of total payables aging is in string format.

 

Change it to a number and it should work(of course remove to string formula).

 

If this helped please mark my post as a solution!

pedrodrfaria
13 - Pulsar

The field % of total Payables Aging is a string value thus not allowing you to do numeric comparisons (greater than in this case). You must change the type to double or use the tonumber() to temporarily fix this for this expression you have written out.

Qiu
21 - Polaris
21 - Polaris

@julianhoetzel 
I count 3 locations that can be improved.
See the markup below.

Screenshot 2020-12-22 005446.png1222-julianhoetzel.PNG

Labels
Top Solution Authors