Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Help with formula

Talbanese
7 - Meteor

Hello,

 

I'm trying to get the formula to calculate IIF([Day Span]<=30,1,0) using the formula tool.

 

I'm getting an error saying "Invalid type in operator" I'm sure this is a syntax error but still learning the Alteryx language.

 

Thanks for the help :).

 

 

2 REPLIES 2
MarqueeCrew
20 - Arcturus
20 - Arcturus

Is [dayspan] a number or a string?  If you are comparing to 30, it needs to be a number. 

 

You are also assigning the values of 0 & 1. Is the new field a Boolean or number?  

 

Thanks,

mark

Alteryx ACE & Top Community Contributor

Chaos reigns within. Repent, reflect and restart. Order shall return.
Please Subscribe to my youTube channel.
Talbanese
7 - Meteor

Thanks Mark,

 

Needed to change the type since it was a number.

 

:).

Labels
Top Solution Authors