Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

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

Not functioning formula tool?

olehr
8 - Asteroid

Hi there, 

 

I have a small problem.  I have some fields that I need to add into a new field called "Total Population".  

 

However, when i add them together, it comes up with "Null", and I do not understand why.  All the fields going into the formula tool are numeric, so they should add up, right?

 

Or is there someting I miss?

Skjermbilde.PNGSkjermbilde1.PNG

4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @olehr if your fields a string type that would explain why the formula is not working. Could you share an example of the data or workflow you are working on ?

BenMoss
ACE Emeritus
ACE Emeritus
Simple solve on this one.

If any of your values are NULL then summing them together will equal NULL.

You can use the data cleansing tool prior to the formula tool to convert all NULL values to zero.

Then your formula will work as planned.

Ben
olehr
8 - Asteroid

Hi Ben, 

 

I tried to use the clensing tool, and then it reports 0 instead of Null. What I do not understand is that it has worked before, and all that goes into the formula tool are Int64. So this is a puzzle to me. 

 

 

olehr
8 - Asteroid

Hi again, 

 

For some reason, when i closed alteryx, and reopened it, it did work. Wierd!.   Anyhow, thanks for the help 🙂

 

 

Labels