In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
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.

Dynamic field name configuration

newbiealt
5 - Atom

Hi, would anyone have idea to this?

 

I have a criteria table that states the condition and the indicator that I want to assign to under that condition. For example, if the person is a male, then assign Ind_Male = 1. If the person is a male with age 30-39, then assign Ind_Male aged 30-39 = 1. If not assigned, indicators shall be set as 0.

At the bottom is a sample database, with the expected indicator fields.

The problem is, I cannot find a way to set Ind_[Criteria Table Indicator value] = 1 dynamically.

 

Thanks a lot!

 

Criteria Table

SexEmployment StatusAgeIndicator
M**Male
M*30-39Male aged 30-39
MEmployed*Employed Male

 

Data

IDSexEmployment StatusAge[expected output] Ind_Male[expected output] Ind_Male aged 30-39[expected output] Ind_Employed Male
1MEmployed20-29101
2MEmployed30-39111
3MUnemployed30-39110
4FEmployed20-29000
5FEmployed40-49000
6FUnemployed40-49000
7MEmployed30-39111
8FUnemployed50-59000
2 REPLIES 2
gawa
16 - Nebula
16 - Nebula

hi @newbiealt 

Please try the attached WF. In order to cater for dynamic criteria(including number of criteria to be applied), I transform data into vertical shape, and compare by Join and Formula. By doing so, you can always have the same schema at criteria checking process without having to configure every time.

image.png

grazitti_sapna
17 - Castor

Hi  @newbiealt 

I have made Workflow for your Problem. Please Check.

If it works Kindly accept it as Solution.

Thanks

Sapna Gupta
Labels
Top Solution Authors