Alteryx Designer Desktop Discussions

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

Creating multiple variable

ARAJPUT_HENRY
6 - Meteoroid

Hello Everyone,

 

Can anyone help me get to the solution of the  data shown below-

 

I have around 250 variables that should be summed up to 90 variables. Example- A and B are variables that need to be built. A= A1+A2+A3, B= B1+B2+B3 . I know this can be easily done by formula tool but I have to make 90 variables like that. Any dynamic solution to sum up column A 1,2, 3,4 or 5 to variable named A , B1,2,3,4 or 5 to B and likewise to create 90 variables without writing code for each variable

 

Thank you !

 

A1A2A3A4B1B2B3
yes   yesTobacco10/17/2022
noDiabetes  no  
yes 6yearsMildyes  
yes   yes 10/17/2022
no      
noThyroid  no  
no   no  
no 2 years no  
yesSepsis  yesAlcohol 
yes      
yes   yes  
yesHeart problem  yes  
yes   yes  
       
5 REPLIES 5
danilang
19 - Altair
19 - Altair

Hi @ARAJPUT_HENRY 

 

What does your output look like

 

Dan

ARAJPUT_HENRY
6 - Meteoroid

Hello @danilang 

The output should look like this-

 

AB
yesyes::Tobacco::10/17/2022
no::Diabetesno
yes::6years::Mildyes
yesyes::10/17/2022
no 
no::Thyroidno
nono
no::2 yearsno
Yes::sepsisyes::Alcohol
yes 
yesyes
yes::Heart problemyes
Yesyes
caltang
17 - Castor
17 - Castor

@ARAJPUT_HENRY like so:

image.png

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
flying008
15 - Aurora

Hi, @ARAJPUT_HENRY 

 

Another way of dynamic solution for  you:

 

录制_2023_10_18_13_13_06_868.gif

ARAJPUT_HENRY
6 - Meteoroid

@caltang Thank you so much. It works perfectly.

Labels
Top Solution Authors