Alteryx Designer Desktop Discussions

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

Select dynamic columns

Camiiara
6 - Meteoroid

Hi all, I am creating a workflow using an external excel. The original excel has rows with dates. Dates change everyday (we always have a new day in the excel). I need to convert that data in columns and the workflow must select all days dynamically. I should have one column for each day. Please advise, thank you so much for the help! 

 

Original excel: 

Dateamount
01-Aug-2022400
01-Aug-2022300
02-Aug-202250
08-Aug-2022500
08-Aug-2022100

 

What is needed:

01-Aug-202202-Aug-202208-Aug-2022
70050600
6 REPLIES 6
DataNath
17 - Castor

Hey @Camiiara, you can use the Cross-Tab tool to achieve this. When configuring, you need to select an aggregation which in this case would just be sum:

 

DataNath_0-1661952870150.png

 

I've then just added a Dynamic Rename tool to clean up the name back to the original format:

 

DataNath_1-1661952893647.png

IraWatt
17 - Castor
17 - Castor

Hey @Camiiara,

The cross tab tool is what you need:

IraWatt_0-1661952880214.png

This solution uses the cross tab tools which can be hard to understand to new users. I would recommend checking out the community Getting-Started-Learning-Path for some context on how they work: https://community.alteryx.com/t5/Learning-Paths/Getting-Started-Learning-Path/ta-p/475117#done

 

Any questions or issues please ask

Ira Watt
Technical Consultant
Watt@Bulien.com 

 

binuacs
20 - Arcturus

@Camiiara Another way of doing this with the summarise /cross tab tool

 

binuacs_0-1661954585383.png

 

Camiiara
6 - Meteoroid

Hey. thank you so much. Could you please help me with the configuration of Dynamic rename tool? in order to select all dates automatically (everyday dates change)

Camiiara
6 - Meteoroid

thank you so much! quick question. i tried to do it but if  i have new dates everyday, they do not appear automatically. Only dates that i have selected on summarize tool. How can i do it? thanks! 

DataNath
17 - Castor

@Camiiara in the Dynamic Rename tool, just make sure you have Dynamic or Unknown Fields selected. That way, if you add more dates, this applies the Formula to extra fields that pop up. As shown here - I've manually added data for 15-Sep-2022 to the Text Input without touching anything else and the change automatically carries through:

 

DataNath_0-1662040136764.png

DataNath_1-1662040153472.png

 

The Summarize beforehand isn't necessary as this is just used to aggregate which you need to do within the Cross-Tab tool itself anyway.

Labels