We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Dynamically reference fields in formula tool

jt98
7 - Meteor

Hi, I've been searching for some time in discussion but still dont seem to get a solution.

I have a formula to that shows that if any of the columns A to E is not null, not Indicator = True,
else, False

Formula:

IF !IsNull([A]) OR
!IsNull([B]) OR
!IsNull([C]) OR
!IsNull([D]) OR

!IsNull([E])

 

THEN 1
ELSE 0
ENDIF

 

IDStart DateEnd DateABCDE
1591/1/20206/30/2020 X   
2301/1/20206/30/2020 X   
2941/1/20204/3/2020X    
2944/4/202012/31/2020X    
3131/1/20206/30/2020 X   


However, Column A may or may not appear in the input data that is running into the formula and the workflow then prompts an error that Column A cannot be found. 

Is there a way to dynamically reference column A when its present in the data and ignore it when its not so that it doesnt produce an error?

Thank you!

2 REPLIES 2
AkimasaKajitani
17 - Castor
17 - Castor

Hi @jt98 

 

If you want check null dynamically, you would better to change having the data vertically.

 

AkimasaKajitani_0-1611831071237.png

 

messi007
15 - Aurora
15 - Aurora

@jt98,

 

Please see below:

messi007_0-1611832381483.png

Hope that helps!

Attached the workflow,

Regards,

Labels
Top Solution Authors