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
メテオール

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件の返信6
FinnCharlton
パルサー

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

FinnCharlton_0-1675876793177.png

 

binuacs
アルクトゥルス

@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
パルサー

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

Meiye
メテオール

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
アルクトゥルス

@Meiye is that something you are looking for?

 

binuacs_0-1675878993748.png

 

Meiye
メテオール

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

ラベル