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.
SOLVED

If Statement formula returning incorrect results

J-Riedel
8 - Asteroid

Hi!!  I am very perplexed....

I am using an IF Statement in the formula tool to test if [JUL ACTIVITY] = [Sum_CONVERTED AMOUNT (DR)/CR] then 1 else 0 endif.  Results show in the MTD Activity = Transactions? column.  As you can see from my screen print, the top 3 rows are showing "0" when the statement is true (which is incorrect), while the rest of the rows show "1" as true (which is true).  Any thoughts on why this is?  I checked the decimal rounding and that is not the issue.  All columns in play here are set to double.  What could I be missing??

JRiedel_0-1630435791224.png

 

2 REPLIES 2
Tyro_abc
11 - Bolide

Hi @J-Riedel 

Can you provide sample data set and workflow? I will be glad to help you but I need a little bit more details.

 

Best Regards

abc

J-Riedel
8 - Asteroid

I was able to figure it out.  It was a rounding issue that could not be seen.  I added a round formula into the IF Stmt and it solved the issue.

 

Labels
Top Solution Authors