Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Multi-Field to Create new field

aman_goyal
8 - Asteroid

Dear Community,

 

I have multiple columns having numeric (Type- Double) columns, I want to check validity of each column like length, not null etc. Using Formula tool, unable to implement multiple columns like 100 columns.

So used Multi-Field column as below-

aman_goyal_1-1643632223246.png

 

IF Not (IsNull([_CurrentField_])) AND IsNumber([_CurrentField_])
THEN 'Data source value is valid'

ELSEIF IsNull([_CurrentField_])
THEN 'Data Source Value is empty'

ELSEIF Not IsNumber([_CurrentField_])
THEN 'Data source value format is incorrect'

ELSE 'Data source value length is incorrect'
ENDIF

 

 

I am getting error because input columns are numeric and am trying to create string field for output as below:

aman_goyal_0-1643632183646.png

 

 

Is there any way to achieve this, that proper message will display and string columns can generate to check validity of data.

PFA workflow (small implementation) and suggest the solution.

11 REPLIES 11
atcodedog05
22 - Nova
22 - Nova

Hi @aman_goyal 

 

Please change the datatype to string in the highlighted option.

 

atcodedog05_0-1643632507974.png

 

Hope this helps : )

 

binuacs
21 - Polaris

@aman_goyal an update to the @atcodedog05 suggestion, when you change the data type change the size as well to fit the strings

 

binuacs_0-1643633389348.png

 

aman_goyal
8 - Asteroid

@atcodedog05 ,
Thank you. It works!!.
I have one problem, I have 950+ columns, if I run the same process for 950+ columns then output not generates. Can you please check workflow and suggest.

atcodedog05
22 - Nova
22 - Nova

Hi @aman_goyal 

 

We wont be able to check the workflow data flow without the input file. Can you please provide the input file.

aman_goyal
8 - Asteroid

aman_goyal_0-1643639916377.png

 

 

 

Please check above screenshot, no data available is coming after run the workflow. PFA input file and check.

 

binuacs
21 - Polaris

@aman_goyal the data is showing for me in the  browse tool. Can you add a output tool and try

 

binuacs_0-1643640899375.png

 

atcodedog05
22 - Nova
22 - Nova

Hi @aman_goyal 

 

It clearly mentioned here that you need to run the workflow to see the output. I guess that's the issue.

atcodedog05_0-1643641219343.png

 

Hope this helps : )

 

aman_goyal
8 - Asteroid

@atcodedog05 ,

I have run the workflow, not able to see the result.

@binuacs, Thanks for your help, your workflow is working with browse tool, Did you update something? As I cannot find some updates and I cannot use browse tool because after this need to do more transformations.

Please write here what you have updated?

binuacs
21 - Polaris

@aman_goyal I didnot make any changes in my workflow

Labels