Community Halloween is live until October 31st! Complete any 2 quick activities to earn the 2025 Community Halloween badge. Feeling brave? Check out the activities here
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