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

IF (IsEmpty) Error

koheny01
7 - Meteor

Hello colleagues,

I am getting error when I run this formula.

here is the detail.

 

"Reportable_Total_Amount"   and   "Mismatch_Amount"   should be added to make the "Total". I have some empty cells in either fields. wherever there is one empty field, the Total remains empty and Total field will be blank.

I am trying to change the empty fields to show zero and let the addition add them up.

please see the pic below.

 

 

Capture.PNG

 

 

TOTAL= IF IsEmpty([Reportable_Total_Amount]) THEN ([Reportable_Total_Amount])='0'

ELSEIF
 IsEmpty([Mismatch_Amount]) THEN ([Mismatch_Amount])='0'

ELSE ([Mismatch_Amount])+([Reportable_Total_Amount])

ENDIF

 

3 REPLIES 3
fmvizcaino
17 - Castor
17 - Castor

Hi @koheny01 ,

 

One thing you could do is to use a data cleansing tool to generate the 0. The you can create a simple formula only to add mismatch+reportable amount as workflow attached.

 

fmvizcaino_0-1575478064101.png

 

Let me know if this works for you.

Best,

Fernando Vizcaino

koheny01
7 - Meteor

Hello

fmvizcaino
17 - Castor
17 - Castor

Hi @koheny01 ,

 

Great! Is there anything else you need in your solution?

Please mark the answer as correct if I achieve what you are looking for, if not, please let me know and I will try to help you further.

 

Best,

Fernando Vizcaino

Labels