ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

To check if a column is present or not

mrai02
アステロイド

Hello Alteryx Community,

I have a dataset in which I need to check if it contains a certain column or not.
if it does, I want to pass it through Workflow 'A'.

if it doesn't, it should pass through Workflow 'B'.

I would really appreciate it if this could be done in a easy and simple to implement way.

Thanks in Advance for the help.

4件の返信4
Felipe_Ribeir0
ネビュラ

Hi @mrai02 

 

With the field info tool you can see which columns the dataset has and build the logic after that. Take a look at the attached workflow.

 

Felipe_Ribeir0_1-1666113184766.png

 

mrai02
アステロイド

Hello @Felipe_Ribeir0,

Thanks for your overview on the issue.

but I have multiple rows in the dataset and due to append fields it is multiplying number the rows with number of columns it is receiving from field info. if possible is there any other way in doing so?

Felipe_Ribeir0
ネビュラ

Hi @mrai02 

 

Use the sample tool =1 before of the append tool.

 

Felipe_Ribeir0_2-1666116924641.png

 

mrai02
アステロイド

Thanks @Felipe_Ribeir0 for the solution.

ラベル
トップのソリューション投稿者