Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

Alteryx Designer Desktop Discussions

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

Summarizing data dynamically into one row

wonka1234
10 - Fireball

Hi,

 

i am trying to collapse or summarize my data into one row.

 

1) How can I accomplish this?

2) How can I do this dynamically, ie when it is ran as an App, sometimes the months will be 202201 to 20203, or sometimes only 1 month, sometimes 12 months, etc.

 

Current     
      
Name202201202202202203202204202205
LouisY    
Louis Y   
Louis  Y  
Louis   Y 
Louis    Y
Ren   Y 
Ren    Y
      
Expected Output    
      
Name202201202202202203202204202205
LouisYYYYY
Ren   YY

 

Thanks

6 REPLIES 6
Felipe_Ribeir0
16 - Nebula

Hi @wonka1234 

 

One way of doing this dynamically

 

Felipe_Ribeir0_0-1675192341610.png

 

binuacs
20 - Arcturus

@wonka1234 Another way of doing this

 

binuacs_0-1675192527833.png

 

wonka1234
10 - Fireball

Both ways work! thanks! 

@binuacs  @Felipe_Ribeir0 

 

only issue is .. I am not sure which months will be selected.. so for running as an app, what if just 202206 and 202207 are inputted? How can i get the summairze tool from binuacs answers to take in those choices?

Felipe_Ribeir0
16 - Nebula

Hi @wonka1234 

 

The summarize tool is not a dynamic tool from columns point of view, so to do this dynamically like you said now, you will need a macro that feed the xml of the summarize tool with the fields.

 

Felipe_Ribeir0_0-1675196756744.png

 

 

wonka1234
10 - Fireball

@Felipe_Ribeir0 think im getting confused at the XML formula and my column name being "Name".

 

What if my columns are:

File_Name
n_Account_ID
n_Domain
N_VALUE
202201
202202
202203
202204

 

and I want to max 202201, 202202, etc..

binuacs
20 - Arcturus

@wonka1234 If you want to group by with your new fields then you should add them in the formula tool. I added the below fields as group by in the formula tool

 

File_Name
n_Account_ID
n_Domain
N_VALUE

 

 

binuacs_0-1675202905271.png

 

Labels