Alteryx Designer Desktop Discussions

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

Select or Sum the position of the columns instead of by names

Meiye
7 - Meteor

Hi everyone, I can't begin to think of a solution, so I need some help. Thanks in advance.

 

In this case, I want only the first 6 columns, and in a later step add a column of the sum of the six. The issue is that the column names are going to change each week, as they are the Sundays of a week. The select tool is going to count the columns as "Missing" and mess up the following steps. Is there a way to work around this?

 

Meiye_0-1675875643792.png

6 REPLIES 6
FinnCharlton
13 - Pulsar

Hi @Meiye , here's a way to dynamically select and sum the first 6 columns:

FinnCharlton_0-1675876793177.png

 

binuacs
20 - Arcturus

@Meiye One way of doing this is with the dynamic select tool. This tool is set to always select the first 6 columns then calculate the sum

 

binuacs_0-1675876852474.png

 

FinnCharlton
13 - Pulsar

@Meiye do what @binuacs suggested, it's much better

Meiye
7 - Meteor

Hi, @binuacs Thanks for the tip. However, since there are multiple records, it's giving me this at the transpose step:

Then the sum just sums the entire value column. 

Meiye_0-1675877937464.png

 

binuacs
20 - Arcturus

@Meiye is that something you are looking for?

 

binuacs_0-1675878993748.png

 

Meiye
7 - Meteor

@binuacs Thanks so much. It worked great! Learned a new trick today.

Labels